Using AVR-USBasp to Program Arduino
Generally, there are two methods to load the program into Arduino: USB/Serial Communication method ISP method The first method is the most common method, which implemented using USB-to-serial adapter chip/converter. For
Generally, there are two methods to load the program into Arduino:
The procedure to upload sketches into standalone Arduino is similar with session 1. Select “USBasp” from the Tools > Programmer menu and choose “Upload using programmer” menu.
The uploading process is completed when Arduino IDE displays “Done uploading”.
Great! I’m done sharing the ISP method to upload sketches into Arduino, hopefully it is helpful and if you have any inquiry, please do discuss in our technical forum as we seldom check the comment section in tutorial site. Please take note that there is a limitation for this method, that is the bootloader firmware is being replaced by the source code of the blink example. To go back to uploading sketches using USB, you’ll need to burn the bootloader into the chip on the Arduino board. Refer to Burning Arduino Bootloader with AVR USBasp to burn the bootloader onto Arduino using AVR USBasp.
- USB/Serial Communication method
- ISP method
- Load Program into CT-UNO
- Load Program into BBFuino
- Load Program into Standalone Arduino
- Insert the ISP programmer cable socket onto ISP header. The plastic nub of the rainbow cable head and the arrow label should be on the same side.
- You will notice the PWR LED is ON. If it is not, please check the connection between cable head and ISP header.
- Open Arduino IDE software. If you are using older version of Arduino IDE, you may receive some error. Download the latest version from Arduino website. I am using Arduino IDE version 1.0.5 and it works fine.
- Locate your Arduino directory. In my case, my Arduino directory is C:\Users\user\Desktop\arduino-1.0.5 Then, locate the directory hardware\tools\avr\etc. You will notice there is a file named “avrdude.conf” inside that directory.
- Click “Save” to save the edited configuration file and close it. Now you done modified the configuration of Arduino IDE.
- Open Arduino IDE software and call out any example. This tutorial will use the Blink example which can be called out from the File > Example > Basics > Blink menu.
- ATmega328P IC x 1
- 1k? resistor x 1
- 16MHz crystal x 1
- 22pF capacitor x 2
- jumper wires
ISP Programmer Cable Head | Standalone Arduino |
Pin 1: MISO | PB4 (MISO / digital pin 12) |
Pin 2: VCC | VCC |
Pin 3: SCK | PB5 (SCK / digital pin 13) |
Pin 4: MOSI | PB3 (MOSI / digital pin 11) |
Pin 5: RESET | PC6 (RESET) |
Pin 6: GND | GND |
Well explained.
Thanks