In this repository I will host the code for my AVR Advent calendar. You can learn how to use the most important interfaces of the AVR 8-bit microcontrollers in 24 days. Even if it is not Advent, this repository can be used as a tutorial to learn how to code with AVR 8-bit microcontrollers.
- Atmega Microcontroller (e.g. Atmega48, Atmega88, Atmega168, Atmega328)
- Attiny44 microcontroller
- three LEDs (green, yellow, red)
- three 480 Ohm resistors
- push button for breadboard
- four 10kOhm resistors
- 7 segment display
- 74HC595 Shift Register Serial In, Parallel Out
- 74HC165 Shift Register Parallel In, Serial Out
- 20 MHz Crystal
- LM75A temperature sensor board
- Breadboard
- Wires
- Potentiometer 10kOhm
- DIP Switch (at least 4 positions)
If you already own a Raspberry Pi, you can use it to program the AVR controllers and use the interfaces to interact with it (UART, I2C, SPI, ...). In case you don't own a RPi and you don't want to buy one, you need the following items to follow my tutorial:
- USBASP programmer
- UART to USB converter
You can watch videos to this tutorials on Youtube or Odysse.
If you want to support my work, you can buy me a coffee or send a tip over PayPal.
- How to install the needed software
- How to write and compile a simple program
- How to flash the program to the target controller
- Bit Operations
- LED Traffic light
- Button control
- 7 Segment Display
- External Interrupt
- Using an external crystal
- UART serial Loopback
- UART Interrupt
- Analog comperat
- Analog Digital Converter
- SPI Master 75HC595
- SPI Master 74HC165
- SPI Slave
- SPI Master with USI
- EEPROM for non volatile data
- I2C Master with LM75A Temperatur sensor
- I2C Slave
- Attiny44 USI I2C Master
- Timer
- PWM
- Watchdogs