For fast transaction call 0916.457.0748
ATMEGA328P-PU installing Bootloader using Arduino UNO Board

ATMEGA328P-PU installing Bootloader using Arduino UNO Board

In this tutorial, you can use the ATMEGA328P-PU without the UNO Board. Installing Bootloader is a key for you to use it independently. Please follow the instruction below:

 

Things you’ll need:

  • ATMEGA328P-PU
  • Arduino UNO
  • 60Hz Oscillator
  • 10Kohm Resistor
  • Breadboard
  • Connecting Wire

 

First, we just need to familiarize the ATMEGA328P datasheet which can be found in our store ATMEGA Kit and click the downloadable files. Basically, there are lot to read so here are the most important things, the pin out of the ATMEGA.

 

 

Loading Arduino ISP

Connect your Arduino UNO to your computer.

Select board and port you are using.

Open your Arduino Software and here we must load the Arduino ISP into your Arduino UNO.
File >> Examples >> Arduino ISP

  

Then configure your Arduino UNO Board as ISP Programmer.

Tools >> Programmer: >> Arduino as ISP

 

 

Then Upload the code.

 

 

Loading the Bootloader to the ATMEGA328P-PU

Here are the connections you need before the Bootloader could be uploaded to your atmega.

Disconnect first your Arduino UNO in your Computer before you proceed to wiring.

 

Arduino UNO to ATMEGA328P-PU

D10 ----- Pin 1
D11 ----- Pin 17
D12 ----- Pin 18
D13 ----- Pin 19
+5V ----- Pin 20 and Pin 7
Gnd ----- Pin 22 and Pin 8
               Pin 1 and Pin 7 are connected using 10Kohm Resistor
               Pin 9 and Pin 10 are connected using 60hz Oscillator

 

 

Connect your Arduino to your Computer and Select the port you are using.

Now You can burn the Arduino Bootloader to the Atmega:

Tools >> Burn Bootloader

 

 

Wait for about a minute to complete the process.

Done! Your Atmega is ready to be programmed as a Standalone Programmer.

 

We can test and upload a code to your ATMEGA to make sure it’s working, but still will be using the Arduino UNO Board so you need to remove the MCU in it.

 

Now let us do the circuit to program the ATMEGA

 

Arduino Board to ATMEGA

Reset ----- Pin 1
D0 -----   Pin 2
D1 -----   Pin 3
+5V ----- Pin 20 and Pin 7
Gnd ----- Pin 22 and Pin 8
               Pin 9 and 10 connect 10K Resistor       
               Pin 1 and 7 connect the Oscillator

 

 

Run a simple code

Now configure your Arduino IDE to default –  Tools >> Programmer >> AVR ISP

 

void setup() {
  Serial.begin(9600);
 
}
 
void loop() {
  Serial.println("It worked!");
  delay(1000);
 
}

 

And upload as you usually do.

That’s it, you have your Stand Alone ATMEGA328P-PU programmed.

 

 

Happy Coding!


0 comments

Leave a comment

Please note, comments must be approved before they are published

Payment Methods

Facebook Rewards Program