The Adafruit Metro M4 AirLift Lite is a feature-rich microcontroller board designed for the modern maker, hobbyist, or engineer looking to delve into wireless Internet of Things (IoT) projects. At the heart of the board is the ATSAMD51 microcontroller, an ARM Cortex-M4 processor with floating-point support. The board's standout feature is its integrated Wi-Fi module, the ESP32, which provides Wi-Fi connectivity and enables users to easily connect their projects to the internet.
Pin Number | Function | Description |
---|---|---|
1 | VIN | Input voltage to the board |
2-13 | Digital I/O | Digital input/output pins |
14-19 | Analog Inputs | Analog input pins |
20 | DAC | Digital-to-Analog Converter output |
21-22 | I2C (SDA, SCL) | I2C data and clock lines |
23-25 | SPI (MISO, MOSI, SCK) | SPI communication lines |
26 | Reset | Reset pin |
27-28 | UART (RX, TX) | UART communication lines |
29 | 3V3 | 3.3V power output |
30 | GND | Ground |
Q: Can I power the board using a battery?
Q: How do I connect to a secured Wi-Fi network?
Q: What libraries do I need to use the Wi-Fi functionality?
#include <WiFi.h>
#include <SPI.h>
const char* ssid = "yourSSID"; // Replace with your Wi-Fi network name
const char* password = "yourPASSWORD"; // Replace with your Wi-Fi password
void setup() {
Serial.begin(115200);
// Attempt to connect to Wi-Fi network:
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("Wi-Fi connected.");
}
void loop() {
// Put your main code here, to run repeatedly:
}
Remember to replace yourSSID
and yourPASSWORD
with your actual Wi-Fi credentials. This example demonstrates how to connect the Adafruit Metro M4 AirLift Lite to a Wi-Fi network. The serial monitor will display the connection status.