Skip to content

A raspberry pi pico is connected to a raspberry pi single board computer. A button and led are present at both ends. Pressing the button on one device lights up the led on the other device.

License

Notifications You must be signed in to change notification settings

indiekiwi/RPi-sbc-pico-serial-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Raspberry Pi Pico is connected to a Raspberry Pi SBC (single board computer). A button and LED are present at both ends. Pressing the button on one device lights up the LED on the other device by exchanging signal strings by using the serial interfaces at each end via USB.

I initially developed this for my other project at raspberrypi-wigglegram-camera, but it wasn’t included in the final design.

Software Used

  • Raspberry Pi 4
    • Ubuntu Server 24.10 (64 bit)
    • python3-gpiozero
      • *May not need to install manually if using Raspberry Pi OS
  • Raspberry Pi Pico
    • Circuit Python (no external libraries used)

Build

Parts List Wiring Diagram
  • Raspberry Pi SBC (I developed it on a Raspberry Pi 4)
  • Raspberry Pi Pico (rp2040 micro controller)
  • 2x LEDs
  • 2x Push Buttons
  • 2x 330ohm resistors
  • 2x Breadboards
  • Breadboard wires
  • Micro USB Data cable
  • Power source for the SBC

Useful Commands

Desc Command
Mount the pico to the raspberry pi sbc to modify pico code directly sudo mkdir -p /mnt/pico; sudo mount /dev/sda1 /mnt/pico
I had to run as root to access the GPIO pin sudo python3 sbc/code.py

About

A raspberry pi pico is connected to a raspberry pi single board computer. A button and led are present at both ends. Pressing the button on one device lights up the led on the other device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages