Step by step tutorial how to use Arduino Uno as ISP (In-system programming) to burn bootloader on Arduino Nano (ATmega 328) or Arduino Leonardo (ATmega 32U4). 10uF capacitor, jumper wires, USB cables and Arduino IDE on a personal computer are required. The long leg of the capacitors goes to RESET on Arduino Uno and the short leg to GND. 22uF will also do the job. The ISP requires SPI wiring. For details have a look at: www.arduino.cc/en/tutorial/ar...
The exact steps:
1. Flash ArduinoISP sketch from Arduino IDE on Arduino Uno. Load the sketch from File - Examples - Arduino IDE.
2. Add 10uF capacitor (22uF may also work) to Arduino Uno. The long leg goes to RESET and the short leg to GND.
3. Connect Arduino Uno (the programmer) to the board with AVR mictrocontroller using the ISP header with SPI interface (MOSI, MISO, SCK), RESET, GND and 5V. The places of the pins may be different depending on the board. Check the wiring at www.arduino.cc/en/tutorial/ar...
4. In Arduino IDE select an appropriate target board, for examples Arduino Nano or Arduino Leonardo. Click Tools - Burn Bootloader. It is recommended to have enabled verbose output in Arduino IDE preferences before that. Arduino Uno will act as a programmer and burn bootloader to the target board.
Note: On ubuntu 22.04 there is conflict between brltty and ch341-uart converter on Arduino Uno, as a work around to solve it remove brltty:
sudo apt remove brltty
Please note this is an advanced tutorial. Do it on your own risk. You may need to make adjustments if you are using different (but still compatible) hardware.
Негізгі бет Ғылым және технология Arduino as ISP to Burn Bootloader on AVR Microcontroller
Пікірлер: 58