Starting Electronics Needs Your Help!
It is that time of the year when we need to pay for web hosting and buy new components and equipment for new tutorials. You can help by making a donation. Contribute to this website by clicking the Donate button. The total will be updated once daily. (You may need to clear your browser cache to see the updates.)

Target Amount: $2000
Amount Raised: $1960

Donations Received

Top Donor: C.C. $100


Project 10: Make an LED Bar Graph Display (barGraph)

Created on: 2 August 2012

Tutorial 10 – Pages

A potentiometer is used to change the analog value on the Arduino A0 pin. Ten LEDs are connected to Arduino pins 2 to 11. As the voltage value on A0 increases, LEDs making up a bar graph will turn on in sequence.

Parts Needed

  • 10 × LEDs
  • 10 × 220 ohm resistors
  • 1 × 10k potentiometer

Arduino Website Page


In the Arduino IDE

File → Examples → 7.Display → barGraph

Building the Circuit

The circuit diagram and breadboard connections are shown on the barGraph page on the Arduino website.

Programming and Operating the Circuit

Find the barGraph sketch in the Arduino IDE under File → Examples → 7.Display → barGraph and upload it to the Arduino board.

Turn the shaft of the potentiometer to make the LEDs switch on in turn.

Project 10 Video

Can't see the video? View on YouTube →

← Go back to P9: KnockGo to Tutorial 11: Light Activated Alarm →