Articles Hierarchy

Articles Home » RPI » Raspberry Pi PICO

Raspberry Pi PICO

here now 'my two worlds' come closer together..
Raspberry Pi has a little brother, a arduino like development board
the PICO
also see
and more
the data sheet for the board
or getting started with C++ ( instead Python )
you might try or

copy paste raw code into
chmod +x

ok, today 22.02.2021 i see that one shop has now boards available and i ordered / only one to see how that works out about payment on delivery / here
for 209 THB ( incl. transport, no pins ) about 5.7 Euro, and delivery took 6 days.

well, already had following question in my mind:
if i install microPython on it, how to UNDO?

ok, lets get a USB cable from a old phone
++ connect board to cable,
++ cable to USB of RPI4 ++ while press board "bootsel" button until see

now drag drop (copy) downloaded "blink.uf2" file ( using the file-manager in 2 window mode )
the USB connection drops & board reboots & executes blink.uf2 & LED blinks.

for verify that it also blinks again after cable ( power ) reconnected,
ok, that means it is "installed" as "main"
when you connect with bootsel button pressed you see same 2 files from first connection
UF2 Bootloader v1.0
Model: Raspberry Pi RP2
Board-ID: RPI-RP2

Redirecting to

now follow the getting started, "hallo world.uf2"
and use terminal minicom

and best do
nano /home/pi/.bash_aliases
and add line
alias PICO='minicom -b 115200 -o -D /dev/ttyACM0'

rerun my Arduino IDE install-script on this RPI4
and start it just to use the "monitor" instead the minicom

but for programming the PICO today we can not use the Arduino IDE
i hope that will come soon.

so now is it the situation to learn how to use the above by the script installed tools to make our first own PICO C++ code
let us build one of the examples:
( i use /home/pi/projects/pico/blink/ ) and there have 3 files:

the first 2 i copy
CMakeLists.txtcmake_minimum_required(VERSION 3.12)





# Pull in our pico_stdlib which pulls in commonly used features
target_link_libraries(blink pico_stdlib)

# create map/bin/hex/uf2 file etc.

now use following commands:
mkdir build
cd build
cmake ..
make blink

and find ... blink.uf2 what you can copy to the PICO board

and make a new project where you really start to code ..
i try first a combination of BLINK and Hallo_World_USB

with this we have lots of the prior installed tool tested already, only the big thing:
Visual Studio Code IDE test ( microsoft free ware ) is open:
cd /home/pi/projects/pico/blink/

this should open the VSC window and now do:
/open folder / ( like select: projects/pico/blink/ ) OK
/open file /blink/blink.c
#include "pico/stdlib.h"
we get a ERROR

here i need to find how to adjust that IDE
try follow
the point was i needed to select a compiler ( tool button )
GCC for arm non-eabi 7.3.1 and build again.
( and just to be sure all works i deleted the old /build/ directory too

and load to PICO for test.

as the PICO has 2 core that concept might be new if you come from old Arduino boards

for a easy start with PYTHON get/download the free book
RPi_Pi Pico_Digital Edition.pdf
that helps to setup the PICO for Micro Python ( download and flash )
and use Thonny Python IDE ( like from a Raspbery Pi desktop or install from )
a nice video tutorial here

a example project NEO PIXEL