In this tutorial, you will learn how to control a servo from Python using a BeagleBone Black (BBB).
A Python test program will allow you to set the angle of the servo between 0 and 180 degrees.
# python servo.py Angle (0 to 180 x to exit):90 Angle (0 to 180 x to exit):180 Angle (0 to 180 x to exit):0 Angle (0 to 180 x to exit):x #
Text editor powered by tinymce.