The social network twins winklevoss bitcoin
48 commentsKryptonite lock replacement parts
Sensors add environmental feedback and using switch blocks allows the robot to make responsive decisions about its next course of action. We used the educational kit, which provided us with 4 different sensors; the touch, ultrasonic, light, and gyroscope. There are also many other sensors available at an additional cost.
The touch sensor reacts to contact similar to an on-off button. The ultrasonic sensor returns relative or exact measures of distance. The light sensor both emits and detects light and colours. The gyroscope sensor measures angular acceleration how much the sensor rotates. Each of these sensors can lead your inquiry into many different areas of science allowing you to tailor your planning to the Program of Studies.
First, drag and drop a switch block from the orange tab on the lower menu. Drag and drop a Display Block from the green tab on the lower menu into the upper switch chain. The upper switch chain will run if the touch sensor is pushed. Choose a different image. An infinite loop block needs to be added.
Otherwise the switch will evaluate once, display the appropriate image at a speed that is almost invisible to the eye, and then end the program. First put a Switch Block inside a Loop Block. Add two Move Steering Blocks. Next select the colour of the line you wish to follow.
Make sure only the colour you want is selected. Note this is contextual and may take a couple of adjustments for the robot to follow the line.
University of Calgary University Dr. This first Sensor Task does not involve any robot movement. Ask students to add the touch sensor to their robot. Children can add the sensor themselves or follow pages of the Educational EV3 Lego instructional manual. Program the robot to change the display screen when the touch sensor is touched. This means that when the touch sensor is touched it will run one chain of commands.
When the touch sensor is not touched it will run another chain of commands. This can be done with a switch programming block. Plug your robot in and press play to download. See figure below Next select the colour of the line you wish to follow. Campus Life Go Dinos!