ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

00 to 99 Display in Quad 7-Segment Display with ATmega32

10005
3
Mark as Favourite

Things gets a little bit more complicated when we want to have more than one 7-segment display and each one will show a different number. Normally, we would need 8 pins for each one (7 for seven segments and one for DP), so a total of 16 pins are required for two 7-segment display, right? No, because in that way, if we wanted to have 6 digits (for a frequency meter for example) we would need 48 pins! Instead, we will make a trick, a trick with the eye. The catch is that the human eye does not operate non-stop all the time. Instead, it takes 10 ‘photos’ each second. Between those photos, the brain will keep the last photo taken active, something like a ‘latch’. We will take advantage of this characteristic of human eye in this project. This trick or technology is called time shairing. Using this technology, we need only 10 pins of the microcontroller to display from 00 to 99 in two 7-segment display.

In this project, we will learn How to display from 00 to 99 in two common anode 7-segment displays with AVR ATmega32 microcontroller. The two 7-segments are connected to the AVR ATmega32 microcontroller using multiplexing technology to save six I/O pins of AVR ATmega32 microcontroller. For detail see the circuit diagram. The microcontroller selects one 7-segment at a time to display one digit of the two digit number. But, the speed at which the microcontroller selects the 7-segment to display the digits is very fast. At this speed, the human eye cannot detect that; at any instant of time only one 7-segment is displaying one digit of the number and the other 7-segment is not displaying anything. The microcontroller displays the numbers from 00 to 99 in the two 7-segment displays and the microcontroller uses its compare match interrupt of Timer Counter feature to give a time delay between two consecutive numbers (delay functions cannot be used to give time delay between two consecutive numbers). When the display reaches 99, it will restart the display from 00 and the above process continues forever.

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega32
Rs. 730.00
1pc
Rs.730.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
Quad 7-Segment Display Board
Rs. 200.00
1pc
Rs.200.00
1 to 1 Connector-Female to Female
Rs. 4.00
2pc
Rs.8.00
10 to 10 FRC Female to Female Connector
Rs. 15.00
2pc
Rs.30.00
TOTAL Rs.1448.00

Circuit Diagram

00-to-99-Display-in-Quad-7-Segment-Display-with-AVR-ATmega32-Microcontroller-Circuit-Diagram-ABLab-Solutions1-1024x707

Video

Connection Guide

The step-by-step connection guide for 00 to 99 Display in Quad 7-Segment Display with ATmega32 is as follows:

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 7 )

  • Connect PortB header of AVR Trainer Board-100 with 7 Segment header of Quad 7-Segment Display with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 7 )

  • Connect the DIS1 and DIS2 pins of Display Select header of Quad 7-Segment Display with PD0 and PD1 pins of PortD header respectively of AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 7 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 7 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 7 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 6 ( 0f 7 )

  • Download the 00 to 99 Display in Quad 7-Segment Display with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 7 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 7 )

  • Connect PortB header of AVR Trainer Board-100 with 7 Segment header of Quad 7-Segment Display with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 7 )

  • Connect the DIS1 and DIS2 pins of Display Select header of Quad 7-Segment Display with PD0 and PD1 pins of PortD header respectively of AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 7 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 7 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 7 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 6 ( 0f 7 )

  • Download the 00 to 99 Display in Quad 7-Segment Display with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 7 )

Downloads

00 to 99 Display in Quad 7-Segment Display with ATmega32 Project File
  • 79 downloads 253 Kb

Post a Comment

    • othizey
      how can i ever than u guys
      2016-10-28 13:58:34
      Reply
    • UtsavChaudhary
      What about in Atmel Studio 7
      2017-01-30 17:45:06
      Reply
    • OKONYEFRANCIS
      where is the timercountero.h header file
      2017-02-11 15:50:44
      Reply