𦾠EV3 102: #06 - EV3 Sensors: Touch
By Matt Richardson
starstarstarstarstar
Last updated about 2 years ago
22 Questions
This course includes resources provided by the following:
- LEGO Education
- CS-STEM Network from Carnegie Mellon University
- EV3-Scratch documentation provided by Raphael Holzer
- Joe Olayvar & Evelyn Lindberg in association with the Washington State Library
đ Click here to access the LEGO Education website.
đ Click here to access the EV3-Scratch documentation.
đ Click here to access the online EV3 course from CS2N.
đ Click here to access the LEGO Mindstorms EV3 Programming Basics document in its entirety.
âśď¸ Click here to access the entire LEGO Mindstorms EV3 YouTube playlist from the Washington State Library.
đ Mini-Challenge:
𧚠Vacuum
Using a Touch Sensor, program the robot to touch all four walls of a room!
Using a 4âx4' table (with walls), have the robot start by facing toward a wall. Using a touch sensor, program the robot to move forward and touch ALL four walls.
đ A virtual version of this challenge is available HERE.
đ Challenge:
𦾠Arm Position
Challenge Overview
For this challenge, construct an arm with the Touch Sensor attached so that when the arm is fully upright the button on the Touch Sensor is pushed in. This might require adding an axle and another part to increase its "surface area".
Place the robot on a surface, and an object approximately 5 rotations length away from the robot. Starting with the arm in the âdownâ position, program the robot to raise its arm until the touch sensor is pushed in, move forward 5 rotations, lower the arm around the object, and then bring the object back to the starting location.
Challenge Details
Rules and Procedures:
- The robotâs arm will be moved to a random position before running.
- You must use the parts available to you to modify the Touch Sensorâs mounting so that it can detect when the EV3âs arm is in the âupâ position.
- Try to do this with as few changes as possible.
- When the âUpâ button on the front of the EV3 is pressed, the robot must raise its arm to the âUpâ position (1), move forward five rotations to the cargo (2), and bring it back to the original starting position (3).
Hints:
- The trigger area on the Touch Sensor is small. You will probably need to build a âbumperâ or âextenderâ on the end of the Touch Sensor to make it detect the arm more reliably.
- The EV3 core set includes two Touch Sensors. You can use one sensor for detecting the arm in the âUpâ position, and the other to detect the box.
- You can also make a test run, then calculate âhow many times as farâ you need to move or turn to get the amount of movement you want, compared to a test run.
đ A virtual version of this challenge is available HERE.
![](https://dm2ec218nt2z5.cloudfront.net/2020-04-15/migrated-178007/5e977702f9a35c8245f4a005_TakeNoteCornellNotesPage.png/page-1.png)