Introduction: 7-Segment-Display

I want to show you in this "Instructable" how to control 7-Segment-Display

What you need:
  *Arduino Duemilanove
  *a lot of 7-Segment-Display
  *a lot of push Button
  *a potentiometer
  *8 x 120 Ohm resistor
  *4 x 1k2 Ohm resistor
  *2 x 1k Ohm resistor
  *4 x BC547 Transistor
  *1 x 74HC595
  *breadboard
  *wire

Step 1: 7-Segment Displaying With Potentiometer

On this step i worked with a shiftregister (74HC595). I connected the pins of 7-Segment to the shiftregister(a-g -> Q0, Q6). And a potentiometer to displaying the characters. Down here you can see the schematic.

latchPin = 8;     // pin 12 on the 74hc595
clockPin = 12;  // pin 11 on the 74hc595
dataPin = 11;   // pin 14 on the 74hc595

And you can download the Programm Code

Step 2: Count Down and Up With 2 Buttons

This step is about controlling the display with 2 push buttons to count up and down. The schematic that you can see down here is very simple. I have connected the Segment Pins (A to G) in Arduino (Pin 2 to 8) and the reading buttons happens through Arduino Pin 13 (countup) and Pin 12 (countdown).
I used the debouncer library to read the switched button successfully...

DONT FORGET THE RESISTORS

Step 3: 2 Digit 7 Led Segment

and this is the 2 digit COUNTER

Comments

author
CindyE32 (author)2016-10-28

Can I get the circuit for 2 digit display??

author
saidesai21 (author)2015-03-24

in step 2 program is not compiling its showing error like

"sketch_mar24a.ino:1:22: fatal error: Debounce.h: No such file or directory

compilation terminated."

author
Outrange (author)2015-03-08

hi there :) i want to build your 2 buttons up/down counter but here is the deal that i dont know where i will put the resistors :( can you help me please ? :/

thank you

author
mertaxoy (author)Outrange2015-03-08

hi, try it without resistor, if you get problem, just try it like the attached picture..

arduino_button-pullup.jpg
author
Outrange (author)mertaxoy2015-03-08

thank you for everything

author
Outrange (author)Outrange2015-03-08

actually i have tried it today without resistor and nothing happened :/ what should i see when i connected it to the arduino and computer ? code works but no response from the breadboard :/

author
dsmmoore (author)2013-11-18

I am looking to do a similar project but wish to use a 4 digit display and have each count up/down be by 0.1 therefore it could count like so 9.90, 10.00, 10.10, etc. How can I modify your code to do this?

author
Naterenfo (author)2013-06-15

Hey there Mertaxoy,
I am just getting started with Arduino programming, and I am copying your example as displayed here. Why do I get the feeling that if I press one of these buttons its going to short out? Am I missing something here? the way you have it wired on your Fritzing diagram appears that when the button is pushed, the 3.3v would go straight to ground...? are the ground wires supposed to go to the other side of the buttons, with pull down resistors?

author
mertaxoy (author)Naterenfo2013-06-15

hi Naterenfo,
you need certainly the pull down resistors for 3,3V

author
lemonhead_oo7 (author)2012-05-02

Nifty!

What about a 2 digit potentiometer controlled version?

author
mertaxoy (author)lemonhead_oo72012-12-16

its possible :)

author
Daniyal Khan (author)2012-03-04

is that arduino avalaible in the market easily??

author
mertaxoy (author)Daniyal Khan2012-03-04

yes, is it !

http://www.ebay.com/itm/Arduino-UNO-2011-Version-ATMEGA328P-PU-AVR-MCU-Board-USB2-0-Cable-/180833433758?pt=LH_DefaultDomain_0&hash=item2a1a83389e

author
kyubok (author)2011-07-21

can u help me?,, how to program a 2 digit 7segment display, for count up and count down.... pls.. guide me...

author
mertaxoy (author)kyubok2011-07-21

so İ have added the 3th step for you pleas take a look at it ;)
feel free to ask me anything..

author
mailman0001 (author)2011-06-05

How come it's not counting up or down? All of leds are off except the middle bar (g) and when I push ether one of the push buttons it cut off and back on once released. I even tried wiring a-g with 3V or 5V (high). Is there something else I maybe missing that's not in picture ( Count down and up with 2 push buttons)?

author
mertaxoy (author)mailman00012011-06-06

i think i forgot the pull up resistors from buttons to ground... (1kOHM)...

author
mailman0001 (author)2011-06-05

And I'm using the Arduino Uno by the way! This shouldn't make a difference,should it ?

author
mertaxoy (author)mailman00012011-06-06

no, it shouldn't...

author
mailman0001 (author)2011-06-04

what kind of 7 segment do you used for this project?

author
mertaxoy (author)mailman00012011-06-05

common cathode - http://www.conrad.at/ce/de/product/160172/7-SEGMENTANZEIGE-14-MM-A/SHOP_AREA_17651&promotionareaSearchDetail=005

About This Instructable

41,491views

32favorites

License:

Bio: . if(!success) try again; .
More by mertaxoy:7-Segment-Display
Add instructable to: