You will need
  • - Arduino Pro Mini;
  • computer;
  • - USBASP-programmer;
  • - connecting wires.
Instruction
1
First, a few words about the programmer. You can buy one for $ 2 in any Chinese online store.
Connector type USB-A is used, of course, to connect the programmer to the computer.
The ISP connector is needed to connect to the programmable circuit Board.
The jumper JP1 controls the voltage at the output VCC ISP connector. It can be 3.3 V or 5 V. If the target programmable device has its own power supply, you need to remove the jumper.
Jumper JP2 is used for updating the firmware of the programmer; this article is not considered.
Jumper JP3 is needed if the clock frequency of the target device below 1.5 MHz.
Two LEDs indicate: G - power is supplied to the programmer, R programmer connected to the target device.
Programmer USBASP
2
Connect the programmer to the USB port of the computer. Most likely, after a short while, the operating system will report that it failed to find a driver for this device.
In this case, download the driver for the programmer from the official website http://www.fischl.de/usbasp/. Unpack the archive and install the driver in a standard way. In device Manager you should see the USBasp programmer. Now the programmer is ready to work. Disconnect it from the computer.
Install the driver for the USBASP programmer
3
Next you need to connect the charge Arduino Pro Mini with the programmer. The scheme shows how to do it.
Wiring diagram for the Arduino Pro Mini to the programmer
4
We use development Board and connecting wires - it will be fast and reliable. Connect the connector of the programmer with insights on the Arduino Pro Mini as described above.
Connection of the programmer with the Arduino Pro Mini
5
Open the Arduino development environment IDE. Select the desired card through the menu: Tools -> Board -> Arduino Pro or Pro Mini (Tools -> Board -> Arduino Pro or Pro Mini).
You must also select the type of microcontroller, which is set using menu Tools -> Processor. I have is the ATmega 168 (5V, 16 MHz). These options are usually written on the housing of the microcontroller.
Select the type of the target microcontroller ATmega
6
Will select the programmer: Tools -> Programmer -> USBasp (or Tools -> Programmer -> USBasp).
We specify the type of USBasp programmer
7
Open the sketch you want to load into memory of the microcontroller. For example, let it be the flashing led on: File -> Examples -> 01. Basics -> Blink.
Connect the programmer connected to Arduino Pro Mini to the computer.
Now, in order to load a sketch to Arduino using the programmer, you can proceed in several ways.
1) Through the menu File -> Upload using programmer;
2) using Ctrl + Shift + U;
3) hold down the Shift key, press the right arrow button, which is normally used to download the sketch in the Arduino memory in a standard way.
All, the program is "flooded" in memory of the microcontroller.
Loaded the sketch into the Arduino using the USBasp programmer