How to drive a 7 segment LED display

Required Hardware

This is an example of how to drive a 7 segment LED display from arduino without the use of current limiting resistors. This technique is very common but requires some knowledge of electronics – you do run the risk of dumping too much current through the segments and burning out parts of the display.

This code will work with most Arduinos but you may want to re-route some of the pins.

7digit_bb Wiring

Wiring 7 Segment with Arduino

  • Digit1 – ArduinoPin11 – DisplayPin12
  • Digit2 – ArduinoPin10 – DisplayPin9
  • Digit3 – ArduinoPin9 – DisplayPin8
  • Digit4 – ArduinoPin6 – DisplayPin6
  • segA – ArduinoPinA1 – DisplayPin11
  • segB – ArduinoPin3 – DisplayPin7
  • segC – ArduinoPin4 – DisplayPin4
  • segD – ArduinoPin5 – DisplayPin2
  • segE – ArduinoPinA0 – DisplayPin1
  • segF – ArduinoPin7 – DisplayPin10
  • segG – ArduinoPin8 – DisplayPin5

 

Recommended Software

  • none

Instructions and Code

Posted in Arduino Tutorials Tagged with: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*