Home AVR AVR Code

AVR Code

ATmega128 and MAX7219 8 x 8 matrix

This is a picture of the 8 x 8 LED matrix display I used which I connected to my ATmega128 Here are the connections CS ->...

Atmega128 and a 7 segment display

In this example we will show you how to connect a 7 segment display to our Atmega128. You can think of a 7 segment...

Atmega16 and MAX7219 seven segment display

In this example we connect a MAX7219 seven segment display to our ATmega16, the connection was as follows VCC → 5V GND → GND DIN → PB5 CS...

Attiny2313 PWM flashing LED example

A basic PWM example using an Attiny2313 Schematic Code #define F_CPU 1000000UL #include <avr/io.h> #include <util/delay.h> int main(void) { DDRB   |= (1 << PB2);                   // PWM output on PB2 TCCR0A = (1 <<...

ATMega16 and Arduino LCD Keypad shield

Being interested in various microcontrollers means we purchase lots of modules, development boards and sensors. One of these is the ARduino of which we...

Attiny2313 and LCD example

This is a very similar example to our ATMEGA16 and LCD example. We simply connect our 16x2 LCD display to our Attiny2313 PORTB. Again...

Attiny2313 and flashing LED example

This was another Attiny micro that I had in the tool box, so I decided to create a simple DIY development board (more on...

ATMEGA16 and LCD example

This example is the hello world of LCD examples, we display that text on the LCD in question. Connection is straightforward and you can...

ATMEGA 16 and RGB LED examples

A couple of simple examples, we used an RGB LED breakout. This was a common anode type, so to switch an LED on you...

ATTINY85 – flash multiple LEDs

Similar to our previous example, in this case we connect 3 LEDs up to Pin 5, 6 and 7 which are PB0,1 and 2 Here...