![]() Next, connect a 220 ohm current limiting resistor to digital pin 9, with an LED in series. ![]() Hardware RequiredĬonnect one pin from your pot to 5V, the center pin to analog pin 0 and the remaining pin to ground. This example shows you how to read an analog input pin, map the result to a range from 0 to 255, use that result to set the pulse width modulation (PWM) of an output pin to dim or brighten an LED and print the values on the serial monitor of the Arduino Software (IDE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |