How-to-Program-an-AVR-Board-Using-an-Arduino-Board
How-to-Program-an-AVR-Board-Using-an-Arduino-Board
by KushagraK7
Do you have an AVR microcontroller board laying around? Is it tricky to program it? Well, you are in the right
place. Here, I will show you how to program an Atmega8a microcontroller board using an Arduino Uno board as a
programmer. So without further ado, let's get started!
2
7 4
3
1
1. The AVR board proves to useful due to integrated ICs like a motor driver.
2. A DTMF decoder can prove to be useful for future projects.
3. The Atmega 8a is the subject of today's project.
4. An Arduino UNO board will be used to program the AVR microcontroller.
5. A USB A to B to be used to establish communication between the
computer and the Arduino board.
6. Six jumper wires to connect data and power lines of the Arduino board to
the AVR microcontroller.
7. Even though this board has a USB port, the computer fails to recognize
this board when connected.
Start the Arduino IDE and go to Files>Examples>ArduinoISP. Select the appropriate board from Tools>Boards.
Upload the program to the Arduino board.
MOSI to D12
Goto Tools>Boards>Select Arduino NG or older. Then go to tools>Processor and select the one present on your
AVR board. Goto Tools>Programmer and select Arduino as ISP. Now go to Tools again and then click on 'Burn
Bootloader'. The RX and TX LEDs on the Arduino board should flash quickly a couple of times and if a message
appears, stating 'Done burning bootloader' without any error, then your AVR board is ready to be programmed!
Upload a simple program, such as LED blink. Goto Files>Examples>Basics>Blink. Hold the shift key and click on
the Upload button. After uploading is complete, you can remove the connection wires and power up your AVR
board and test whether it has been programmed properly.
1. The LEDs on my AVR board flash because they are hard-wired to the pins
9, 10, 11, and 12.
Now you can use an AVR board to make cool code can be found in the next step. If you are
electronics projects. Since I love model railroading, I interested, you can check mine too.
uploaded a simple program to run a locomotive on an
automated layout. Since my AVR board has two I would love to know what you made today with it. All
motor outputs, I can use them to control the the best!
locomotive and a turnout. The program file of this