Table of Contents
Exercise 1
- Read the light sensor continuously, once a second, and display/print it.
- make a sprite say/display it using the Live mode of mBlocks or
- print it on the serial console of Arduino IDE.
- Try both code and mBlocks!
- Whenever the light exceeds a certain threshold (you can set an appropriate threshold after reading the values), the buzzer should beep.
- You will have to take off the mBot cover for the light sensor to work well.
Exercise 2
- Read the line follower sensor and change the colour of RGB LEDs accordingly.
- 4 different colors for the 4 different scenarios encountered by the line follower sensor.
...