Introduction: How to Upload Sketches on ATMEGA328P-PU

In questo articolo tratterremo di come si fa l' upload di uno sketch in un ATMEGA328P-PU con bootloader già preinserito (la procedura per il caricamento del bootloader è spiegata qui).

In this article we will discuss how to upload a sketch to an ATMEGA328P-PU with the bootloader already pre-loaded (the procedure for loading the bootloader is explained here).

Step 1: Software

Carica lo sketch "Arduino ISP" sull'Arduino Mega (lo si può trovare nella cartella esempi).

Load the "Arduino ISP" sketch onto the Arduino Mega (you can find it in the examples folder).

Step 2: Connections

Ora effettua i collegamenti come da immagine.

Now make the connections as shown in the picture.

Step 3: Type

Seleziona la giusta tipologia di scheda (ad esempio io ho inserito nell'ATMEGA328P-PU il bootloader di un Arduino Uno) e la rispettiva porta, inoltre seleziona "Arduino as ISP" come programmatore su "Strumenti".

Select the right type of card (for example, I have inserted in the ATMEGA328P-PU the bootloader of an Arduino Uno) and the respective port, also select "Arduino as ISP" as a programmer on "Tools".

Step 4: Upload

Carica lo sketch cliccando su "Carica tramite un programmatore" su "Sketch".

Upload the sketch by clicking on "Load by a programmer" on "Sketch".

Step 5: Finish!

Se tutti i precedenti procedimenti sono andati a buon fine e i collegamenti sono stati effettuati correttamente, lo sketch ora sarà stato caricato nel tuo ATMEGA328P-PU!

If all the previous procedures have been successful and the connections have been made correctly, the sketch will now have been loaded into your ATMEGA328P-PU!