Site Navigation

Your Account

Choose Language

Introduction

Use the potentiometer to turn values up and down as it is a simple knob that provides a variable resistance, which we can read into the Arduino board as an analog value.

Tools

No tools required.

Video Overview

Insert our LED so the Cathode (shorter leg) is on the left hand side.
  • Insert our LED so the Cathode (shorter leg) is on the left hand side.

Add Comment

Insert a 220 Ohm resistor so that one leg is in line with the positive leg of our LED.
  • Insert a 220 Ohm resistor so that one leg is in line with the positive leg of our LED.

Add Comment

Insert the potentiometer so that the pins are aligned horizontally.
  • Insert the potentiometer so that the pins are aligned horizontally.

Add Comment

Connect the Cathode of our LED to a Ground pin on our Arduino.
  • Connect the Cathode of our LED to a Ground pin on our Arduino.

Add Comment

Connect the 200 Ohm Resistor to Digital Pin 9
  • Connect the 200 Ohm Resistor to Digital Pin 9

Add Comment

Connect the first pin of the potentiometer to the Arduino's 5V pin.
  • Connect the first pin of the potentiometer to the Arduino's 5V pin.

Add Comment

Connect the last pin on the potentiometer to the other Ground on the Arduino.
  • Connect the last pin on the potentiometer to the other Ground on the Arduino.

Add Comment

Connect the middle signal pin of the Potentiometer to Analog pin 0.
  • Connect the middle signal pin of the Potentiometer to Analog pin 0.

Add Comment

  • Copy this code to the Arduino IDE and upload it.

  • Now when you turn the blue potentiometer the light should go from dull to bright!

Add Comment

  • Here is some alternate code that changes the rate of the blinking LED

Add Comment

  • Here it is in action!

Add Comment

Finish Line

14 other people completed this guide.

Madeleine Schappi

Member since: 09/27/2017

4,527 Reputation

24 Guides authored

Team

Advent Edit Member of Advent Edit

Community

3 Members

24 Guides authored

0 Comments

Add Comment

View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 3

All Time: 182