Hardware Reference
In-Depth Information
Figure 3-3: Potentiometer circuit
Before you use the potentiometer to control another piece of hardware, use the
Arduino's serial communication functionality to print out the potentiometer's
ADC value on your computer as it changes. Use the analogRead() function
to read the value of the analog pin connected to the Arduino and the Serial
.println() function to print it to the Arduino IDE serial monitor. Start by writ-
ing and uploading the program in ListingĀ 3-1 to your Arduino.
Search WWH ::




Custom Search