Skip to content

A demo of controlling the Adafruit PWM/Servo hat through an Apache-served web page

License

Notifications You must be signed in to change notification settings

lelandg/PWM-Servo-Hat-Through-Apache-Demo

Repository files navigation

PWM-Servo-Hat-Through-Apache-Demo

This is a demo of controlling the Adafruit PWM/Servo Pi Hat through an Apache-served web page.

This is intended to be an "educational piece". You are welcome to do whatever you'd like with the code. (MIT license.) It is useful to show how a Python script can be used through Apache.

You should be able to easily extend this concept to control any hardware on your RPi through Python, and control anything else on any Linux platform. (You may need to configure the security first on other platforms other than the RPi, both embedded and otherwise.)

Requirements:

I simply copied the scripts from the PWM folder of the Adafruit library into the same directory as I placed these script files. You can just drop them in your /var/www/html, or create a separate directory for them. (I will not get into how to add a directory to Apache since there are multiple tutorials online and since I just use /var/www/html.)

If you install to /var/www/html, you can then point your browser to http://localhost/PiServed. Click some buttons or input some values and then click some buttons. Watch your servos move. :)

Please let me know if you have any thoughts or questions. Feel free to create issues, even if they're "only" to discuss the project (as recommended by GitHub's own best-use policy example).

  • This project deserves love.
    • You have love to give.
      • Ergo,
        • We go,
            • 🖖😎

About

A demo of controlling the Adafruit PWM/Servo hat through an Apache-served web page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages