ATmega32 AVR LED Project Report
ATmega32 AVR LED Project Report
Abstract
This project demonstrates a simple LED sequencing task using the ATmega32 AVR
microcontroller. Eight LEDs are connected to digital pins, and the program sequentially
turns the first four LEDs ON, then OFF after a delay, followed by the next four LEDs. The
process repeats in a loop, showcasing the ATmega32 AVR's capability to control external
hardware via digital pins.
Introduction
Hardware:
Software:
- Arduino IDE
- Serial Monitor (optional for debugging)
Methodology
2. LED Control Logic: Use a simple loop structure to toggle groups of LEDs. Create delays
using the `delay()` function in Arduino..
Arduino Uno Port Control for LED Sequencing
Name: Diaa Ahmed Hussien ID: 202006112
Code Implementation
void setup() {
pinMode(pin, OUTPUT);
void loop() {
digitalWrite(pin, HIGH);
digitalWrite(pin, LOW);
delay(LED_DELAY);
digitalWrite(pin, LOW);
digitalWrite(pin, HIGH);
}
Arduino Uno Port Control for LED Sequencing
Name: Diaa Ahmed Hussien ID: 202006112
delay(LED_DELAY);
Testing Procedure:
Testing Procedure:
2. Power the circuit using the Arduino and upload the program.
Results:
- The first four LEDs turn ON, then OFF after the delay.
- The next four LEDs turn ON, then OFF, creating a continuous sequence.
- The program operates as expected, demonstrating reliable port control.
Conclusion