Waveshare RP2040-Zero

Manual del usuario de la placa del microcontrolador Waveshare RP2040-Zero

Model: RP2040-Zero | Brand: Waveshare

1. Producto terminadoview

The Waveshare RP2040-Zero is a compact, high-performance microcontroller unit (MCU) board designed around the Raspberry Pi RP2040 chip. This board is ideal for a wide range of embedded applications, offering a powerful dual-core Arm Cortex M0+ processor with flexible clock speeds up to 133 MHz. It integrates 264KB of SRAM and 2MB of on-board Flash memory, providing ample resources for complex projects. Its castellated module design allows for direct soldering onto carrier boards, making it suitable for SMD applications. The inclusion of a modern USB-C connector enhances ease of use and connectivity.

Waveshare RP2040-Zero Microcontroller Board

Figura 1: Frente view of the Waveshare RP2040-Zero Microcontroller Board.

2. Características principales

  • RP2040 Microcontroller Chip: Designed by Raspberry Pi, featuring a dual-core Arm Cortex M0+ processor.
  • Flexible Clock Speed: Operates up to 133 MHz.
  • Memoria: Equipped with 264KB of SRAM and 2MB of on-board Flash memory.
  • Conector USB-C: Modern and reversible connector for power and data.
  • Castellated Module: Enables direct soldering to custom carrier boards for integrated designs.
  • Compatibilidad con USB 1.1: Includes both device and host capabilities.
  • Modos de energía: Supports low-power sleep and dormant modes for energy efficiency.
  • Programación: Features drag-and-drop programming via mass storage over USB.
  • Pines GPIO: 29 pines GPIO multifunción (20 mediante distribución de pines de borde y otros mediante puntos de soldadura).
  • Periféricos: 2 × SPI, 2 × I2C, 2 × UART, 4 × ADC de 12 bits, 16 × canales PWM controlables.
  • Componentes internos: Accurate clock and timer on-chip, temperature sensor, accelerated floating-point libraries.
  • PIO State Machines: 8 × Programmable I/O (PIO) state machines for custom peripheral support.

3. Configuración

3.1 conexión física

To begin using your Waveshare RP2040-Zero, connect it to your computer using a standard USB-C cable. The board will typically appear as a mass storage device, allowing for easy firmware upload. Ensure the cable is securely connected to both the board's USB-C port and your computer's USB port.

RP2040-Zero with USB-C connection

Figure 2: The RP2040-Zero board, showing the USB-C port for connection.

3.2 Diagrama de distribución de pines

Understanding the pinout is crucial for connecting external components and utilizing the board's full capabilities. The RP2040-Zero provides various GPIO pins, power pins (5V, 3V3, GND), and dedicated peripheral pins (SPI, I2C, UART, ADC, PWM). Refer to the diagram below for a detailed layout.

RP2040-Zero Pinout Diagram

Figure 3: Detailed pinout diagram for the Waveshare RP2040-Zero, indicating multi-function GPIOs and power connections.

3.3 Entorno de programación

The RP2040-Zero supports multiple programming environments, offering flexibility for developers:

  • SDK de Pico C/C++: The official C SDK from Raspberry Pi, suitable for command-line development or integration with IDEs like Visual Studio Code and Eclipse.
  • MicroPython: A full implementation of the Python 3 programming language optimized for embedded hardware like the Raspberry Pi Pico.
  • IDE de Arduino: Compatibility with the Arduino IDE allows for familiar development using Arduino sketches.
Pico C/C++ SDK and MicroPython Support

Figure 4: Illustration of C/C++ SDK and MicroPython support for the RP2040-Zero.

For a visual introduction to the RP2040-Tiny (a similar board from Waveshare), including its features and programming capabilities, please watch the video below:

Vídeo 1: Terminadoview of the RP2040 Tiny Kit, demonstrating its features and programming support.

4. Operación

4.1 Boot and Reset Buttons

The RP2040-Zero features two tactile buttons: BOOT and RESET. These buttons are essential for controlling the board's state and uploading new firmware.

  • Botón de arranque: Press and hold this button while connecting the USB-C cable to enter USB mass storage mode, which allows you to drag-and-drop firmware files onto the board.
  • Botón de reinicio: Press this button to restart the microcontroller. This is useful after uploading new code or if the board becomes unresponsive.
Componentes de la placa RP2040-Zero

Figure 5: Labeled components of the RP2040-Zero board, highlighting the BOOT and RESET buttons.

4.2 Drag-and-Drop Programming

One of the most user-friendly features of the RP2040-Zero is its drag-and-drop programming capability. When the board is in bootloader mode (by holding the BOOT button during connection), it appears as a removable drive on your computer. You can then simply drag and drop a compiled firmware file (.uf2 format) onto this drive. The board will automatically flash the new firmware and reboot.

5. Mantenimiento

To ensure the longevity and optimal performance of your Waveshare RP2040-Zero, follow these general maintenance guidelines:

  • Tratar con cuidado: Evite dejar caer la tabla o someterla a un estrés físico excesivo.
  • Protección estática: Always handle the board in an anti-static environment or use appropriate grounding measures to prevent electrostatic discharge (ESD) damage.
  • Mantener seco: Protect the board from moisture and liquids, which can cause short circuits and corrosion.
  • Limpieza: Keep the board free from dust and debris. Use a soft, dry brush or compressed air for cleaning if necessary.
  • Almacenamiento adecuado: Cuando no esté en uso, guarde la placa en su embalaje original o en una bolsa antiestática en un lugar fresco y seco.

6. Solución de problemas

If you encounter issues with your RP2040-Zero, consider the following troubleshooting steps:

  • Placa no reconocida por la computadora:
    • Ensure the USB-C cable is fully inserted and functional. Try a different cable or USB port.
    • Verify the board is in bootloader mode (hold BOOT button while connecting USB).
    • Check if necessary drivers are installed for your operating system (though often not required for RP2040).
  • Error en la carga del firmware:
    • Confirmar el firmware file is in the correct .uf2 format.
    • Ensure the board is in bootloader mode before dragging the file.
    • Check for sufficient free space on the board's flash memory (if applicable for your specific firmware).
  • Code Not Running as Expected:
    • Double-check your code for syntax errors or logical flaws.
    • Verify that all external components are correctly wired according to the pinout diagram.
    • Use serial debugging to output messages and identify where the code might be failing.
  • Problemas de energía:
    • Ensure your USB power source provides adequate current.
    • Inspect the board for any visible damage or short circuits.

7. Especificaciones técnicas

CaracterísticaEspecificación
ProcesadorArm Cortex M0+ de doble núcleo
Velocidad de la CPUHasta 133 MHz
Memoria RAM264 KB
Memoria Flash2 MB
Conector USBUSB-C
Estándar USBUSB 1.1 (Device and Host support)
Pines GPIO29 (20 via edge pinout)
Canales ADC4 × 12-bit
Canales PWM16 × controllable
Máquinas de estados PIO8
Compatibilidad con sistemas operativosFreeRTOS (and others via SDKs)
Dimensiones23 mm x 18 mm (aprox. 0.90 x 0.70 pulgadas)
Peso del artículo0.704 onzas

8. Soporte y recursos

For further assistance, detailed documentation, and community support, please refer to the official Waveshare resources:

  • Waveshare Wiki/Documentation: Visita la página oficial de Waveshare website for comprehensive guides, tutorials, and technical specifications specific to the RP2040-Zero.
  • Raspberry Pi Pico Documentation: As the RP2040-Zero is based on the RP2040 chip, much of the official Raspberry Pi Pico documentation and SDK information is directly applicable.
  • Foros de la comunidad: Engage with the broader Raspberry Pi and embedded systems communities for project ideas, troubleshooting tips, and shared knowledge.

Documentos relacionados - RP2040-Cero

Preview Módulo EPD Waveshare Pico e-Paper de 2.13 pulgadas para Raspberry Pi Pico: Guía de desarrollo y API
Guía de desarrollo detallada para el módulo EPD Waveshare Pico e-Paper de 2.13 pulgadas con Raspberry Pi Pico. Incluye resolución de 250x122, interfaz SPI, código de demostración en C/C++ y MicroPython, y documentación completa de la API.
Preview Pico-Relay-B: Guía del usuario del módulo de relé de 8 canales
Guía del usuario del Waveshare Pico-Relay-B, un módulo de relé industrial de 8 canales para Raspberry Pi Pico. Conozca sus características, especificaciones, configuración y programación con instrucciones detalladas y ejemplos.ampLes.
Preview Módulo de pantalla de tinta electrónica de papel electrónico de 2.9 pulgadas para Raspberry Pi Pico Manual del usuario
Este manual de usuario proporciona detalles sobre el módulo de pantalla E-Paper E-Ink de 2.9 pulgadas para Raspberry Pi Pico. Abarca las ventajas de la tecnología E-Ink.tages, compatibilidad con Raspberry Pi Pico, aplicación exampy definiciones de pines. El módulo cuenta con una resolución de 296x128, pantalla en blanco y negro e interfaz SPI.
Preview Manual del usuario del módulo Bluetooth de modo dual Raspberry Pi Pico (Pico-BLE)
Manual de usuario del Waveshare Pico-BLE, un módulo Bluetooth 5.1 de modo dual diseñado para Raspberry Pi Pico, compatible con los protocolos SPP y BLE. Incluye compatibilidad con conectores y antena integrada.
Preview Manual del usuario del módulo de relé industrial Waveshare de 8 canales para Raspberry Pi Pico
Manual de usuario del módulo de relé industrial Waveshare de 8 canales para Raspberry Pi Pico (Pico-Relay-B). Detalla características, compatibilidad, carcasa y configuración de pines para aplicaciones de control industrial.
Preview Controlador servo Waveshare Pico: control de 16 canales para Raspberry Pi Pico
Descubra el controlador de servos Waveshare Pico, un módulo de 16 canales y 16 bits de resolución diseñado para ampliar las capacidades de la Raspberry Pi Pico. Esta guía detalla sus características, especificaciones y configuración para controlar múltiples servos con precisión.