Posts: 134
Joined: Thu Aug 11, 2022 7:52 pm

Two-way communication with RPi PICO W

Wed Jul 12, 2023 10:50 am

Grateful pointers to information on how Scratch two-way communicate with RPi PICO W?

To perfrom:
a. Clicking on Scratch turns on LED on PICO W bread board
b. Press button on PICO W bread board makes sound on Scratch

Under different configurations:
1. Scratch running on line or off line on Windows PC or Chrome book
2. Communicate via USB cable
3. Communicate via WiFi or BlueTooth (remote conrol of robot car)

What is pro and con for communicate in free text or setting PICO as web server and use http GET and POST?

Thank you.

User avatar
Posts: 15433
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Two-way communication with RPi PICO W

Fri Jul 14, 2023 9:40 am

I have no idea how it was implemented, but you might find inspiration and technical pointers from a company called Piper who have a Scratch/Blockly-style GUI interface that can control a usb-connected Pico board that has been specially prepared by flashing their custom firmware based on Adafruit's Circuit Python.

(Note that you are not obliged to buy their hardware starter kit.)


The browser-based GUI -
Beware of the Leopard

Posts: 3418
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany

Re: Two-way communication with RPi PICO W

Fri Jul 14, 2023 10:06 am

When other tools than scratch can be used, then have a look to https://snap.berkeley.edu/
Has features which are quite handy:
- can be downloaded and runs on local machine
- has a MQTT adapter
- has a REST interface to remote systems

User avatar
Posts: 329
Joined: Thu Aug 03, 2023 6:49 am

Re: Two-way communication with RPi PICO W

Fri Aug 25, 2023 8:23 pm

I would suggest to not use onboard GPIO for communication experiments, because GPIO pins are not 5V tolerant and can be easily damaged.

The better way is to buy USB-TTL converter and use it for experiments. Look for USB-TTL converter which has 3.3V/5V onboard selector, so you can use it with UART pins on GPIO, but don't forgot to switch selector to 3.3V

Return to “Scratch”