The Arduino Pro Micro is a small, powerful microcontroller board based on the ATmega32U4. It is a compact version of the Arduino Leonardo, offering similar functionalities but in a smaller footprint, making it ideal for projects where space is at a premium. The Pro Micro is widely used in DIY electronics, hobbyist projects, and prototyping due to its versatility and ease of use.
Pin Number | Function | Description |
---|---|---|
1 | TXD/SS | Transmit Data, Slave Select for SPI |
2 | RXD | Receive Data |
3 | SCK | SPI Clock |
4 | MOSI | SPI Master Out Slave In |
5 | MISO | SPI Master In Slave Out |
6 | D2 | General Purpose Digital I/O |
... | ... | ... |
20 | A6/D21 | Analog Input 6 or Digital I/O 21 |
Note: This table is not exhaustive and only shows a selection of pins.
// Blink an LED connected to pin 9
void setup() {
pinMode(9, OUTPUT); // Set pin 9 as an output
}
void loop() {
digitalWrite(9, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(9, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Note: The above code is a simple blink example. When using the Pro Micro, ensure that the correct pin is used in place of pin 9 if necessary.
Q: Can I use the Arduino Pro Micro as a USB device? A: Yes, the ATmega32U4 allows the Pro Micro to emulate a USB device such as a mouse or keyboard.
Q: What is the difference between the RAW and VCC pins? A: The RAW pin is for an unregulated input voltage, which will be regulated on-board to 5V. The VCC pin is for a regulated 5V input.
Q: How do I reset the Pro Micro? A: Briefly connect the RST pin to GND or press the reset button if available.
This documentation provides an overview of the Arduino Pro Micro, its specifications, usage, and troubleshooting tips. For more detailed information, refer to the official Arduino resources and community forums.