Arduino Push Button Counter

22,051

11

2

Introduction: Arduino Push Button Counter

Let's Learn how to make an Arduino pushbutton counter. I used digispark attiny85 Arduino, but it will work with any Arduino. so you can use Arduino uno or some other if you want.

You can see how this work in video or with this link: https://www.youtube.com/watch?v=1o_9ELJzqHg

Step 1: What We Need?

We need :

-Arduino board

-TM1637 -4 digits dispaly module

-push button

-10 resistor

-breadboard and wires


You will also need library for the module, download and install library using the link bellow.

https://github.com/avishorp/TM1637

Now, lets connect everithing together!

Step 2: Code

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    2 Discussions

    0
    YOUSSEFB45
    YOUSSEFB45

    Question 1 year ago on Step 2

    i want to make 7 counters using one arduino is that possible and how can i do it

    0
    DennisPropellerHead
    DennisPropellerHead

    3 years ago

    Can you help me expand this idea a bit? I want to build a punch
    counter for my son's martial arts club. It will count the number of hits
    to a punching board (bag) in 45 seconds.

    Ideally, what I envision is a reset button, triggering a set of warning beeps......

    beep,
    beep, beeeeeeeeeeeeeep, a small counting display 1-45 seconds and a
    much larger display for the count (3 digits would suffice) followed by a
    long beep and stop and freeze the count until the next reset.

    Although it might be possible to trigger it with a switch, I think an accelerometer might be the way to go.

    I
    have all the parts to build, but I am a complete beginner on the
    programming side and I could use some help. I want to learn this stuff,
    but I need this project sooner than later. ;-)

    Any offers to help greatly appreciated!

    Best Regards, Dennis