The Adafruit Metro M4 Express is a feature-rich development board designed for makers and hobbyists who require a robust platform for building electronic projects. Based on the Microchip ATSAMD51 microcontroller, this board is compatible with a vast array of sensors and actuators, making it ideal for applications ranging from simple LED blinkers to complex robotics.
The Adafruit Metro M4 Express is equipped with a multitude of technical features that provide flexibility and power for various projects.
Pin Number | Function | Description |
---|---|---|
1 | GND | Ground |
2 | VIN | Input voltage to the board |
3-5 | Analog In | Analog input pins |
6-17 | Digital I/O | Digital input/output pins |
18-19 | I2C (SDA, SCL) | I2C data & clock lines |
20-21 | SPI (MISO, MOSI, SCK) | SPI communication lines |
22-23 | UART (RX, TX) | UART communication lines |
24 | 5V | Regulated 5V output |
25 | 3V3 | Regulated 3.3V output |
// Blink an LED connected to pin 13
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Q: Can I power the Metro M4 Express with a battery? A: Yes, you can use a battery within the input voltage limits (6-12V).
Q: Is the Metro M4 Express compatible with all Arduino shields? A: While many shields will work, some may not be compatible due to differences in voltage levels or pin assignments. Always check shield specifications.
Q: How do I use the onboard DAC?
A: The DAC can be used to output analog voltages. Use the analogWrite()
function in your code to control the DAC pin.
For further assistance, Adafruit provides extensive documentation and a supportive community forum to help you with your Metro M4 Express projects.