Components Required
- Atmega 328 IC
- Breadboard
- LM7805
- 16 MHz Crystal
- 22pF ceramic capacitors (2)
- 10uF capacitor(2)
- 10 K resistor
- 1k resistor
- Jumper wires
Step 1:- Connect the Power Supply Part as shown in circuit diagram and test it using external power supply to LM7805. It will looks like this.
Step 2:- Now, connect the Microcontroller Part as shown in circuit diagram. Make the connections carefully.Step 1:- Open Arduino IDE. Go to File -> Examples -> ArduinoISP. Than choose ArduinoISP. As shown below.
Step 2:- Now, you have to upload this code to your Arduino board. Choose the com port and board from the tool menu and hit the upload button.
Step 3:- After ‘Done uploading’, disconnect the Arduino board from the computer and make the connections of Arduino board with Atmega 328 as shown in below diagram.
Step 4:- Now, connect the Arduino board with the computer. Open Arduino IDE.
Go to Tools , Choose board as Arduino/Genuine Uno, Choose the correct Port for your board. Choose Programmer as “Arduino as ISP”. Don’t confuse it with ArduinoISP. Both are different.
Method-2: How to Program Arduino Bootloader uploaded Atmega 328 IC
Standalone Arduino Atmega328 Chip can be programmed in many ways.
- Using blank Arduino board i.e. Arduino board without Atmega 328 IC in it.
- Using USB to Serial TTL converter module (FTDI module).
- Using USBasp programmer (involve many connections).
Programming Atmega328 Chip using Arduino board
Step 1:- Take an Arduino board without Atmega328 chip. Make the connections of Arduino board with our breadboard Arduino as shown in this diagram.
Step 2:- Connect the Arduino board with the computer and open the Arduino IDE. Choose Arduino Uno from Board menu in Tools, Programmer as USBasp and correct com port of the board.
Step 3:- We will start by uploading the Blink program. So choose the blink program from Examples and hit Upload button.
No comments