I'm using a raspberry pi to control some relays hooked up to some lights. I am a controlling the lights via PHP web controls. I've reached a barrier in which there aren't enough GPIO pins to control all the lights I would like to. If I were to buy a second RPi, would it be possible to control it via the same page? I know basic HTML and I know I could just add a link that takes you to the second pi's IP address, but I would like to build a cohesive GUI in a single webpage.


1 Answer 1


Only you really understand what you mean by "but I would like to build a cohesive GUI in a single webpage."

My pigpio will let you control the GPIO of multiple Pis from a single location.

The pigpio daemon must be running on each Pi.

  • pigpio is definitely the right answer! You have the choice between pigpio bindings in various languages (C, Python, nodejs, maybe others) - with Python, you can also use the gpiozero library (simple to use) with pigpio as the pin driver. See gpiozero.readthedocs.io/en/latest/remote_gpio.html Commented Feb 27, 2019 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.