Robotics Week 5 - More programming
Robotics Week 5 - More programming
This week you will work your way through the pilot exercises in RoboLab.
Pilot 2
For this program you will need to add a touch sensor to input port 1
For this program :
- Make sure the program runs until the button is pressed.
- Alter the program so that both motors turn in the same direction
- Alter the program so that both motors turn at the same speed
Extension work for Pilot 2
- Use the lego instruction booklet (p11-13) to create a structure that will hold the switch down, while ever the button is over a table. When the front of the robot moves off the end of the table, the button should be released. This will involve creating a small swing. The basis for this can be found using the structure pages 11-13, however, you will have to modify the stucture to get it to hold down the switch, then release the button (swing down) when the front of the zoobot goes off the end of the table.
- Alter the robolab program to allow the program to run whilever the button is down, but the stop once the button is released (This is called a Dead-Man's Switch).