From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Wiring a potentiometer to control LED - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
Wiring a potentiometer to control LED
- [Instructor] All right, so I still have the wiring for the LED. I'm going to start wiring the potentiometer to it. The only thing I'm going to change is that I'm going to move the ground here to a common ground on the breadboard, and then I'll add the potentiometer. I'm going to add it on the row off 55. The right-hand side of the potentiometer goes to five volt. This one is connected to five volts. The left-hand side goes to ground. And, the middle pin is going to be connected to an analog input which is A0 on the Arduino board. Now, I'm going to go ahead and connect the voltage, the five volt, and the ground. So, five volts... And, then finally the ground goes to ground on the Arduino board.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
How Arduino generates analog output1m 4s
-
(Locked)
Understanding pulse-width modulation (PWM)2m 8s
-
(Locked)
Understanding the analogWrite function with PWM1m 19s
-
(Locked)
Wire up an LED1m 5s
-
(Locked)
Write code to use PWM with the LED1m 56s
-
(Locked)
Understanding the map() function1m 45s
-
(Locked)
Wiring a potentiometer to control LED1m 13s
-
(Locked)
Coding to control the LED with a potentiometer3m 42s
-
(Locked)
-
-
-