A small Raspberry Pi Pico module with a proprietary Raspberry RP2040 microcontroller made in the UK. RP2040 is a dual-core ARM Cortex M0 + chip clocked at 133 MHz. The module has 264 KB of SRAM and 2 MB of Flash memory. The system is equipped with 26 GPIO pins that work with a voltage of 3.3 V and a temperature sensor. The Raspberry Pi Pico is programmed in C / C ++ and MicroPython via the microUSB connector.
Pins of the Raspberry Pi Pico module
- The Raspberry Pi Pico module is equipped with 26 GPIO pins, which include: 2x SPI, 2x I2C, 2x UART, 3x ADC 12-bit, 16x PWM. Additional 8 IO pins (PIO) are designed to support non-standard peripherals.
Powering the Raspberry Pi Pico
- The microUSB connector is used for power supply and communication of the Raspberry Pi Pico board with the computer . For the correct operation of the module, a power supply of 5 V is required . The board can also be powered from the VSYS pin with a voltage from 1.8 V to 5.5 V , using, for example, a 3.7 V Li-Pol battery or 3x AA batteries.
Programming the Raspberry Pi Pico
- The Raspberry Pi Pico is programmed in C / C ++ or MicroPython . In order to upload the program to the board, press and hold the BOOTSEL button and connect the Raspberry Pi Pico to the computer with a microUSB cable. The module will be detected as a USB mass storage device called RPI-RP2, the program file should be dragged and dropped on the RPI-RP2 volume. The manufacturer provides an SDK repository for the C / C ++ and MicroPython programming languages, which can be found in the useful links below.
Getting started with MicroPython
- The Raspberry Pi Pico can be programmed by connecting it to a computer via a USB cable, dragging and dropping the file. A downloadable UF2 file has been prepared to help you get started with MicroPython.
- Download the MicroPython UF2.
- Press and hold the BOOTSEL button and plug the board into the USB port of your Raspberry Pi or computer.
- Release BOOTSEL when Pico is connected to your computer.
- The Raspberry Pi Pico will be mounted as a mass storage device with volume RPI-RP2.
- Drag and drop the MicroPython UF2 file to the RPI-RP2 volume.
- Pico will restart, MicroPython will now be used.
- You can access REPL and MicroPython via the serial USB port.
Hello World in C / C ++
- The first program written by any programmer is "Hello World", in this case via the Raspberry Pi 4B's USB serial port.
- Download the UF2 file "Hello World".
- Press and hold the BOOTSEL button and connect the Raspberry Pi Pico to the Raspberry Pi's USB port.
- The board will be mounted as a mass storage device with the volume RPI-RP2.
- Drag and drop the UF2 file to the RPI-RP2 volume.
- Pico will restart.
- Open a terminal on the Raspberry Pi 4B and run the commands:
- You should see "Hello World" listed in the terminal window.
Specification:
- System: Raspberry Pi RP2040
- Core: ARM Cortex-M0 + Dual-Core 133 MHz
- SRAM: memory 264 kB
- Flash memory: 2 MB
- Leads: 40-pin / 23 GPIO digital + 3 ADC pins
- Interfaces: 2x UART, 2x I2C, 2x SPI, up to 16 PWM channels
- Supply voltage: 5 V (USB)
- Working voltage of the logical part: 3.3 V
- Power / data connector: microUSB
- Dimensions: 51 x 21 mm