Article Preview
Buy Now
FEATURE
Controlling a Raspberry Pi Pico WH
Xojo Running On Pi 5 to Control Pico WH Through UART
Issue: 23.2 (March/April 2025)
Author: Eugene Dakin
Author Bio: Eugene works as a Senior Oilfield Technical Specialist. He has university degrees in the disciplines of Engineering, Chemistry, Biology, Business, and a Ph.D. in Chemical Engineering. He is the author of dozens of books on Xojo available on the xdevlibrary.com website.
Article Description: No description available.
Article Length (in bytes): 18,317
Starting Page Number: 33
Article Number: 23203
Resource File(s):
project 23203.zip Updated: 2025-03-02 13:14:55
Related Link(s): None
Excerpt of article text...
Connecting to different computers has many benefits and allows additional data and more sensor pins to be used for complicated programs and controllers. This example shows how to use Xojo on the Raspberry Pi 5 to control the Raspberry Pi Pico WH running MicroPython to perform different tasks.
There are many ways to send digital data between a Raspberry Pi 5 and a Raspberry Pi Pico WH. UART (Universal Asynchronous Receiver/Transmitter) is a standard method that the Raspberry Pi uses to send and receive data over two wires. Wiring is simple; there is very low power consumption; no network is required; and it is suitable for transferring small amounts of data and control signals. Since this is a wired connection, it typically only works over a few meters, and since both the Raspberry Pis operate at 3.3 volts, no level shifting is required.
Xojo cannot run on the Raspberry Pi Pico WH directly, so using MicroPython is necessary for the Raspberry Pi Pico WH.
The following is a set of steps to set up the Raspberry Pi 5 and the Raspberry Pi Pico WH boards.
Raspberry Pi 5 Master Controlling a Raspberry Pi Pico WH
This article explains how to connect a Raspberry Pi 5 with Xojo and a Raspberry Pi Pico WH with Python to have the Pico WH act as a slave, while the master is the Pi 5 running Xojo.
...End of Excerpt. Please purchase the magazine to read the full article.