The environment is Windows 7, arduino 1.0.5.
So I have an ATMEGA328 to which I need to upload the arduino bootloader. You can reprogram even if it is already bootloaded.
Required components:
- Arduino UNO with atmega328 on it.
- Another atmega328 ( on which the bootloader has to be updated )
- 22pf capacitors(2), 16Mhz crystal, breadboard and wires.
Steps:
- Wire the circuit as shown
- Open Arduino IDE and select open > ArduinoISP sketch
- Select Tools > Board > Arduino UNO (First One)
- Select the COM port
- Select Tools > Programmer > Arduino as ISP
- Compile and Upload the code
- Now change the Board to Arduino Duemilanove w/ Atmega328 ( Select Tools > Board > Arduino Duemilanove w/ Atmega328 )
- Now click on Tools > Burn Bootloader.
Important : two Atmega328 is requred one on Arduino UNO board and one on breadboard. Arduino uno board is used to here to update the bootloader on Atmega328 in the breadboard.