You are on page 1of 11

2.5.

2021 Arduino PRO MINI – How to upload code | alselectro

alselectro

All about Microcontrollers,Tips on Pc,Android phone,Electronics

Arduino PRO MINI – How to upload code

Filed under: ARDUINO — 5 Comments


May 14, 2017
Arduino ProMini , as the name indicates , is a miniature version of UNO .It runs on 16 MHz crystal
,ATMEGA328 ,but lacks USB connectivity. There are 5V (16MHz) & 3.3V (8MHz) versions. In this demo I
use the 5v version.

There is a voltage regulator on board so it can accept voltage up to 12VDC. If you’re supplying
unregulated power to the board, be sure to connect to the RAW pin and not VCC.

Vcc accepts only 5v.

The latest version of this board breaks out the ADC6 and ADC7 pins ,also adds footprints for optional I2C
pull-up resistors.

To upload code on to pro mini , a USB-TTL adapter is required.There are many types of USB adapters
available.The most reliable one that works up to Windows 10 is the one built on CP2102 IC .

CP2102 adapters are available in 2 variants .One with 6 pins that include the DTR , Data Terminal Ready ,
which handles the RESET required by the promini board.

The other board is commonly available one with 5 pins.Here RESET must be done manually on promini
while code is uploaded.
https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 1/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

First let us upload code using the 6 pin version .

The connections are

PROMINI USB-TTL

DTR —–> DTR

TxO —–> Rx

RxI ——> Tx

Vcc ——> 5v

GND ——> GND

In some Promini boards the DTR pin is printed as GRN.

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 2/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Plug in the USB board to PC & open the Device Manager . If the driver is installed previously , a COM
port will be allo ed.Otherwise , download the silicon labs cp2102 driver from here & install.

Open the Arduino IDE , feed in the COM port allo ed.

Select Board as Arduino Pro or Pro Mini , Programmer as USBasp.

In newer versions of IDE there is option to select type of ProMini board.Under Processor select ATmega328
5v,16MHz

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 3/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

From Examples open the BL;INK sketch

Click on UPLOAD bu on.

The DTR pin of USB board takes care of the RESET & your code will be uploaded to PROMINI without
any manual reset.

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 4/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Uploading code using a 5 pin version , needs a manual RESET on PROMINI.

The connections are

PROMINI USB-TTL

TxO —–> RxD

RxI ——> TxD

Vcc ——> 5v

GND ——> GND

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 5/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Plug in the USB to PC & note the COM Port allo ed.

Open Arduino IDE .Feed in the COM port , select board as Arduino Pro or Promini & Programmer as
USBASP

From Examples , open the BLINK Sketch

Click on UPLOAD bu on.

Watch out for the message at the bo om of IDE.

“ Compiling Sketch “ message appears first.

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 6/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Then it changes to “Uploading”

As soon as you see “Uploading” message , gently press the RESET Key on Promini.

This should be done instantly , as soon as you see “UPLOADING” message.

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 7/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

If the KEY Press is at the right time , your code will be uploaded successfully.

You can also use your UNO board to upload code on Promini.

To use the UNO board , you need to by pass the bootloader .For this upload an empty code to UNO or
connect the RST pin to GND

Connecting RST pin to GND bypasses the bootloader & only the serial converter IC located near the USB
socket is used as USB-TTL.

The connection here is STRAIGHT & not reverse

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 8/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Tx of Arduino UNO goes to Tx of Promini

Rx of UNO goes to Rx of Promini

Gnd to Gnd

Connect the USB cable to PC & open the IDE.

Select the port where UNO is connected.

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 9/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Select the board as Arduino Pro or ProMini

Open the BLINK sketch & UPLOAD.

Watch out the message at the bo om of IDE.

Initially “Compiling Sketch “ appears.

Then the message changes to UPLOADING…

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 10/13
2.5.2021 Arduino PRO MINI – How to upload code | alselectro

Once you see UPLOADING… message , press the RESET key on PROMINI.

The code is now Uploaded successfully.

Support VIDEO :

https://alselectro.wordpress.com/2017/05/14/arduino-pro-mini-how-to-upload-code/ 11/13

You might also like