ablab

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

LED Pattern 8 with ATmega32

2093
Mark as Favourite

In this project, we will learn How to generate different patterns in a 1×8 LED array with AVR ATmega32 microcontroller. First, we will connect the 8 LEDs with 8 pins of any port of the ATmega32 microcontroller. Then, we will generate the below pattern in the 1×8 LED array. The pattern is shown in below diagram:

0 1 2 3 4 5 6 7 LED Position
x x x x x x x x Initial State of LEDs
* x x x x x x * 2nd State of LEDs
* * x x x x * * 3rd State of LEDs
* * * x x * * * 4th State of LEDs
* * * * * * * * 5th State of LEDs

 In the above diagram, * means LED is on and x means LED is off. The time interval between each state is 500ms and the above pattern 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
10 to 10 FRC Female to Female Connector 2pc
AVR Trainer Board-100 with ATmega32 1pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for LED Pattern 8 with ATmega32 is as follows

  • Steps - 1 ( 0f 6 )

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

  • Steps - 2 ( 0f 6 )

    Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 6 )

    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 6 )

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

  • Steps - 5 ( 0f 6 )

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

  • Steps - 6 ( 0f 6 )

    Download the LED Pattern 8 with ATmega32 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 6 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 6 )

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

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

    Steps - 4 ( 0f 6 )

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

    Steps - 5 ( 0f 6 )

  • Download the LED Pattern 8 with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 6 ( 0f 6 )

Downloads

LED Pattern 8 with ATmega32 Project File
  • 10 downloads 0 Kb

Post a Comment