Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A servo is a motor, commonly used in robotics projects. This tag is for questions about the servo motor when using it in robotics and other projects.
2
votes
Simultaneous servo control on RPi 3?
= PiGPIOFactory()
servo1 = Servo(4)
servo2 = Servo(14)
servo1.source = sin_values()
servo2.source = cos_values()
pause()
This example sets each servo to move back and forth at the same rate simultaneously … Read more about the Servo class, pin factories and more in the gpiozero docs. …
1
vote
Servo robot with keyboard control
If you're new to this, you might find it easier using GPIO Zero rather than pigpio, as it's a more friendly API, and provides a built-in Servo class. … Example servo code:
from gpiozero import Servo
from time import sleep
servo = Servo(14)
servo.min()
sleep(1)
servo.mid()
sleep(1)
servo.max() …
1
vote
Accepted
Control motors and servos simultaneously (Python)
A servo takes 1 GPIO pin (plus GND & 5V), a motor takes 2 GPIO pins (plus GND & 5V), and an LED takes 1 GPIO (plus GND). Note GND can be shared, as can 5V. … The CamJam kit robot board covers 26 pins but gives you the unused ones back, including the 5V you need for your servo. Alternatively (though you'd need a breadboard), you can use an H-bridge IC. …