3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

4-Digit 7-Segment LED Display + Arduino

4-Digit 7-Segment LED Display + Arduino
«
  • P5280009.JPG
  • P5280005.JPG
  • P5280007.JPG
I recently got a 4-Digit 7-Segment LED Display from Sparkfun, and couldn't wait to use it. Here, I will show you how to wire it, and some sample programs to use with it!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Display info

Display info

This is the way the display works. It's multiplexed, so you select the digit by setting its pin (we'll get into pins later) HIGH, and you select the segment by setting its pin LOW. You display multiple digits at once by rapidly cycling through them.
The Pins (digits are numbered from the left):
Digit 1: 1
Digit 2: 2
Digit 3: 6
Digit 4: 8
 
Segment A: 14
Segment B: 16
Segment C: 13
Segment D: 3
Segment E: 5
Segment F: 11
Segment G: 15
 
Decimal Point: 7
 

« Previous StepDownload PDFView All StepsNext Step »
12 comments
May 16, 2012. 6:52 AMsalmansheikh says:
How do I use the pushbutton to pause the counter rather than reset it?
May 16, 2012. 5:24 PMsalmansheikh says:
Thanks. I was thinking of making a basketball game timer and also need to use the ":" that could count to 30:00 minutes or down from 30:00 to zero and pause for fouls with a push of the button. I have another display for the score but not sure one Arduino could program both displays...
May 17, 2012. 4:00 AMsalmansheikh says:
No, I want do different things..one will be an game elapsed timer, the other display, two scores, one teams on left of : and one on the right. Games only go to double digits. That may require 2 more buttons and another Arduino unless I can multiplex the control signals somehow, perhaps with a 4th button.
Sep 26, 2011. 8:14 PMrbarot says:
so
Jun 2, 2011. 9:23 AMbulb66 says:
Nice, i can see a 7-Segment display in my future, lol

and good luck to you too for the contest
Jun 1, 2011. 6:46 AMvishalapr says:
Rated it 4*
Jun 1, 2011. 6:45 AMvishalapr says:
Cool ible roboGeekDude!!!
May 31, 2011. 12:07 PMwilgubeast says:
Excellent. Great jumping off point for displays. This made me want to shop at SparkFun.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
7
Followers
5
Author:Jimmacle
I'm a 13 year old that LOVES electronics and DIY stuff! I'll write more here when I get ideas :3