I have written a program that changes the onboard LEDs to change colors. On top of it, I would like the light sensor to detect the light and call out the reading in the screen counter. But its not working. See the screenshot. Pls clarify.
Light Sensor not detecting LEDs on board
susan
#1
You need to put the sensor read in the loops to see any change. As it stands, you are only reading it once at the beginning. Hope this helps.
deliot
#3
I also found it important to TURN OFF the LEDs when using the light sensor. The light sensor is between the two LEDs (!), and by setting the LEDS to “black” (0,0,0,0), it was much easier to get a nice light sensor reading from the room.
I also think having the mBot cover on/off affects the light sensor.