Introduction
- Arduino Uno
- Potentiometer
- BreadBoard
- HookUp Wires
- LED
Connection
Step 1: Connection from Potentiometer to Arduino Uno.
- Take the first pin of a potentiometer connected to the Gnd of the Arduino Uno.
- Take the second pin of Vin connected to the analog pin of A0 to Arduino Uno.
- Take the Third pin of Vcc to the 5v of Arduino Uno.
Step 2: Connection from LED to Arduino Uno.
- Positive pin = 09
- Negative pin = Gnd
Programming
- const byte POTENTIOMETER = 0;
- const byte CONTROL = 9;
- int reading;
- int value;
- void setup()
- {
- pinMode(CONTROL, OUTPUT);
- }
- void loop()
- {
- reading = analogRead(POTENTIOMETER);
- value = map(reading, 0, 1024, 0, 255);
- analogWrite(CONTROL, value);
- }
Explanation
- When we adjust the potentiometer the LED /Fan can be controlled.
- When the potentiometer is scrolling the brightness of the LED can be High/LOW.
- When the potentiometer is scrolling the Speed of the Fan also changes.
Output

Figure 1: Output
Read more articles on Arduino:

Delpin Susai RajPosted Aug 28, 2016, 4:35 AM
Nice
Gowtham KPosted Feb 20, 2016, 12:13 PM
Good One
Kumaresh RajalingamPosted Feb 20, 2016, 4:38 AM
thank you sibeesh sir
Kumaresh RajalingamPosted Feb 20, 2016, 4:37 AM
thank you Gul Md Ershad sir
Kumaresh RajalingamPosted Feb 20, 2016, 4:37 AM
thank you santhakumar sir
Kumaresh RajalingamPosted Feb 20, 2016, 4:36 AM
thank you Mohammed sir
Kumaresh RajalingamPosted Feb 20, 2016, 4:35 AM
Thank you hemant sir
Kumaresh RajalingamPosted Feb 20, 2016, 4:34 AM
Thank you karthiga madam
Kumaresh RajalingamPosted Feb 20, 2016, 4:34 AM
Thank you Shubham sir
Santhakumar MunuswamyPosted Feb 20, 2016, 2:04 AM
Thanks for nice work
Former memberPosted Feb 20, 2016, 1:55 AM
good concept
Sibeesh VenuPosted Feb 20, 2016, 1:39 AM
Nice Share
Shridhar SharmaPosted Feb 19, 2016, 11:44 PM
nice share
Mohammed IbrahimPosted Feb 19, 2016, 2:46 PM
nice
Hemant SrivastavaPosted Feb 19, 2016, 9:52 AM
Good One
Sr KarthigaPosted Feb 19, 2016, 5:42 AM
Nice Explanation
Sr KarthigaPosted Feb 19, 2016, 5:42 AM
Good one
Shubham KumarPosted Feb 19, 2016, 2:03 AM
nice one