- Home
- Learn Linux
- Learn Electronics
- Raspberry Pi
- Programming
- Projects
- LPI certification
- News & Reviews
In my first video on the Raspberry Pi Pico I explain what it is, how it differs from the Raspberry Pi computers and where you'd choose each. I also explained how you can get the advantages of both by using them together.
This video includes a very basic program in MicroPython showing how you can install MicroPython on the Pico and then create your own program using the Thonny editor.
I've also created a guide to programming the Raspberry Pi and Pico to communicate together. This allows a graphical program on the Raspberry Pi to receive information from the Pico. This uses UART serial data transfer.
Code is provided for both Python and C running on the Pico and then Python with Pygame Zero on the Raspberry Pi computer.
The use of the Pygame Zero for a graphical interface for an electronics project is along similar lines to my project Pygame Zero for makers - controlling electronics with Python PygameZero.
A full workthrough on setting up MicroPython is included in the first video. This goes through the instructions on the Raspberry Pi Pico getting started page. A quick summary of steps is included below.
Details for wiring up the Raspberry Pi and the Raspberry Pi Pico are on the Raspberry Pi Pico Projects page.
A run through is shown in the voltmeter video. This goes through the instructions on the Raspberry Pi Pico getting started page.
chmod +x pico_setup.sh
./pico_setup.sh
cd pico
mkdir pico-projects
mkdir build
cd build
cmake ..
make -j2
The code that creates the GUI on the Raspberry Pi is written in Pygame Zero. It is created in the Mu editor which has a Pygame Zero mode, making it easier to create Pygame Zero videos.
For more details on creating GUIs see my project on creating maker gui interfaces using Pygame Zero. See this post for details of the serial uart code in Python.
The files required are listed below: