In this tutorial we will get hands on with AVR breakout board. Here we will interface simple LED with one of the port pins. For this tutorial we will require a breadboard, LEDs and resistors.
Basics
All the port pins of the Atmega 32 are taken out on breakout board so that you can easily interface any peripheral with it. We will connect the LED to PORT B0 as shown below.Usually 220,470 or 1k ohm resistor is used as a current limiting resistor to prevent the LED from blowing up.
Refer the AVR I/O Register Configuration tutorial for basics of GPIO register configuration.
Hook up
Code
#include <avr/io.h> | |
#include <util/delay.h> | |
#define LED 0 | |
int main() | |
{ | |
DDRB |= (1<<LED); // Configure PORTB0 as output | |
while(1) | |
{ | |
PORTB |= (1<<LED); // Turn ON Led connected to PORTB0 | |
_delay_ms(1000); // Wait for some time | |
PORTB &= ~(1<<LED); // Turn OFF Led connected to PORTB0 | |
_delay_ms(1000); // Wait for some time | |
} | |
return 0; | |
} |
Demo
Downloads
Download the complete project folder from the below link:
https://github.com/ExploreEmbedded/AVR-MCU-Breakout-Board.git
Have a opinion, suggestion , question or feedback about the article let it out here!

Setting Up AVR Breakout
In this tutorial we will look at the basic setup required to get started with AVR breakout board. After completion of this basic setup we can interface peripherals with the breakout board. ...

Blinky with AVR Breakout
In this tutorial we will get hands on with AVR breakout board. Here we will interface simple LED with one of the port pins. For this tutorial we will require a breadboard, LEDs and resistors. ...
Interfacing LCDs with AVR Breakout
In this tutorial let's interface a 16x1,16x2 and 20x4 character display with AVR breakout board. For this tutorial we will require a LCD Breakout. Basics LCD can be interfaced with...

Interfacing Seven Segment Display with AVR Breakout
After blinking the LED , Let's display user information like numeric value using seven segment display. In this tutorial we will interface a seven segment display to AVR breakout board and display a...