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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWM-Servo-Hat-Through-Apache-Demo

A demo of controlling the Adafruit PWM/Servo 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.)

At this time the code causes the servos to jump a lot, so I don't think I am setting the values correctly. But it is useful to show how a Python script can be used through Apache.

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.)

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 questions. Feel free to create issues, even if they're only for questions about the project.

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