Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for: Raspberry Pi Pico (+Pico W) Remote GPIO? #1127

Closed
PizzaProgram opened this issue Mar 2, 2024 · 1 comment
Closed

Support for: Raspberry Pi Pico (+Pico W) Remote GPIO? #1127

PizzaProgram opened this issue Mar 2, 2024 · 1 comment

Comments

@PizzaProgram
Copy link

Device name: Raspberry Pi Pico
Protocol: GPIO + SPI + I2C + built-in TEMP + PWM + AVC
URL: https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html

The RPi Pico board family is a cheap (~ $4) and great product, available since ca. 2022 with many GPIOs and features.
Both Pico + PicoW can be attached by an USB port. (The W = Wifi.)

There are many code examples out there, like:

But none of them support:

  • industrial CRC during (USB = serial) communication
  • proper error handling (disconnect / reconnect)
  • ping / keepalive checks
  • plug & play
  • easy naming of the board ( robot2, roller-shutter11, basementLight23, temp47, ...)

The Taks:

... would be to use this great codebase and create a universal firmware for Pico boards to be able to communicate with them.

from gpiozero import Pico, PicoW 
pUsb1 = Pico.searchByName('ceilingLight')
pW2 = PicoW.connectByIP('192.168.42.42')

garden = pW2.OutputDevice(17)
@lurch
Copy link
Contributor

lurch commented Mar 4, 2024

I guess this is a similar idea to https://gpiozero.readthedocs.io/en/latest/pi_zero_otg.html but "creating universal firmware for Pico boards" is definitely outside of the remit of this particular repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants