The Adafruit Metro Mini is a compact, breadboard-friendly microcontroller board based on the ATmega328PB MCU. It is designed to be compatible with the Arduino IDE, allowing users to easily write and upload code to the board. With its small size and extensive I/O capabilities, the Metro Mini is ideal for projects that require a powerful yet space-efficient microcontroller. Common applications include wearable electronics, prototyping, educational purposes, and DIY projects.
Pin Number | Function | Description |
---|---|---|
1 | RESET | Used to reset the microcontroller |
2-7 | Digital I/O | Digital pins, PWM available on pins 3, 5, 6 |
8-13 | Digital I/O | Digital pins, PWM available on pins 9, 10, 11 |
A0-A5 | Analog Input | Analog input pins |
A4, A5 | I2C | SDA and SCL for I2C communication |
A6, A7 | Analog Input | Additional analog input pins (not on headers) |
14 (TX) | Serial TX | Transmit pin for serial communication |
15 (RX) | Serial RX | Receive pin for serial communication |
VIN | Voltage Input | Input voltage to the board |
5V | Regulated 5V | Output to supply 5V to the circuit |
3V3 | Regulated 3.3V | Output to supply 3.3V to the circuit |
GND | Ground | Common ground for the circuit |
To use the Adafruit Metro Mini in a circuit:
Here is a simple example of blinking the onboard LED using the Arduino IDE:
// 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 select "Adafruit Metro Mini" as the board in the Arduino IDE before uploading the code. If the Metro Mini is not listed, you may need to install the Adafruit board definitions via the Boards Manager.
For more advanced usage and additional examples, refer to the Adafruit Metro Mini guide and the Arduino language reference.