Arduino Count Down W/ Rest Button

Introduction: Arduino Count Down W/ Rest Button

This Instructable will teach you how to create a countdown timer using a 4 Digit 7-Segment Display that can reset with a button. I got the idea to make this because while creating the 1 digit 7-segment display in class, I wanted to create something bigger which brought me to this.

Included in this Instructable are the required materials, the correct wiring, and a downloadable file of the code that was to program the function of the 4 Digit 7-Segment Display. Following these steps properly will make it ensure that your 4 Digit 7-Segment Display works properly.

Step 1: Materials

To create the 4 Digit 7-Segment Display timer, you will need the following:

- 4 Digit 7-Segment Display

-14 Wires (Colour makes no difference when it comes to this)

-11 Wires needed for the 7 Digit Segment

-2 Wires are for the push button

-Push Button

-Audrino UNO With Connection USB Cable

Step 2: Wiring

After placing the 4 Digit 7-Segment and the Push Button on to your Breadboard, the first step is to wire the 4 different digit pins to the first four pins to the Arduino, you can wire the pins as you like and change your code according to that but to make it easier my code is already ready for the way I did it you can do it that way.

After this, continue to wire the remaining 4 Digit 7-Segment Display pins to the Arduino as I did or however u did it. To make it easier for myself, I started with wiring the Digit Pins then finished with the individual light segments as the addition of those wires becomes messy. Next, the remaining pins of the Arduino (Both 13 and 5), will be used to wire the Push Button.

The way i did it:

//pin 12 - first digit = 1
//pin 9 - second digit = 2 //pin 8 - third digit = 3 //pin 6 fourth digit = 4

const int a = 12;

const int b = 10;

const int c = 8;

const int d = 7;

const int e = 6;

const int f = 11;

const int g = 9;

int p = 0;

int startStopReset = 13;

const int d1 =1; const int d2 =2; const int d3 =3; const int d4 =4;

Step 3: Coding

In this step, ill be providing the code I used to create the segment and make it function properly and the way I liked it.

I highlighted the important parts that you can change in order to get different start times and variations within your product, you can choose to use this code or make your own if you'd like but the code is there for you to run it.

To use this code you'll have to download the audrino software where you can find anywhere online and is available for free.

***Reminder*** Even if your wiring is correct if your code is wrong your product won't work, this code changes your inputs and outputs depending on how you list them.

Step 4: Look at It Work

If you followed everything correctly it showed work just like this, and it should be counting down depending on your delays and start time like mine is here.

I hope you enjoyed and learned something through this project.

Be the First to Share


    • Make It Bridge

      Make It Bridge
    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest