I want to control my Raspberry Pi GPIO pins over internet, but as I searched for answers I found Webiopi. I don't like Webiopi, so I am searching for any other way to control the pins with Python. Thank you!
-
What about Rpi.GPIO? There are tons of tutorials. Here a tutorial from sparkfun– MadMikeCommented Aug 26, 2017 at 0:24
-
How to control GPIO over internet with Rpi.GPIO, any tutorial? @MadMike– M.SimelCommented Aug 26, 2017 at 12:28
-
@M.Simel You could write your own script that suits your requirements. I recommend Node.JS or PHP. You can interact with the system (including GPIO) using those languages.– AlohaCommented Aug 27, 2017 at 4:59
-
You could make a little webserver with cherrypy and control rpi.gpio from there. Here the first english tutorial I've found from Google: Controlling LED from CherryPy Web App– MadMikeCommented Aug 27, 2017 at 18:38
Add a comment
|
2 Answers
The recent GPIO Zero release (1.4) includes several new chapters on remote GPIO:
I should add that this is achieved via Joan's excellent pigpio package, mentioned in the other answer (GPIO Zero is just configured to use pigpio as its pin driver instead of the current default of RPi.GPIO).
pigpio has a Python module which can control the GPIO of a networked Pi from a Windows, Mac, or Linux PC.
-
-
1@M.Simel All the information you need is in the linked page(s).– joanCommented Aug 26, 2017 at 20:18