1. You either need a microcontroller with a pre-loaded Bootloader, or must load your own
2. Not all ATmega328’s are equal
(A bootloader, very simply, is a programme that sits on the chip and manages the upload of your sketches onto the chip)
There are plenty of bootloading resources, but I couldn’t find a single one that pulled everything together in a way that made sense to me. Here goes…
Step 1: Parts
Step 2: The Approach
Step 3: Program your Arduino UNO as an ISP
- Open the Arduino IDE
- Open the ArduinoISP sketch (under File, Examples)
- If you’re using version 1.0 of the IDE:
Connect your UNO to the PC, making sure it’s not connected to the Arduino on a Breadboard.
Ensure your UNO is selected under the Boards menu option, and upload the sketch.
Step 4: Connect your ATmega328
- UNO 5v ---> ATmega pin 7 (VCC)
- UNO GND ---> ATmega pin 8 (GND)
- UNO pin 10 ---> ATmega pin 1 (RESET)
- UNO pin 11 ---> ATmega pin 17 (MOSI)
- UNO pin 12 ---> ATmega pin 18 (MISO)
- UNO pin 13 ---> ATmega pin 19 (SCK)
Make sure that you don’t have anything else connected to the ATmega pins used above.