Back to Course

Arduino Programming using Arduino IDE

0% Complete
0/0 Steps
  1. Chapter-1->How to download Arduino IDE?
    3 Topics
    |
    1 Quiz
  2. Chapter-2-> Introduction to Arduino IDE
    3 Topics
    |
    1 Quiz
  3. Chapter-3–> How to connect any board with Arduino IDE?
    4 Topics
    |
    1 Quiz
  4. Chapter-4–>Steps to write a code in Arduino Programming
    5 Topics
    |
    1 Quiz
  5. Chapter-5–>Introduction to Arduino Uno
    5 Topics
    |
    1 Quiz
  6. Chapter-6–>Explanation of Variables and operators in programming
    5 Topics
    |
    1 Quiz
  7. Chapter-7–>How to use conditional statement and loops?
    6 Topics
    |
    1 Quiz
  8. Chapter-8–>How to use analog input in Arduino IDE ?
    6 Topics
    |
    1 Quiz
  9. Chapter-9–>How to add libraries in Arduino IDE ?
    6 Topics
    |
    1 Quiz
  10. Chapter-10–>How the Arduino Serial library performs serial communication?
    4 Topics
    |
    1 Quiz
  11. Chapter-11–>Interfacing of Dht11 sensor with Arduino
    4 Topics
    |
    1 Quiz
  12. Chapter-12–>Troubleshooting and Errors in Programming
    3 Topics
    |
    1 Quiz
  13. Assessment
    6 Topics
Lesson 8, Topic 2
In Progress

8.2 Activity 4: Controlling of Led using Potentiometer

22/09/2021
Lesson Progress
0% Complete

In this activity, we will learn to interface Potentiometer with Arduino Uno and control the led using Potentiometer.

A Potentiometer is a simple knob or a variable resistor with a sliding or rotating contact.It is used as a manually adjustable voltage divider.A potentiometer is a type of position sensor. They are used to measure the change in position of any object in  any direction which is called displacement. Linear potentiometers linearly measure displacement and rotary potentiometers measure rotational displacement.

Potentiometer have three terminals:

  • VCC (Fixed end)
  • Signal (Variable end)
  • GND (Fixed end)

By rotating the shaft of the potentiometer, we change the amount of resistance on either side of the wiper which is connected to the center pin of the potentiometer. This changes the relative “closeness” of that pin to 5 volts and ground,which gives a different analog input. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and we read 0. When the shaft is turned all the way in the other direction, there are 5 volts going to the pin and we read 1023. In between, analogRead() returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.