0%

Raspberry Pi Pico RP2040

Raspberry Pi Pico is a MCU, which adopts Raspberry Pi's chip RP2040.

1. Introduction

1.1 lsusb

1
2
3
......
Bus 011 Device 021: ID 2e8a:000a Raspberry Pi Pico
......

1.2 Spec

1.3 Github Source Code

2. Flash the Firmware

2.1 Micropython

2.1.1 How to?

The official way to flash a Raspberry Pi Pico is just to drag-and-drop the Micropython UF2 file onto it. Please follow:

2.1.2 Demonstration

By connecting from my Ubuntu desktop using command

1
➜  ~ minicom -b 115200 -o -D /dev/ttyACM0

we can easily connect to Raspberry Pi Pico:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Welcome to minicom 2.8

OPTIONS: I18n
Port /dev/ttyACM0, 02:38:32

Press CTRL-A Z for help on special keys


>>> import os
>>> os.uname()
(sysname='rp2', nodename='rp2', release='1.21.0', version='v1.21.0 on 2023-10-06 (GNU 13.2.0 MinSizeRel)', machine='Raspberry Pi Pico with RP2040')
>>> import sys
>>> sys.implementation
(name='micropython', version=(1, 21, 0), _machine='Raspberry Pi Pico with RP2040', _mpy=4358)
>>>

2.2 Arduino

2.2.1 Using Arduino IDE

Since Raspberry Pi Pico is an MCU, it is of course able to be connected using the popular Arduino IDE.

I actually strictly follow this blog Programming Raspberry Pi Pico with Arduino IDE.

2.2.2 Flash with BOOTSEL Pressed

In my test, no matter MicroPython Download RPI_PICO is dragged-and-dropped, or a customized program is uploaded via Arduino IDE as in the following picture:

Arduino IDE Raspberry Pi Pico

I ALWAYS hold the BOOTSEL button.

3. More to Talk

3.1 LED Example Demo

3.2 Please Try Out Raspberry Pi Pico W and Pico WH Yourself

Recommended tutorials: - Getting started with your Raspberry Pi Pico W