Users Manual

CLASS 2
120
Experiencing the
volume sensor coding
Turning on the streetlight using the volume sensor
Let’s start coding the streetlight using what we learned before (first, make the model).
The simple part is to make the volume sensor’s analog output value the same as the volume sensor’s analog input
value. We just need to combine two coding blocks like below!
Do you understand this? Now, let’s code the streetlight using the start block and adding the ‘infinite repetition’
block. Just make the analog output value equal to the volume sensor’s analog input value. Then, just combine the
two coding blocks. Check out the picture below.
Now, control the brightness of the streetlight using the volume sensor! The streetlight should be
brighter as it gets darker outside.