Arduino As ISP || Burn Hex File in AVR || Fuse in AVR || Arduino As Programmer

Introduction: Arduino As ISP || Burn Hex File in AVR || Fuse in AVR || Arduino As Programmer

About: i believe to help people and share my knowledge i always want to build creative thing some of them for learning and some of them is very useful.

...........................

Please SUBSCRIBE To my YouTube channel for more videos........

This article is all about arduino as isp.

If you want to upload hex file or if you want to set your fuse in AVR then you no need to buy a programmer, you can do it with arduino.

In this article i have uploaded hex file in atmega8 if you want to upload hex file in other AVR then understand the process and follow same steps.

........................

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Requirements

  1. Arduino uno
  2. Some jumper wires
  3. Breadboard
  4. Crystal oscillator (optional if your controller is set on external oscillator)

*** if your controller is out of the box then no need to connect Crystal oscillator this ****

Step 2: Connect Arduino With Pc

  • Connect your arduino with PC
  • Open arduino IDE and click on tools
  • Then click on board, here select arduino uno
  • Now click on port below board, here select port where arduino is connected.

***** my arduino is connected on COM2, remember your we will use it later.

Step 3: Upload Code

  • Go to the file then examples
  • Find ArduinoISP example
  • Upload ArduinoISP program
  • Now go in tools and select programmer "arduino as isp"

Don't confuse about arduino isp and arduino as isp in programmer.

Step 4: Connect Circuit

  • Here we burn Hex file and set fuse in Atmega8. Please understand the concept so you can burn hex file in any type of avr via arduino.
  • Connect the circuit as given in photo.
  • Crystal oscillator is optional if your Avr is set on external fuse, if AVR is out of the box then no need to connect this.

Step 5: Pin Out Understanding

  • As you can see in first photo there is MISO, MOSI AND SCK pin, which we will connect to the respectively 13,12,11 pin of arduino.
  • As you can see in second photo there is Reset pin which we will connect to the 10th pin of arduino.
  • In third photo you can see VCC, AVCC and GND pin, connect AVCC and VCC to 5v of arduino, GND to GND of arduino.

Step 6: Download the Zip File

  • Download the zip file given below
  • Extract the zip file

Step 7: Find Your Controller Code

Paste your Hex file in same folder which we have downloaded, where you can see cmd.txt file.

  • Open cmd.txt file in folder
  • Copy first line which is "avrdude -c arduino -b 19200 -p xyz"
  • Type cmd at the top bar of your pc as shown in photo.
  • Here command terminal is opened
  • Paste your line and hit enter
  • In last photo you can see controlled name and controller code mine is m8 for atmega8.

Step 8: Detect Controlled

  • Copy second line in taxt file which is "avrdude -c arduino -b 19200 -p m8 -P COM2 -n"
  • Paste it in command terminal
  • Now change your com port mine is COM2 where your arduino is connected.
  • Change your controller code mine is m8.
  • Hit enter.
  • When you see some device signature and fuse ok it means your controller is detected.

Step 9: Set Fuse

  • Copy this line which is "avrdude -c arduino -b 19200 -p m8 -P COM2 -U lfuse:w:0xE2:m -U hfuse:w:0xD9:m"
  • Past it in command terminal.
  • Now change your com port mine is COM2 where your arduino is connected.
  • Change your controller code mine is m8.
  • This fuse is set on internal 8MHZ, it means you no need to connect external Crystal oscillator.
  • Hit enter.
  • Now fuse is set it is one time process no need to to next time.

If you want to change fuse then E2 is lower fuse and D9 is higher fuse, you can change it according to your requirements.

Step 10: Upload Hex File

    Before this paste your hex file in same folder, where you can see cmd.txt file.

  • Copy last line and paste it in command terminal.
  • At the last of line you can see file name, replace it with your hex file name.
  • Now change your com port mine is COM2 where your arduino is connected.

  • Change your controller code mine is m8.

  • Hit enter.

  • If you see same massage as in my third photo then your hex file is burned in AVR.

....ALL DONE....... HO HO HO..

Be the First to Share

    Recommendations

    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest
    • Fix It Contest

      Fix It Contest

    Discussions