By Graham Lippert

This page explains how to set up your circuit including a PicoPi and a DAC, as well as how to connect the Pico Pi Serial Port to the Computer, allowing you to read data from the Pico on the computer.

Circuit Setup

The first step is connecting the DAC to the PicoPi. You can use a pinout map online to set up your circuit.

Once the circuit is completely wired, the next step is to connect the PicoPi serial port to the computer, so you can read data from the PicoPi on your computer.

Install Thonny

You have to install Thonny, which is a user-friendly IDE that uses Python. 

Go to tools → options → then select interpreter and select the port that your PicoPi is connected to. 

To run multiple instances of Thonny at the same time (one to send data to PicoPi and one to receive data), you must go to tools → options → general → and unselect the option allowing you to use multiple instances.

To import libraries into Thonny go to Tools → Manage Packages  → and then search for any library. This can be annoying and may require the correct search.

Create files on PicoPi and Computer

Now you will need to create three files: two on the PicoPi, and one on your computer. Save the boot.py and code.py files on the PicoPi and save the last file to your computer in an organized folder.

1. boot.py (on PicoPi)

∗To run this code, you have to reset your PicoPi. Press down on the white button while unplugging it. Then plug the PicoPi back in.

2. code.py (on PicoPi)

3. Code on Computer

Posted in

Leave a Reply


Cosmic Pathways, Lab for Kids, and many of the other research activities discussed on this website is supported by the National Science Foundation and the Physics Teacher Education Coalition (PhysTEC) under grant no. 2325980. Any opinions, findings, and conclusions, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.