Book
Week 3 - Section 3 - Respond to light
Week 3 - Section 3 - Respond to light
Completion requirements
View
In the first week we will learn about the edison robot, its capabilities, sensors and communication with the software. We will also learn how to use the EdWare, the software for programming edison robots.
Chapter 8.2 - Automatic lights
Write the following program to have the Edison robot turn the two LED lights on when it gets dark.
Drive the robot through a tunnel or under a couch and see the front lights come on.
In this program we are using the ‘less than’ (<) symbol to determine the path of the program. If the variable Light_Level is ‘less than’ 100, then take the true path and turn the LEDs on.
Experiment with the value (100) in the If icon.