Created
September 3, 2017 19:46
-
-
Save jkarnows/ebb9c9fcf8a1e5de96d039e17fb42aa9 to your computer and use it in GitHub Desktop.
Controlling the servos on a Raspberry Pi for a robot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from RPIO import PWM | |
servoLeft = 18 # 1300 is backwards, 1700 forward | |
servoRight = 23 # 1700 is backwards, 1300 forward | |
servo = PWM.Servo() | |
servo.set_servo(servoLeft,1500) | |
servo.set_servo(servoRight,1500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment