0% found this document useful (0 votes)
2 views

How-to-Program-an-AVR-Board-Using-an-Arduino-Board

Uploaded by

lord_enki
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

How-to-Program-an-AVR-Board-Using-an-Arduino-Board

Uploaded by

lord_enki
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

instructables

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!

Step 1: Gather All the Stuff

Here is all that you will need:

An Arduino UNO/MEGA/nano microcontroller board.


An AVR microcontroller board with a compatible microcontroller(such as an Atmega 8a)
An appropriate USB cable for the Arduino board
Six jumper wires(two for power, one for resetting the target AVR board and the rest three for
communication)

Click on the above image to know more.

How to Program an AVR Board Using an Arduino Board: Page 1


6

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.

Step 2: Upload the ISP Program to the Arduino Board

Start the Arduino IDE and go to Files>Examples>ArduinoISP. Select the appropriate board from Tools>Boards.
Upload the program to the Arduino board.

How to Program an AVR Board Using an Arduino Board: Page 2


Step 3: Connect the Target AVR Board to the Arduino Board

Make connections as following(AVR to Arduino SCK to D13


board):
If you can't find any such labeled pins, check out the
VCC to 5-volt datasheet of the microcontroller chip on the web. I've
added a pinout diagram of some popular Atmega
GND to GND microcontroller ICs above. My AVR board had an
Atmega 8a on it. Also, all important pins on the board
RST/RESET to D10 were labeled. Make sure you don't use loose and
flimsy wires.
MISO to D11

MOSI to D12

How to Program an AVR Board Using an Arduino Board: Page 3


Step 4: Burn the Bootloader on the AVR Board

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!

How to Program an AVR Board Using an Arduino Board: Page 4


Step 5: Test the AVR Board

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.

Step 6: It's Done!

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

How to Program an AVR Board Using an Arduino Board: Page 5


https://www.youtube.com/watch?v=ouyxqtdf224

How to Program an AVR Board Using an Arduino Board: Page 6

You might also like