The Arduino Micro (Rev3) is a compact microcontroller board based on the ATmega32U4. It is a member of the Arduino family and is notable for its small size, making it ideal for embedding into projects where space is at a premium. The board comes with built-in USB communication, eliminating the need for a secondary processor. This feature allows the Arduino Micro to appear as a mouse or keyboard, in addition to a virtual (CDC) serial / COM port. It is commonly used in prototyping, DIY electronics, educational projects, and interactive artworks.
Pin Number | Function | Description |
---|---|---|
1-7 | Digital I/O | Digital pins capable of input/output functions. |
8-10 | PWM | Support for Pulse Width Modulation. |
14-20 | Analog Input | Analog pins which can read varying voltages. |
21 | RESET | Used to reset the microcontroller. |
22-23 | I2C | SDA and SCL pins for I2C communication. |
24 | RX/TX LEDs | Indicators for serial communication. |
25 | USB Connection | Micro USB port for power and data. |
26 | ICSP Header | In-Circuit Serial Programming header. |
27 | 3.3V | 3.3V power output (limited current). |
28 | 5V | Regulated 5V power supply pin. |
29 | GND | Ground pins. |
30 | Vin | Input voltage to the Arduino board. |
Powering the Board:
Programming the Board:
Connecting I/O Devices:
Board not recognized by the computer:
Sketch not uploading:
Unexpected behavior in circuits:
Here's a simple example of blinking the onboard LED:
// Pin 13 has an LED connected on most Arduino boards.
int led = 13;
// The setup routine runs once when you press reset:
void setup() {
// Initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// The loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // Turn the LED on (HIGH is the voltage level)
delay(1000); // Wait for a second
digitalWrite(led, LOW); // Turn the LED off by making the voltage LOW
delay(1000); // Wait for a second
}
Remember to wrap code comments as needed to limit line length to 80 characters. This helps maintain readability in various editors and documentation formats.