Skip to content

julian-zatloukal/blinking-led-dummy-project

Repository files navigation

Dummy project about a blinking LED.

Description

A simple microcontroller-based board that blinks an LED every 500mS.

  • Toggles every 500mS.
  • Based on the ATmega328P microcontroller.
  • Coded in C, compiled in avr-gcc, and written using the Atmel Studio IDE.
  • Printed Circuit Board designed in Eagle (EDA).
  • Simulated in Proteus VSM.

Simulation

Main routine

#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>

int main(void)
{
	DDRD |= (1<<0);
	while (1) 
	{
		PORTD ^= (1<<0);
		_delay_ms(500);
	}
}

Circuit schematic

PCB Top view

PCB Bottom view