Easy Ways to Fill Bootloader Using Arduino and USBasp - Mangihin.com
Skip to content
Home Easy Ways to Fill Bootloader Using Arduino and USBasp

Easy Ways to Fill Bootloader Using Arduino and USBasp

Daftar isi:

What’s that bootloader on arduino? Bootloader Arduino is a set of basic functions that handle input and output related to hardware and a collection of libraries (library) that bridges the complex functions that run in the program. In short, bootloader Arduino functions to handle the input and output processes when filling in program code (known as sketch) through software Arduino IDEA. When likened to a computer system bootloader it’s a kind of BIOS. Meanwhile, if compared to the operating system (OS), bootloader it’s like the kernel.

When we buy an arduino board, it’s already there bbotloader so we can directly fill out a program via software Arduino IDEA. What if we want to load the program on a new IC through the arduino board? Suppose the IC installed on your Arduino is damaged, then what we have to do is fill in the bootloader first so that later we can upload the program using software Arduino IDEA. If you don’t want to bother, we can buy an ATMEGA IC that has been filled bootloader on the market or online on line.


After filling out a program on the microcontroller IC installed on the Arduino board, we can remove it and install it on the minimum system that we made earlier. This makes us not need to buy an Arduino board every time there is a microcontroller project. In addition, we can also fill in the program by making the Arduino board itself an ISP programmer (in-System Programmer) and can also use USB programmer Other AVRs that supportwith software Arduino IDEA such as USBasp, USBtiny, and others.

 Arduino ISP

  1. Open, please software Arduino IDEA on the desktop by double-clicking or by right-clicking on icon Arduino IDEA then click Open, a display like Figure 1 will appear below
    Image 1.Arduino Sketch View
  2. Then click File -> Examples -> 11.ArduinoISP -> ArduinoISPa new window will appear containing the program syntax ArduinoISP (Figure 2)
    Figure 2.Appearance sketch ArduinoISP program
  3. Then select the type BaordArduino/Geuino UNO” on the menu Tools -> Board -> Arduino/Geuino UNOthen select serial portwhich has been installed on the laptop by clicking the menu Tools -> Serial Portthen Upload first sketch ArduinoISP on board Arduino via menu Sketch -> Upload or you can press the button CTRL+U. If the process is successful uploading sketchthen the Arduino Uno board that you are currently using is already functioning as a board ISP (in-system programming)that is board can be used to load programs to another target (microcontroller) via the MISO/MOSI port
  4. Then prepare the ATMega 8/328 IC which will be filled with the Arduino bootloader, and you can make a simple minimum system circuit on the circuit board as shown in Figure 3.
    Figure 3. Circuit schematic
  5. Then back to software Arduino IDEAselect type board which will later be used for the IC in the menu Tools -> Board -> Arduino/Geuino UNOif the IC to be given bootloaderThis type of ATMega 328. If the IC to be given bootloader is type ATMega 8/168 then at Board changed into Arduino NG or older
    Figure 4. Selection display boardon the menu tools
  6. Then select the type of programmer by clicking on the menu Tools -> Programmer -> Arduino as ISP(Figure 5)
    Figure 5. Selection display programmeron the menu tools
  7. The last step is to do burn bootloader on the target IC by clicking the menu Tools -> Burn Bootloader. Wait until the program delivery process is complete marked with the words Done burning bootloader”.

While the second way you can use USBasp, please follow the steps below

 USBasp

  1. For burning bootloader use USBaspwe can do this by selecting board used by clicking on the menu Toos -> Boards -> Arduino/Geuino UNO
  2. Then select the type programmer used is USBasp by clicking the menu Tools -> Programmers -> USBasp
  3. Make a circuit using connecting wires from board USBasp to board minimum system (Figure 6) or board Arduino UNO (Figure 7) on pin MISO, MOSI, SCK, RESET, 5V, and GND like the following scheme
    Figure 6. USBasp connection display on IC ATMega
  4. Figure 7. USBasp connection display on board arduino
  5. If the pins have been connected according to the scheme in Figure 3.6 or Figure 3.7, then the next process is to do burn bootloader on the target IC by clicking on the menu Tools -> Burn bootloader. Wait until the process is complete with a marked text Done burning bootloader”.

    Source:
    http://saptaji.com/2014/02/16/fill-your-bootloader-arduino-ke-ic-atmega-8168328/
    Syahwil, Muhammad. 2017. Easy Guide to Learn Arduino Using Proteus Simulation. ANDI. Yogyakarta.

s

Mangihin.com is a website that provides useful information, please share if there is interesting information that can help you. Thank you