Arduino Control Leds With a Pot Meter
by meauummels in Circuits > USB
10893 Views, 10 Favorites, 0 Comments
Arduino Control Leds With a Pot Meter
![IMG_6198.JPG](/proxy/?url=https://content.instructables.com/F02/7A56/FVKO3C1O/F027A56FVKO3C1O.jpg&filename=IMG_6198.JPG)
![IMG_6191.JPG](/proxy/?url=https://content.instructables.com/FHB/IX7K/FVKO3C1N/FHBIX7KFVKO3C1N.jpg&filename=IMG_6191.JPG)
![IMG_6192.JPG](/proxy/?url=https://content.instructables.com/FMA/J73T/FVKO3C1M/FMAJ73TFVKO3C1M.jpg&filename=IMG_6192.JPG)
![IMG_6194.JPG](/proxy/?url=https://content.instructables.com/FQO/638Q/FVKO3C1L/FQO638QFVKO3C1L.jpg&filename=IMG_6194.JPG)
this is just a fun easy project.
Parts
1.arduino
2.breadbord
3.usb cable
4. 4 leds
5. 4 330 ohm resistors
6.10k pot meter
7. and fun
2.breadbord
3.usb cable
4. 4 leds
5. 4 330 ohm resistors
6.10k pot meter
7. and fun
First
![IMG_6191.JPG](/proxy/?url=https://content.instructables.com/FHB/IX7K/FVKO3C1N/FHBIX7KFVKO3C1N.jpg&filename=IMG_6191.JPG)
insert al the leds in the bread bord.
Then
![IMG_6192.JPG](/proxy/?url=https://content.instructables.com/FMA/J73T/FVKO3C1M/FMAJ73TFVKO3C1M.jpg&filename=IMG_6192.JPG)
then you must insert the resistors.
led 1 to pin2
led 2 to pin 3
led 3 to pin 4
led 4 to pin 5
led 1 to pin2
led 2 to pin 3
led 3 to pin 4
led 4 to pin 5
Tree
![IMG_6200.JPG](/proxy/?url=https://content.instructables.com/FVI/NZS5/FVKO3C2R/FVINZS5FVKO3C2R.jpg&filename=IMG_6200.JPG)
then in sert the pot meter
connect
pin 1 to ground
pin 2 to analogpin 0
pin 3 to +5 v
oke youre al done now yust
the code
connect
pin 1 to ground
pin 2 to analogpin 0
pin 3 to +5 v
oke youre al done now yust
the code
The Code!!!!
the code i have writen
is below
is below