Click download and run button to test out the program with your robot. Drag and drop a green Move Steering block outside of the loop.Stop the motors when the Touch sensor button is pressed.Change it’s exit logic to Touch Sensor | State.Drag and drop an orange Loop block next to the start button.Create a loop which exits once the Touch sensor button is bumped: When the button is bumped stop the robot.The logic for this program is fairly straight forward: Feel free to build the touch sensor bumper on the front – it will work well with this program, stopping the EV3 robot once it hits something. For this program I recommend using the Explor3r robot build, it’s simple and can be made using either the retail or education Lego Mindstorms EV3 kit. The full program should look like the image below: Example EV3 Touch Sensor Program 2: Start and Stop Robotįor the second example program we will use the Touch sensor to stop the robot moving. Hit the Download and run button and test out the program by watching the display change by pressing the touch sensor button. Click the image selector on the top right and from the LEGO Image Files\Expressions folder select an expression.
0 Comments
Leave a Reply. |