I had a little trouble first setting up the Arduino compatible Pro Micro board in Ubuntu, but with that little hiccup out of the way, it’s been a very useful board to have. The small size and around £5 price for clones on ebay means it’s cheap and small enough to leave in a completed project. Having the ATMega 32U4 chip on board (the same as the Leonardo) means keyboard and mouse emulation too, which can be a very useful extra over a basic Uno board.
While I do really like the board, I do seem to have a tendency to “brick” them with unusual frequency. Because there are two possible board frequency and voltages, both of which look almost identical, I’ve often uploaded a sketch that’s compiled for the wrong voltage and processor frequency and then it gets sulky.
Once you’ve done this, (and there’s no warning from the IDE when you click upload, because the chip identifier is the same for both boards), you’ll suddenly find the serial port disappears from the list, and you can’t upload anything to correct it.
If you’re on linux and you run dmesg | tail
to see what’s going on, you’ll likely see something like:
The procedure to correct it is very simple though; resetting the board twice in quick succession will get the board to reboot into it’s bootloader mode, and it will appear as a device that you can then flash to (this is instead of the normal 0.75s wait before launching the main program on reset/power on). You’ll have to be on the ball for pressing upload though, it will only stay in the bootloader mode for 8 seconds.
As there’s no reset button on board, you’ll have to use a jumper wire from GND
to the RST
pin next to it. If it’s in a breadboard, that’s easy enough, but if there’s no convenient ground connection, bridgin the surround of the usb socket to the RST
will work too.
Identify the board voltage
On the board there should be an identifier on the bottom of the circuit board that gives the voltage and frequency of the board you have, but with some of the cheaper versions, I’ve seen the identifying mark omitted. meArm.io has a good guide to identifying the voltage from the crystal:
- 5V boards will have a 16MHz crystal,
- 3.3V boards will have an 8MHz crystal,
and in each case, the frequency is marked on the crystal’s case as either 16.000
or 8.000
respectively.