Data Sheet
25 : circuit 1b
TROUBLESHOOTING
The potentiometer always
reads as 0 or 1023
Make sure that your 5V, A0 and GND pins are properly
connected to the three pins on your potentiometer. It is
easy to misalign a wire with the actual pot pin.
No values or random
characters in
Serial Monitor
Make sure that you have selected the correct baud rate,
9600. Also ensure that you are on the correct serial
port. The same serial port you use when uploading
code to your board is the same serial port you use to
print values to the Serial Monitor.
A B C D
You’ve completed
Circuit 1B!
Continue to circuit 1C to learn about photoresistors and analog to digital conversion.
BLINKING
AN LED
READING A
POTENTIOMETER
READING A
PHOTORESISTOR
RGB NIGHT-LIGHT
SIK v4 Book Oct 13.indb 25 10/18/17 9:59 AM