Professional Documents
Culture Documents
Faculty of Engineering
Department of Electrical and Electronic Engineering
TITLE: Building a decade counter using Arduino Uno and a 7-segment display.
Submitted by:
NAME: HASAN, MD. NAZMUL ID:18-36144-1
SERIAL NUMBER:19
CONTACT:01839076085
SUBMITTED TO:
SUJAN HOWLADER (ESSAN)
ASSISTANT PROFESSOR
FACULTY OF ENGINEERING
DEPARTMENT OF EEE
© Dept. of EEE & COE, FE, AMERICAN INTERNATIONAL UNIVERSITY-BANGLADESH (AIUB)
SEMESTER: SPRING 2020-21
Title: Building a decade counter using Arduino Uno and a 7-segment display.
Introduction:
A decade counter is an electronic device which counts up to 10 and then resets itself. It is an important
device and as a counter, it has multiple uses where it has any chronological occurrence. The counter itself
is used along with a 7-segment display which gives us a visual presentation of the counting that has been
operating. In general decade counters are used in clock circuits, frequency dividers, state machines and
sequencers. Due to the unavailability of the regular lab facilities, the hardware design of this particular
decade counter and 7-segment display is executed using Visual Designer i.e., Proteus professional
schematic capture and Proteus VSM simulation. The advantage of designing the system in this method is
that including the code in the Arduino Uno is easy and the overall process can be controlled by a
flowchart editor and is simplified using Drag-Drop-Play and the electronics on the schematic
automatically places and connects themselves.
Abstract:
In this experiment a decade counter with a 7-segment display is designed using Arduino Uno
(R3), 7-segment display. The experiment is done by using both flowchart and Arduino IDE.
A seven segment display consists of 7 LEDs/ segments all arranged in the shape of the digit “8”. Most of the
segment display has 8 segments (with a dot at the right side of the digit representing the decimal point. All of the
seven segments are named by sequence from “A” letter to “G” and “DP” for the decimal point. And each of the segments can
be controlled as individually just like a
regular LED.
Apparatus:
#define segA 2
#define segB 3
#define segC 4
#define segD 5
#define segE 6
#define segF 7
#define segG 8
int COUNT=0;
void setup()
{
for (int i=2;i<9;i++)
{
pinMode(i, OUTPUT);
}
}
void loop()
{
switch (COUNT)
{
case 0:
digitalWrite(segA, HIGH);
digitalWrite(segB, HIGH);
digitalWrite(segC, HIGH);
digitalWrite(segD, HIGH);
digitalWrite(segE, HIGH);
digitalWrite(segF, HIGH);
digitalWrite(segG, LOW);
break;
Reference(s):
https://www.arduino.cc/.
HDSP5503 Datasheet.