American International University-Bangladesh Department of Computer Science
American International University-Bangladesh Department of Computer Science
Title Building a decade counter using Arduino Uno and a 7-segment display.
Section K
Group No. 1
Introduction:
The objective of this experiment is to interface a 7-segment display with Arduino Uno.
Equipment-
• Arduino IDE
• Arduino Uno (R3) board or Arduino mega 2560.
• 7 segment display (HDSP5503).
• LED
• WIRE
Arduino is an open-source platform used for creating interactive electronics projects. Arduino consists of
both a programmable microcontroller and a piece of software, or IDE (Integrated Development
Environment) that runs on your computer, used to write and upload computer code to the microcontroller
board. Arduino Uno also doesn’t need a hardware circuit (programmer/ burner) to load a new code into
the board. We can easily load a code into the board just using a USB cable and the Arduino IDE (that
uses an easier version of C++ to write a code).
Pin configuration of the board (Arduino Uno R3) and Arduino Mega 2560:
1
Basis of a 7-segment display:
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.
7 Segment Display
Apparatus:
2
3) 7 segment display (HDSP5503).
Flowcharts: -
3
2. (For even digits)
4
Result and simulation: -
5
2. (For even number display)
6
3. (For odd digits)
7
Discussion: In this experiment we learned about the design of a decade counter using Arduino Uno and
a 7-segment display. The main goal of this experiment is to familiarize with the Arduino Uno and the 7-
segment display and how to control it, the control system implementation using Arduino and OLED
display. First of all we have used proteus software for simulating this experiment. we have learn about
schematic diagram and Flow chart . there are some errors due to human error those were fixed. As we
can’t do it in physically, we have to rely on software
Reference(s):
1) https://www.arduino.cc/.
2) https://www.labcenter.com/visualdesigner/