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.
-
- Posts: 134
- Joined: Thu Aug 11, 2022 7:52 pm
Re: Two-way communication with RPi PICO W
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.
https://www.playpiper.com/pages/piper-make
(Note that you are not obliged to buy their hardware starter kit.)
https://www.playpiper.com/pages/getsupport-make-starter
The browser-based GUI -
https://make.playpiper.com/
https://www.playpiper.com/pages/piper-make
(Note that you are not obliged to buy their hardware starter kit.)
https://www.playpiper.com/pages/getsupport-make-starter
The browser-based GUI -
https://make.playpiper.com/
Beware of the Leopard
Re: Two-way communication with RPi PICO W
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
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
- radiolistener
- Posts: 329
- Joined: Thu Aug 03, 2023 6:49 am
Re: Two-way communication with RPi PICO W
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
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