rpi-pico-w/upython/adc.py 2025-07-27
The hello world is with a potentiometer: extremes on GND and VCC pins of the Pi, and middle output on pin GIO26, then as you turn the knob, the uart value goes from about 0 to about 64k.
In Ciro's ASCII art circuit diagram notation:
RPI_PICO_W__gnd__gpio26__5v
| | |
| | |
| | |
P__1____2_______3
micropython/blink_gpio.py 2025-07-27
MicroPython example 2025-07-27
Under: micropython
Run MicroPython on X 2025-07-27
Zephyr official example 2025-07-27
zephyr/blink_gpio.c 2025-07-27
Same behavior as micropython/blink_gpio.py.
Zephyr non-official example 2025-07-27
Run MicroPython on Micro Bit 2025-07-27
Bibliography:
Run Zephyr on Micro Bit 2025-07-27
Build worked:but flash failed:Related: mattoppenheim.com/2018/06/24/using-udev-to-remove-the-need-for-sudo-with-the-bbc-microbit
west build -d build/microbit/hello_world -b bbc_microbit samples/hello_world
west flash -d build/microbit/hello_world
The build also generates a .hex file by default, and we've tried to flash it manually with:but we failed to see it do anything with zephyr/blink_gpio.c, so not sure if the flashing was broken or if the code was broken, or if we didn't find the IO pins correctly.
cp build/microbit/hello_world/zephyr/zephyr.hex /media/ciro/MICROBIT/
Program the Micro Bit with X 2025-07-27
Microcontroller devboard 2025-07-27
rpi-pico-w/upython/uart.py 2025-07-26
Any
print()
command ends up on the USB, and is shown on the computer via programs such as ampy get back.However, you can also send data over actual UART.
We managed to get it working based on: timhanewich.medium.com/using-uart-between-a-raspberry-pi-pico-and-raspberry-pi-3b-raspbian-71095d1b259f with the help of a DSD TECH USB to TTL Serial Converter CP2102 just as shown at: stackoverflow.com/questions/16040128/hook-up-raspberry-pi-via-ethernet-to-laptop-without-router/39086537#39086537 for the RPI.
rpi-pico-w/upython/blink_gpio.py Created 2025-07-26 Updated 2025-07-27
Same as the more generic micropython/blink_gpio.py but with the onboard LED added.
rpi-pico-w/upython/blink.py 2025-07-26
Blink on-board LED. Note that they broke the LED hello world compatibility from non-W to W for God's sake!!!
The MicroPython code needs to be changed from the Raspberry Pi Pico 1, forums.raspberrypi.com/viewtopic.php?p=2016234#p2016234 comments:
Program Raspberry Pi Pico W with X 2025-07-26
picotool 2025-07-26
Tested on Ubuntu 25.04,
sudo apt install libusb-1.0-0-dev
git clone https://github.com/raspberrypi/pico-sdk
git clone https://github.com/raspberrypi/picotool
cd picotool
git checkout de8ae5ac334e1126993f72a5c67949712fd1e1a4
export PICO_SDK_PATH="$(pwd)/../pico-sdk"
mkdir build
cd build
cmake ..
cmake --build . -- -j"$(npro)" VERBOSE=1
build/picotool
so copy it somewhere in your PATH
like:cp picotool ~/bin
sudo ~/bin/picotool load -f build/zephyr/zephyr.uf2
No accessible RP2040 devices in BOOTSEL mode were found
pico_enable_stdio_usb(blink 1)
Never unplug your Raspberry Pi Pico again by deltocode
. Source. Run Zephyr on Raspberry Pi Pico W 2025-07-26
The Zephir LED blinker example does not work on the Raspberry Pi Pico W because the on-board LED is wired differently. But the hello world works and with:host shows:Nice!
screen /dev/ttyUSB0 115200
*** Booting Zephyr OS build v4.2.0-491-g47b07e5a09ef ***
Hello World! rpi_pico/rp2040
Raspberry Pi Pico 1 2025-07-26
This section is about the original Raspberry Pi Pico board. The "1" was added retroactively to the name as more boards were released and "Raspberry Pi Pico" became a generic name for the brand.
Flash the Raspberry Pi Pico Created 2025-07-26 Updated 2025-07-27
This is a major design flaw, that the only easy default way is that you have to unplug, press bootsel, replug:
There are unlisted articles, also show them or only show them.