Using a Light Sensor with the Q-Scout
One of the best features about the Q-Scout (and Qooper!) is that you can connect additional sensors in order to interact with the world around you. In the video below, we connected a light sensor to our robot, so when the light intensity dropped below a certain number, the double lights on top of the robot turn on.
Imagine all of the things you can do with the robot using this sensor! Night time disco? Stop driving when the lights turn on?
You think it, you can do it!
This code will run forever as long as the robot is on. If the light intensity is greater than 200, then the double lights will be off (black). However (else), if the light intensity is below 200, then the double lights will change from green to blue to pink.
If you are interested in Q-Scouts or Qoopers for your classroom, check out our page for more information.
Stay up to date with the latest Aquila blog by following us @aquilaeducation