Raspberry Pi Pico is an official Raspberry Pi designed low-cost, high-performance microcontroller development board with a flexible digital interface. Hardware, using Raspberry Pi official self-developed RP2040 microcontroller chip, equipped with ARM Cortex M0 + dual-core processor, up to 133MHz running frequency, built-in 264KB of SRAM and 2MB of memory, and up to 26 multi-functional GPIOs onboard pins on board. The software can be developed with the C/C++ SDK provided by Raspberry Pi or with MicroPython, and there is a comprehensive development material tutorial to facilitate quick start development and embedding into the product. This is a Raspberry Pi Pico tutorial.
Adopts the RP2040 microcontroller chip designed by Raspberry Pi
- Dual-core ARM Cortex M0+ processor running at 133MHz flexible clock
- Built-in 264KB SRAM and 2MB on-chip Flash
- Stamped hole design for direct solder integration into user-designed backplanes
- 1 host and device support
- Supports low power sleep and hibernate modes
- Drag-and-drop program download via USB recognition for mass storage
- Up to 26 multi-functional GPIO pins
- 2 SPI, 2 I2C, 2 UART, 3 12-bit ADCs, 16 controllable PWM channels
- Precise on-chip clock and timer
- Temperature sensors
- On-chip accelerated floating-point library
- 8 programmable I/O (PIO) state machines for custom peripheral support
- Download the test firmware to your computer and unzip it.
- There are two uf2 files, one of which is the pico_micropython_20210121.uf2 file is MicroPython firmware
- Press and hold the button on the Pico board, connect the pico to the USB port of the computer via the Micro USB cable, and then release the button.
- Once connected, the computer will automatically recognize a removable disk (RPI-RP2)
- Copy and drag the firmware file downloaded earlier to the RPi-RP2 mobile disk.
- After the copy is complete, the Raspberry Pi Pico will automatically reboot. After the automatic reboot, the pico will be recognized as a virtual serial port.
Note ： If the mobile disk is not automatically recognized after accessing the pico.
- check whether the BOOTSEL button is not pressed or released in the middle.
- The Micro USB cable used must be a data cable, only the power supply USB cable can not be used.
To facilitate the development of the Pico board using MicroPython on your computer, it is recommended to download the Thonny IDE.
- Download the Thonny IDE and follow the steps to install it.
- Thonny IDE download link (Windows version).
- Once the installation is complete, configure the language and motherboard environment for the first time. Since we are using Pico, take care to select the Raspberry Pi Option.
- Plug the Pico into your computer (without pressing a button), if you have not flashed MicroPython before, follow the flash firmware procedure.
- Select Tools → Options… → Interpreter.
- Select Raspberry Pi Pico in the Interpreter option (be careful to download the latest version of Thonny, otherwise, there is no such option).
- After selecting the port to access the Pico, the COM port recognized by the computer is good.
- Then confirm.
- After confirming, you can see that there will be more than one Pico information in the command-line interface, now you can enter the MicroPython program here to control the pico.