Data Sheet
30 : circuit 1c
You’ve completed
Circuit 1C!
Continue to circuit 1D to learn about RGB LEDs, functions and pulse-width modulation.
A B C D
BLINKING
AN LED
READING A
POTENTIOMETER
READING A
PHOTORESISTOR
RGB NIGHT-LIGHT
TROUBLESHOOTING
Nothing is printing in
the Serial Monitor
Try unplugging your USB cable and plugging it back in. In the
Arduino IDE, go to Tools > Port, and make sure that you select
the right port.
The light never turns
on or always stays on
Start the Serial Monitor in Arduino. Look at the value that the
photoresistor is reading in a bright room (e.g., 915). Cover the
photoresistor, or turn the lights off. Then look at the new value
that the photoresistor is reading (e.g., 550). Set the threshold
in between these two numbers (e.g., 700) so that the reading
is above the threshold when the lights are on and below the
threshold when the lights are off.