Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit Metro RP2040: Examples, Pinouts, and Specs

Image of Adafruit Metro RP2040
Cirkit Designer LogoDesign with Adafruit Metro RP2040 in Cirkit Designer

Introduction

The Adafruit Metro RP2040 (Manufacturer Part ID: 5786) is a versatile microcontroller board powered by the Raspberry Pi RP2040 chip. It is designed for hobbyists, educators, and professionals who need a powerful yet easy-to-use development platform. The board features USB-C connectivity, a wide array of GPIO pins, and compatibility with the Arduino IDE, CircuitPython, and MicroPython, making it an excellent choice for a variety of projects.

Explore Projects Built with Adafruit Metro RP2040

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Smart Sensor Hub with Adafruit QT Py RP2040
Image of wearable final: A project utilizing Adafruit Metro RP2040 in a practical application
This circuit features an Adafruit QT Py RP2040 microcontroller interfaced with an APDS9960 proximity sensor, an MPU6050 accelerometer and gyroscope, and an OLED display via I2C communication. It also includes a buzzer controlled by the microcontroller and is powered by a 3.7V LiPo battery with a toggle switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040
Image of lab: A project utilizing Adafruit Metro RP2040 in a practical application
This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Sensor Hub with Adafruit QT Py RP2040 and OLED Display
Image of 512: A project utilizing Adafruit Metro RP2040 in a practical application
This circuit features an Adafruit QT Py RP2040 microcontroller interfacing with an MPU-6050 accelerometer, an Adafruit APDS-9960 sensor, and a 0.96" OLED display via I2C communication. It is powered by a 3.7V LiPo battery and includes a green LED with a current-limiting resistor connected to an analog pin of the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Adafruit QT Py RP2040 Development Board for Custom Projects
Image of perfboard: A project utilizing Adafruit Metro RP2040 in a practical application
The circuit consists of a single Adafruit QT Py RP2040 microcontroller with no external connections or additional components. It appears to be a standalone setup, possibly for initial testing or programming purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit Metro RP2040

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of wearable final: A project utilizing Adafruit Metro RP2040 in a practical application
Battery-Powered Smart Sensor Hub with Adafruit QT Py RP2040
This circuit features an Adafruit QT Py RP2040 microcontroller interfaced with an APDS9960 proximity sensor, an MPU6050 accelerometer and gyroscope, and an OLED display via I2C communication. It also includes a buzzer controlled by the microcontroller and is powered by a 3.7V LiPo battery with a toggle switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of lab: A project utilizing Adafruit Metro RP2040 in a practical application
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040
This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 512: A project utilizing Adafruit Metro RP2040 in a practical application
Battery-Powered Sensor Hub with Adafruit QT Py RP2040 and OLED Display
This circuit features an Adafruit QT Py RP2040 microcontroller interfacing with an MPU-6050 accelerometer, an Adafruit APDS-9960 sensor, and a 0.96" OLED display via I2C communication. It is powered by a 3.7V LiPo battery and includes a green LED with a current-limiting resistor connected to an analog pin of the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of perfboard: A project utilizing Adafruit Metro RP2040 in a practical application
Adafruit QT Py RP2040 Development Board for Custom Projects
The circuit consists of a single Adafruit QT Py RP2040 microcontroller with no external connections or additional components. It appears to be a standalone setup, possibly for initial testing or programming purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Robotics and automation projects
  • IoT (Internet of Things) devices
  • Prototyping and hardware development
  • Educational tools for learning programming and electronics
  • Wearable technology and interactive art installations

Technical Specifications

The Adafruit Metro RP2040 is packed with features that make it a robust and flexible microcontroller board. Below are its key technical details:

Key Technical Details

  • Microcontroller: Raspberry Pi RP2040 (Dual-core ARM Cortex-M0+ @ 133 MHz)
  • Flash Memory: 16 MB QSPI Flash
  • RAM: 264 KB SRAM
  • USB Connectivity: USB-C for programming and power
  • GPIO Pins: 21 (including analog inputs, I2C, SPI, UART)
  • Power Supply: 5V via USB-C or external power supply
  • Operating Voltage: 3.3V logic level
  • Dimensions: 71.1 mm x 53.3 mm
  • Weight: 22 grams

Pin Configuration and Descriptions

The Adafruit Metro RP2040 features a standard pinout for easy integration into projects. Below is the pin configuration:

Pin Name Description
1 3V3 3.3V power output
2 GND Ground
3 A0 (GP26) Analog input or GPIO
4 A1 (GP27) Analog input or GPIO
5 A2 (GP28) Analog input or GPIO
6 SDA (GP0) I2C data line
7 SCL (GP1) I2C clock line
8 TX (GP4) UART transmit
9 RX (GP5) UART receive
10 SCK (GP18) SPI clock line
11 MOSI (GP19) SPI master out, slave in
12 MISO (GP16) SPI master in, slave out
13 D13 (GP25) Built-in LED
14-21 GPIO Pins General-purpose input/output pins

Usage Instructions

The Adafruit Metro RP2040 is designed to be user-friendly and compatible with multiple programming environments. Below are the steps to get started and important considerations for using the board.

How to Use the Component in a Circuit

  1. Power the Board: Connect the board to your computer or a power source using a USB-C cable.
  2. Install Software:
    • For Arduino IDE: Install the RP2040 board package via the Arduino Boards Manager.
    • For CircuitPython: Download and flash the CircuitPython firmware from Adafruit's website.
  3. Connect Peripherals: Use jumper wires to connect sensors, actuators, or other components to the GPIO pins.
  4. Write Code: Use your preferred IDE (Arduino IDE, Thonny, or Mu Editor) to write and upload code to the board.

Important Considerations and Best Practices

  • Voltage Levels: The GPIO pins operate at 3.3V logic. Avoid connecting 5V signals directly to the pins to prevent damage.
  • Power Supply: Ensure the board is powered via USB-C or an external 5V power source.
  • Pin Usage: Refer to the pin configuration table to avoid conflicts when using multiple peripherals.
  • Firmware Updates: Keep the firmware updated to access the latest features and bug fixes.

Example Code for Arduino IDE

Below is an example code snippet to blink the built-in LED on pin D13:

// Blink the built-in LED on the Adafruit Metro RP2040
// The LED is connected to GPIO pin 25 (D13)

void setup() {
  pinMode(25, OUTPUT); // Set GPIO 25 (D13) as an output
}

void loop() {
  digitalWrite(25, HIGH); // Turn the LED on
  delay(1000);            // Wait for 1 second
  digitalWrite(25, LOW);  // Turn the LED off
  delay(1000);            // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Board Not Recognized by Computer:
    • Ensure the USB-C cable is data-capable (not just a charging cable).
    • Check that the board is in bootloader mode by holding the BOOTSEL button while connecting it to your computer.
  2. Code Upload Fails:
    • Verify that the correct board and port are selected in the Arduino IDE.
    • Ensure no other program is accessing the board's serial port.
  3. Peripherals Not Working:
    • Double-check wiring and connections.
    • Confirm that the correct GPIO pins are being used in the code.

Solutions and Tips for Troubleshooting

  • Reset the Board: Press the RESET button to restart the board and clear any temporary issues.
  • Check Power Supply: Ensure the board is receiving sufficient power (5V via USB-C or external source).
  • Consult Documentation: Refer to Adafruit's official guides and forums for additional support.

By following this documentation, users can effectively utilize the Adafruit Metro RP2040 for a wide range of projects and applications.