Arduino 7-Segment Click Counter

28,080

13

20

Introduction: Arduino 7-Segment Click Counter

Check out how to make your own 7 segment click counter!!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials You Will Need:

1x Arduino Board(does not matter which version).

1x BreadBoard.

1x 1 Digit 7 Segment display.

2x Push Buttons.

4x 220 ohm resistors(Will work up to 1K).

16x Male to male jumper wires.

Step 2: Connect the Arduino to the BreadBoard:

Connect as shown in the image above:

Arduino 5V pin to the PLUS of the breadboard.

Arduino GND to the MINUS of the breadboard.

7-Segment pin 8 & 3 to the PLUS of the breadboard through your resistors.

NOTE: if your 7 segment display is a common cathode display, connect pins 8 & 3 of the display to the GND!!

7-Segment pin 1 to Arduino pin 6.

7-Segment pin 2 to Arduino pin 5.

7-Segment pin 4 to Arduino pin 4.

7-Segment pin 5 to Arduino pin 7.

7-Segment pin 6 to Arduino pin 2.

7-Segment pin 7 to Arduino pin 3.

7-Segment pin 9 to Arduino pin 8.

7-Segment pin 10 to Arduino pin 9.

Connecting the buttons:

connect one side of the button to the PLUS of the breadboard;

connect the other side through a resistor to the GND of the breadboard, and to Arduino pin 12.

Do that for the second button and connect it to Arduino pin 13.

Step 3: The Code:

Download the code and insert it to arduino IDE, and have fun!!

Write your comments down bellow!!

First Time Author Contest 2016

Participated in the
First Time Author Contest 2016

1 Person Made This Project!

Recommendations

  • Magnets Challenge

    Magnets Challenge
  • Raspberry Pi Contest 2020

    Raspberry Pi Contest 2020
  • Wearables Contest

    Wearables Contest

20 Discussions

0
KiflieD
KiflieD

1 year ago

why my 7 segment not function, but push button counter function?

0
muhdf23
muhdf23

2 years ago

how can i confirm the number to continue the program by add a button???

if (button == high)

{

if (??????)

0
Electronics Workshop

With the code provided my display jumps around between 2 numbers. What's wrong? I am using a common cathode display. Also it would be easier if you just used the input pullup command on the buttons

pinMode(button, INPUT_PULLUP);

0
AngelicaN12
AngelicaN12

2 years ago

How can I stop it from looping? Like If i push the buttonUp, it will go from 0-9 only even if i push the buttonUp again, it'll not change anything and still stuck up to 9 only. Same goes for the buttonDown, if I push the buttonDown, it'll go from 9-0 and nothing more. Not repeating the same cycle again. And also, I have this problem when I tried to click a few more times (after it reached the last number for both buttonDown and Up) it should not store the clicks. Example: I pushed the buttonUp and it reached to 9, after trying to click it some few more, lets say 3. If I clicked the buttonDown, it should automatically show the number from 9 to 8 without clicking 3 times before it goes to 8. Do you get what I mean? Im having a hard tme with these codes and I'm still not familiar with them. :( Help guyzzzz

0
TanveerM2
TanveerM2

2 years ago

how can i add 2 more digits

0
Fritz GeraldO
Fritz GeraldO

Reply 2 years ago

I have the codes man. chat me on facebook

0
BryanV2
BryanV2

Reply 2 years ago

Can you sent it to me?

0
YahavHadad
YahavHadad

Reply 2 years ago

I sent you a private message, check it.

0
BryanV2
BryanV2

Reply 2 years ago

Can you help with it too please

0
jolos2
jolos2

Reply 2 years ago

Please send me how to add another 1 digit and how the would be look like many thanks

0
jolos2
jolos2

Reply 2 years ago

How the code would be look like when added another 1 digit

0
taeyeon
taeyeon

Reply 2 years ago

can you give it to me too? pleaseeee

0
TholudA
TholudA

Reply 2 years ago

please give me too, i need to add 1 more digit

0
Bverysharp
Bverysharp

2 years ago

A very helpful and educational instructable. I specially appreciated the comment from KoKoY2 to convert the code to common cathode.

0
Adityan57
Adityan57

2 years ago

GOOD IT HELPED ME A LOT

0
ReymarB1
ReymarB1

3 years ago

i have a problem in my seven segment, if use the common anode, the seven segment isn't displaying anything, if use the the common cathode, some of the segments are not working. help pls

0
Funnyguy123p -P
Funnyguy123p -P

Reply 2 years ago

after fooling around i found a solution. flip around the code for the leds in the segment display i.e. if it says digitalWrite (A,HIGH); switch it to digitalWrite(A,LOW);

0
JanD33
JanD33

2 years ago

how to make two digit one pls :) text me. Thanks a lot

0
seamster
seamster

3 years ago

Great instructions. Thank you for sharing how you made this little counter! :)

0
YahavHadad
YahavHadad

Reply 3 years ago

Thanks, appreciate that :)