Editing
Arduino Pro Micro
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{infobox dcontroller | name = Pro Micro | manufacturer = Sparkfun (and others) | license = [http://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Share-alike 4.0 International] | port = USB Micro B | uc = ATMega32U4 | mpu = AVR (8-bit) | ucvoltage = 3.3V or 5V | ucclock = 8 MHz or 16 MHz | iopins = 18 | iovoltage = | ram = 2.5 KB | progmem = 32 KB | eeprom = 1 KB | bootloader = Caterina | website = https://www.sparkfun.com/products/12640 }} The '''Pro Micro''' is an Arduino-compatible microcontroller board developed under an open hardware license by Sparkfun. Clones of the Pro Micro are often used as a lower-cost alternative to a [[Teensy|Teensy 2.0]] as a basis for a DIY keyboard controller/converter when a lower number of pins would suffice. ==Description== Like the Teensy 2.0, it sports an AVR ATmega32u4 8-bit microcontroller which has an integrated USB controller. It has a micro-USB type B port (Teensy 2.0: mini-USB), 18 I/O pins (Teensy 2.0: 25 I/O pins) and an integrated voltage regulator for 3V operation. The Pro Micro is sold in a 3.3 V version (8 MHz) and a 5 V version (16 MHz). On the 3.3 V version, shorting a solder bridge (J1) on the chip bypasses the 3.3 V voltage regulator on the board. This would allow 5 V operation and running at 16 MHz clock. At 3.3 V, the ATmega32u4 is otherwise limited to 8 MHz clock. The ProMicro has three LEDs: {| class="wikitable" |- !Colour !Function !ATmega32u4 port |- |red |power on | |- |yellow |USB receiving data |PB0 (active low) |- |green |USB sending data |PD5 (active low) |- |} ==Pinout== {| class="wikitable" |- ! colspan="2" |Arduino !AVR !β !AVR ! colspan="2" |Arduino |- | colspan="3" | !USB port | colspan="3" | |- | colspan="3" | | rowspan="14" |[[File:ProMicroClone.jpg|frameless|center]] | colspan="3" | |- | colspan="3" | | colspan="3" | |- |TX |D1 |PD3 | colspan="3" |RAW (+5V from USB) |- |RX |D0 |PD2 | colspan="3" |GND |- | colspan="3" align="right" |GND | colspan="3" |Reset |- | colspan="3" align="right" |GND | colspan="3" |Vcc (+3V*) |- |SDA |D2 |PD1 |PF4 |D21 |A3 |- |SCL |D3 |PD0 |PF5 |D20 |A2 |- |A6 |D4 |PD4 |PF6 |D19 |A1 |- | |D5 |PC6 |PF7 |D18 |A0 |- |A7 |D6 |PD7 |PB1 |D15 |SCLK |- | |D7 |PE6 |PB3 |D14 |MISO |- |A8 |D8 |PB4 |PB2 |D16 |MOSI |- |A9 |D9 |PB5 |PB6 |D10 |A10 |- |} *Two more pins are accessible by soldering directly to the bottom of the two lower most LEDs - the one above the P in the "Pro" label (beside the number 8), and the o in the "Micro" (beside the 1 of the number 16 in the image). These are Pins PB0 and PD5 of the AVR. The pinout is nearly identical to the ''Arduino Pro Mini'' which has pin 3 as an additional Reset line instead of Ground. ==Programming== Uploading native software to run on the Pro Micro works different than for the Teensy 2.0. There is no reset button on the board, instead two pins have to be shortcut twice to bring the device in bootloader mode for 8 seconds. While the Teensy comes with an graphical uploader tool, the Pro Micro is programmed using a command line tool called avrdude. Sparkfun's and scottc's tutorials explain this further (see links). ==Clones== * See the [[:Category:Pro Micro|Pro Micro]] category for controller boards that are pin-compatible. * See the [[:Category:ATmega32U4|ATmega32U4]] category for controller boards with the same microcontroller (but different pinout). Beware that there are clones that differ from the original in incompatible ways: ;Longer circuit board :Pin-compatible alternatives for the keyboard community may be longer for extra functionality, such as fitting a USB-C port (which is larger), more pins, buzzer (for "click") and/or circuitry for a Bluetooth transceiver. They will not fit all keyboard PCBs or cases. ;Wider circuit board :Wider, with the rows of pins one or two positions farther apart.<ref name="40pcclones">40 Percent Clubβ[http://www.40percent.club/2018/08/another-black-pro-micro-thats-not-right.html Another black Pro Micro that's not the right size.]. Dated 2018-08-08. Retrieved 2019-09-03</ref> These will not fit a (keyboard) PCB made for the proper hole spacing. ;Shorts VBUS to Vcc :Some 5V clones have no 5V voltage regulator and diode or connect the regulator only to the RAW pin. This can be a problem for some [[Ergonomic keyboard#Split|split]] keyboards with a Pro Micro in each half of which only one is connected to the host: voltage on the VBUS input is usually used to determine which side should be master and which should be slave. ;8 MHz crystal :Both 5V and 3.3V Sparkfun Pro Micros have a 16MHz clock crystal. The max clock for 3.3V is 8 MHz, and software intended to run on Pro Micros at 3.3V could set the prescaler to halve the input frequency β and then instead run at 4 MHz. ;Wrong pinout :Pro Micro clones with USB-C have been spotted where the PB1 and PB3 pins have been swapped.<ref name="tztclonereddit">Reddit /r/MechanicalKeyboards: [https://www.reddit.com/r/MechanicalKeyboards/comments/qi1k2f/beware_of_the_usbc_pro_micro_clones/ BEWARE of the USB-C Pro Micro Clones]. Dated 2021-10-28. Retrieved 2021-11-01</ref> ==Developer information== *Deskthority forum tutorial: [https://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html How to use a Pro Micro as a cheap controller/converter] by scottc *[https://www.sparkfun.com/products/12587 SparkFun's ProMicro Product Page], with links to schematic, EAGLE files, datasheets, drivers and an application tutorial ==References== <references/> [[Category:Controller boards]] [[Category:Pro Micro]] [[Category:ATmega32U4]]
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Infobox
(
edit
)
Template:Infobox/row
(
edit
)
Template:Infobox dcontroller
(
edit
)
Template:Theme colour
(
edit
)
Template:URL
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information