Potentiometer in Arduino with Code and Wiring Diagram | Arduino Project with Code and Wiring Diagram
Download the complete source code here: https://bit.ly/363MpA4
Increase ad revenue 50-250% with Ezoic - https://bit.ly/2OIIPpD
In this article, I will show you how to connect a potentiometer to Arduino by controlling an LED.
A potentiometer is simply a varying resistor. This means you can amplify or reduce the amount of electricity passing through the circuit.
Today, I will show you the ropes in wiring a potentiometer to integrate in your next project.
Here are the steps in creating RFID Door Lock Arduino Project with Data Logging in Python.
1. Gathering the Components
To start off, this project will have two parts: the Arduino Device and the Program. First thing to do is to collect the hardware components and make the device. To do that, you will be needing the following:
1 Arduino Uno
2. Connecting the Components
Potentiometer controlled LD Wiring diagram
Now you are ready to connect the components to the Arduino Uno. Attach the middle pin of the potentiometer to the Analog Pin 0 of the Arduino and the longer leg of the LED to Digital Pin 9 or any Digital Pin that supports pulse-width modulation. This is indicated by a wavy dash beside the pin number.
3. Coding the Arduino
Now the wiring is done, all you need to do is copy the code and upload it to the Arduino. Simply remove the LCD codes if you don’t have any.
4. Upload the Sketch
After you successfully upload the sketch, turn the knob clockwise. The LED will slowly light up as the input increases.
So there you have it! Connecting a Potentiometer to Arduino. This project is intimidating at first but you will see that it is fairly easy to do. You can combine this to other Arduino projects and build an awesome system!
Feel free to write your questions about this project at the comments below.
Song: Ikson - Blue Sky (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.