ID photo of Ciro Santilli taken in 2013 right eyeCiro Santilli OurBigBook logoOurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
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.
We connect Pin 0 (TX), Pin 1 (RX) and Pin 2 (GND) to the DSD TECH, and the USB to the Ubuntu 25.04 host laptop.
Then on the host laptop I run:
screen /dev/ttyUSB0 9600
and a counter shows up there just fine!
rpi-pico-w/upython/uart.py
from machine import UART, Pin
import time

led = Pin('LED', Pin.OUT)
uart0 = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))
#uart1 = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))
i = 0
while (True):
    led.toggle()
    uart0.write(str(i) + '\r\n')
    print(-i)
    time.sleep(.5)
    i += 1

Ancestors (16)

  1. Raspberry Pi Pico W MicroPython example
  2. Program Raspberry Pi Pico W with MicroPython
  3. Program Raspberry Pi Pico W with X
  4. Raspberry Pi Pico W
  5. Raspberry Pi Pico variant
  6. Raspberry Pi Pico
  7. Raspberry Pi
  8. Raspberry Pi Foundation project
  9. Raspberry Pi Foundation
  10. Computer manufacturer
  11. Computer hardware
  12. Computer
  13. Information technology
  14. Area of technology
  15. Technology
  16. Home