DIY Arduino Bootloader - custom programmer shield

Penguin Tutor
Penguin Tutor
2.5 هزار بار بازدید - 3 سال پیش - This shows how to install
This shows how to install an Arduino bootloader onto a ATmega328 microcontroller or similar IC. In this I show a dedicated Arduino shield which can be used to program the ATmega328p outside of your own custom circuit. I also include a diagram for how this can be done using an Arduino and a Breadboard. You will also need the Arduino IDE and a computer to run that on, a Raspberry Pi would be ideal, but you can also use other Linux variants, Windows or other operating systems.

This is useful if you are creating your own custom Arduino like circuit and would like to use a ATMel ATMega328p which was supplied without a bootloader burned into it.

This first uses an Arduino (in this case I used a Leonardo, but a UNO would be easier). The Arduino is setup as an Arduino ISP by installing code included in the Arduino IDE. You then need to crea a basic Arduino circuit based around the ATmega328p. I created a shield for this, but it could also be created on a breadboard.

You can then use the bootload programmer on the Arduino IDE which sends the bootload code via the Arduino ISP to program the ATmega microcontroller.

Once this is done you can either connect a UART to the sheild / breadboard and install a program on the microcontroller as though it was an Arduino UNO, or you can take the microcontroller into your end circuit and prgram is there.


For more details see:
http://www.penguintutor.com/electroni...

This is suitable for use with the custom arduino projects such as:

Guide to creating a custom Arduino circuit:
http://www.penguintutor.com/electroni...


KiCAD design an Arduino based circuit:
http://www.penguintutor.com/electroni...

Model Railway signal automation:
http://www.penguintutor.com/projects/...


Chapters:
00:00 Introduction to Arduino bootloader
01:28 AVR-ISP (In-system programmer)
02:49 Arduino as ISP
03:25 Using a breadboard
03:44 Bootloader / programmer shield (V1)
05:48 Arduino Leonardo
06:38 Installing the bootloader
09:20 Install Arduino code using a UART
10:07 Future changes
11:37 ATmega328p Programmer and Bootloader shield V2
12:10 Summary
3 سال پیش در تاریخ 1400/01/23 منتشر شده است.
2,552 بـار بازدید شده
... بیشتر