ablab

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

000 to 999 Display in Quad 7-Segment Display with ATmega16

13267
5
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 24 pins are required for three 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 sharing. Using this technology, we need only 11 pins of microcontroller to display from 000 to 999 in three 7-segment display.

In this project, we will learn How to display from 000 to 999 in three common anode 7-segment displays with AVR ATmega16 microcontroller. The three 7-segments are connected to the AVR ATmega16 microcontroller using multiplexing technology to save 13 I/O pins of AVR ATmega16 microcontroller. For detail see the circuit diagram. The microcontroller selects one 7-segment at a time to display one digit of the three 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-segments are not displaying anything. The microcontroller displays the numbers from 000 to 999 in the three 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 999, it will restart the display from 000 and the above process continues forever.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
Quad 7-Segment Display Board 1pc
1 to 1 Connector-Female to Female 3pc
10 to 10 FRC Female to Female Connector 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for 000 to 999 Display in Quad 7-Segment Display with ATmega16 is as follows

  • Steps - 1 ( 0f 7 )

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

  • Steps - 2 ( 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 - 3 ( 0f 7 )

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

  • Steps - 4 ( 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 - 5 ( 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 - 6 ( 0f 7 )

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

  • Steps - 7 ( 0f 7 )

    Download the 000 to 999 Display in Quad 7-Segment Display with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • 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, DIS2 and DIS3 pins of Display Select header of Quad 7-Segment Display with PD0, PD1 and PD2 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 000 to 999 Display in Quad 7-Segment Display with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 7 )

Downloads

000 to 999 Display in Quad 7-Segment Display with ATmega16 Project File
  • 255 downloads 0 Kb

Post a Comment

    • AbdelazizMohamed
      very nice job indeed.
      2017-12-21 14:35:00
      Reply
      • Arun Kumar Garg

        Thank you.

        2017-12-21 14:36:30
        Reply
    • Fahimuddin,
      Thanks for valuable information.
      2017-12-08 12:11:52
      Reply
      • BaLate
        Hey guys, Can u sent me my gmail.(lucifer.star.78@gmail.com)plz help me
        2018-01-17 21:10:06
        Reply
      • Arun Kumar Garg

        you are welcome.

        2017-12-08 12:13:03
        Reply
    • BaLate
      Hello,Sir Can i test in pic16f628A.Thank you very much.
      2018-01-17 17:37:21
      Reply
      • Arun Kumar Garg

        No. its not possible.

        2018-03-03 11:13:25
        Reply
    • TeknikElektro 17
      can you help me send your coding to y email please i helping for this
      2019-04-30 21:34:32
      Reply
      • Arun Kumar Garg

        Plz download it from the website.

        2019-05-01 10:54:26
        Reply