Questions tagged [servo]

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

Move servo incrementally within keypress loop

After a week of searching... I have built a robotic arm run by a Pi 3. It has 5 servos, as well as a stepper motor. I have code written see, (Pastebin). And I am not able to get each servo motor to ...
Dylan Hewitt's user avatar
0 votes
2 answers
75 views

RPi.GPIO python code fails only in .py file

I am trying to control a servo with RPi.GPIO import RPi.GPIO as G G.setmode(G.BOARD) G.setup(5, G.OUT) p = G.PWM(5, 60) p.start(7) p.ChangeDutyCycle(50) p.stop() G.cleanup() When I run sudo python ...
user5812721's user avatar
0 votes
1 answer
196 views

What is this servo to Pi connector?

I'm trying to connect this servo to my RPi3 with as little wire as possible. What is this red, black, green wire called that allows me to connect a servo to my Pi?
user5812721's user avatar
0 votes
1 answer
831 views

How to control servo cam pan/tilt using bash and servoblaster?

Hello everybody, I'm trying to make a script bash to move a cam with servoblaster. when I strike a lettre (i,o,l,p) I would like increment or decrement a variable, to move the camera degree by degree ...
John's user avatar
  • 11
0 votes
1 answer
84 views

Simple circuit to check the data flow [duplicate]

This question is a follow up for this question. I have a classic servo motor (Vin, PWM, Ground), and a short program to work with it. The code is: import RPi.GPIO as GPIO import time GPIO.setmode(...
Constantine Samoilenko's user avatar
0 votes
1 answer
1k views

How to turn off / let float a servo attached to GPIO

I'm driving servos attached to GPIO, powered from external PSU and using PIGPIO Library through node.js - everything works just fine but I don't know how to completely "shut down" the servos - once ...
riccardolardi's user avatar
0 votes
1 answer
2k views

Controlling servo SPEED with either pi-blaster or pigpio

Ultimately I want to be able to control up to 8 servos using node.js - I'm able to control the servos using either pi-blaster or pigpio, but how do I control their speed with which they move?
riccardolardi's user avatar
0 votes
1 answer
972 views

Why do I need to connect servos to the ground of the battery and the ground of the RPi?

I'm trying to use two servos simultaneously and I've connected both servos to my battery pack which gives 6V (the servos require 6v). If I ground the servo only to the battery and I only use one of ...
nullexception's user avatar
0 votes
1 answer
851 views

Why a resistance between signal and GPIO - External power source

I'm trying to power my servo from an external power source and control it with my Pi and I've found following circuit: http://razzpisampler.oreilly.com/images/rpck_1001.png Why is there a resistance ...
nullexception's user avatar
0 votes
1 answer
439 views

Adafruit servo hat connections

I cannot solder the hat to the raspberry like suggested in the manual because the pins are alreade blocked by a proto-shield. However, I connected the SCL and SDA pins to the board and used an ...
Moritz's user avatar
  • 215
0 votes
1 answer
508 views

Gertboard to control 4 servos?

I have been given this arm: It consists of 4 servos, which need to be controlled individually. Can I control them using Gertboard? Gertboard has only one motor driver, but it also has several open ...
katspaugh's user avatar
  • 115
0 votes
1 answer
870 views

motor and audio

I'm using a raspberry pi, wheezy, raspbian, revision B. I'm I'm connecting a servo motor with these specs: Required Pulse: 3-5 Volt Peak to Peak Square Wave Operating Voltage: 4.8-6.0 Volts ...
Amanda Ervin's user avatar
0 votes
2 answers
2k views

my raspberry pi freezes while face tracking using openCV and servoblaster

I'm trying to track face with Pan and tilt motion, using servoblaster and opencv, i followed this tutorial if anyone is intrested.. it runs perfectly but after few seconds camera freezes and it stops ...
cyan's user avatar
  • 1
0 votes
1 answer
2k views

Control servo with raspberry pi

I have the following servo I would like to make a small self balancing robot with it. I am having trouble with figuring out how to control it with PWM using pulses to decide what position to move it ...
Yamaha32088's user avatar
0 votes
2 answers
93 views

Raspberry Pi 5 Servo Jitter

I’m trying to control 2 MG996R servos with my Pi 5. I’m using gpiozero and python. I’m using GPIO12 and GPIO13. I have a separate 5v power supply to power the servos. The servos both move but jitter ...
Bri's user avatar
  • 1
0 votes
1 answer
83 views

Why did my servo motor break when controlling it from a raspberry pi?

I was trying to control a Tower Pro SG-5010 servo motor using a Raspberry Pi 4, with the python code below, but after working for a minute or so, the servo started not turning for some of the commands,...
guest1253's user avatar
0 votes
2 answers
116 views

Can’t control servo with Raspberry Pi 5

I’ve just recently bought my first Raspberry Pi and opted for a Pi 5 as it was the latest. I’ve had no luck getting gpiozero or gpiod working with Python and my MG996R servos yet. I don’t mind if it’s ...
Bri's user avatar
  • 1
0 votes
2 answers
2k views

Problems connecting a servo to raspberry pi 5

I have recently tried to use a servo on a raspberry pi 5 using import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(17,GPIO.OUT) p = GPIO.PWM(17, 50) p....
laurits's user avatar
0 votes
0 answers
19 views

Synchronising with long-running activities

If this seems familiar, it's because this is a more-specific rework of a bad question. Currently coding with gpiozero, but I'm not wedded to it. If I have mixed activities, such as compute tasks and ...
RoUS's user avatar
  • 105
0 votes
1 answer
73 views

Parallax continuous rotation servo only moves in one direction

I hope all are doing good. I recently acquired a couple of Parallax continuous servo motors with adjustment screw rated at 50Hz, I successfully driven them using Arduino in all directions with variant ...
Zak's user avatar
  • 11
0 votes
0 answers
137 views

How would I connect and control this linear actuator to my raspberry pi 4 b+

So I have 2 questions for you guys, girls, or whatever you may be, this is the actuator I am planing on buying: https://www.robotshop.com/products/kitronik-linear-actuator-micro-servo-kit?...
Anthony Kercher's user avatar
0 votes
0 answers
37 views

Unable To Make MicroServo99 SG90 spin with raspberry pi

I am having an issue with my raspberry pi and making it spin a motor with python. I am currently using a battery connected to a PCA9685 16-Channel 12-bit PWM driver which connects my motor on channel ...
TheCrazyCreeper's user avatar
0 votes
0 answers
91 views

Continuous servo takes time to stop?

I am using a Raspberry Pi 3 to control a modified TowerPro SG90 servo, where I have removed the potentiometer to make a continuous rotation servo. Using the code below, the motor starts exactly when I ...
thecompassguy's user avatar
0 votes
1 answer
275 views

Controlling multiple servo motors on rpi 4

Do I need a hat module for my raspberry pi to control 6 servos? I’ll be using an external power source.
Bocian's user avatar
  • 9
0 votes
0 answers
93 views

Raspberry Pi does not register Servo on the I2C bus when connected via SparkFun auto pHat board

I just want to move the Servo motor through the I2C pins on spark fun's auto pHat board. I've been using the pi_servo_hat import and have been setting the motor through the initializer like this: test ...
Henry Keskitalo's user avatar
0 votes
0 answers
96 views

Which is the best dotnet core librery for controlling servo on Raspberry pi 4

Hello all I am doing research on the best library for controling servo motor on Rapberi pi 4 using C#. I tried some old ones. I will be grateful if you direct me to the best one for the purpose.
Darkk L's user avatar
  • 101
0 votes
1 answer
262 views

Raspberry pi controlling servo with dotnet

Hello all i am trying control servo motor usiun dotnet and Unosquare.RaspberryIO librery. This is my code and whatever I pass to the PayTonemethod the motor rotates only in one direction and one speed....
Darkk L's user avatar
  • 101
0 votes
2 answers
331 views

16 Port Servo Driver Won't Stop Continuous Servos Completely

I have a 16 port adafruit servo driver connected to my Raspberry Pi. I followed the directions (https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi) to set it up. I then ...
Brendan R.'s user avatar
0 votes
1 answer
167 views

Control 2 steppers and 1 servo a the same time on a motor Hat

Basically, I have a raspberry pi 4 with a Motor Hat to control two stepper motors. The whole thing looks like this : https://i.stack.imgur.com/SIjzI.jpg Now I want to connect a servo motor, and I know ...
Tom's user avatar
  • 1
0 votes
0 answers
99 views

How to take out the noises of the servo motor?

I am using the 3b+ raspberry, while the accelerometer is acquiring data the servo is creating some noises which may give false readings. Does anyone have any idea how to get rid of these noises? I am ...
Mohamad Dabdoub's user avatar
0 votes
1 answer
170 views

GpioPinPwmOutput set pwm value with floating point

I have a raspberry pi 4 B and I want to control servo motor. I am using NetBeans IDE and Java programming language with pi4j library for raspberry. Also I have a servo motor that can rotate for 300 ...
crackanddie's user avatar
0 votes
1 answer
195 views

Continuous rotation modified servo does not really stop (Futaba S3003)

I modified two Futaba S3003 servos for continuous rotation according to this instruction: http://terrencejpiman.blogspot.com/2015/04/continuous-rotation-futaba-s3003-servo.html?m=1. It seems to work ...
user11748507's user avatar
0 votes
1 answer
1k views

Get servo position using pigpio

I'm currently developping (improving) an Octoprint plugin that is used to control servo motors with the pigpio library. I always thought that I had to initialize the servos at the start of the code by ...
Franfran's user avatar
  • 103
0 votes
0 answers
136 views

Interrupt Servo once movement has initiated

I'm new to python and RPis. I'm building my own robot to learn. I manage to control my little robot and move it around, as well as moving the pan camera with my keyboard. While I was searching for a ...
Bernardo Belmar's user avatar
0 votes
0 answers
63 views

Why do my servos only work the first time

I Posted earlier about having problems with my servos that you guys helped me with and I'm really grateful for that. Now I'm facing an other issue with the servos: I have put them on my "robot" that ...
Kungbjucha's user avatar
0 votes
0 answers
312 views

Servo and DC/Stepper Motor Hats Together

I am creating a robot with my Raspberry Pi 3 B+. For my project, I wish to use 2x NEMA 17 stepper motors for moving around, and 2x SG90 servos for managing pan/tilt of the head. I already have an ...
Sid Kwakkel's user avatar
0 votes
0 answers
133 views

Adafruit_MotorHAT PI4

I am trying to run the following the code on PI4. from Adafruit_MotorHAT import Adafruit_MotorHAT # pylint: disable=import-error import RPi.GPIO as GPIO # pylint: disable=import-error import time ...
RAS's user avatar
  • 169
0 votes
0 answers
429 views

ServoBlaster on PI4

Could anyone make ServoBlaster work on Raspberry Pi 4? I was able to get it running on PI3 but the same code does not work on PI4.
RAS's user avatar
  • 169
0 votes
0 answers
49 views

PiGPIO inconsistent when using servo

so I will do the following command once and it will work and then the same sequence of commands never works again. Any help is appreciated, thanks! The commands are to first arm some ESCs then ...
David Teather's user avatar
0 votes
0 answers
158 views

Raspberry Pi 3 Model B - Windows IOT - UWP C++ - Servo control?

So currently, I have already developed a uwp application in Visual C++. I ordered a raspberry pi 3 model b from Amazon and its expected to arrive on Wednesday. In my program, I have a button, when I ...
Richard Wei's user avatar
0 votes
1 answer
561 views

The servo keeps rotating forever

I have 3 servo motors in my robot arm controlled by Raspberry Pi3 B+. One of the servos is (HV5932MG) (Link: "https://www.banggood.com/JX-Servo-PDI-HV5932MG-30KG-Large-Torque-360-High-Voltage-Digital-...
Hima Ali's user avatar
0 votes
0 answers
160 views

How to turn multiple servos by an angle using the Adafruit servo/pwm pi hat?

So I'm using a Raspberry Pi Model 3b and an Adafruit 12-bit PWM Servo/PWM Pi Hat on my project to control 6 independent continuous servos. I'd like to send in signals that would turn the servo by that ...
Guru's user avatar
  • 1
0 votes
0 answers
156 views

RPIO issue with servo

I've followed the instructions in the answers on GPIO/RPIO. I still get the following error: Traceback (most recent call last): File "/home/pi/Documents/Python_Ed/RPIO_server_test.py", line 1, in &...
Edward Metzler's user avatar
0 votes
1 answer
739 views

Can I power 2 Servos with Raspberry pi 3

I'm working with 2 servos (SG-5010) and I want to use my Raspberry Pi 3 to control those servos. Can I power those 2 servos with the 5V pins (pins 2 or 4 in rasp)? I'm powering my Raspberry Pi with a ...
DJ007's user avatar
  • 3
0 votes
0 answers
245 views

RPi + Adafruit Servo shield to control Brush motor and servo(steering) of a RC car!

I need help for my setup: I am not sure what I am doing wrong, but I just burned the servo-motor (for steering) of my RC car. Here is my set up: the rc car with brush motor and ESC, RPi 3, servo ...
JMarc's user avatar
  • 101
0 votes
2 answers
370 views

Raspberry Pi- Arduino Serially driven servo problem

I have been lately working on a ball tracker robot using image processing and I have interfaced Arduino and Raspi via USB. While the servo.write() function works perfectly when i program the Arduino ...
Kartik Madhira's user avatar
0 votes
0 answers
303 views

Connecting more elements to Raspberry pi servo hat

I have bought this rpi servo hat to control some servos. But I'm wondering if I still can add elements like leds or like a movement sensor to the GPIO. At all examples I can see that the GPIO is ...
cor's user avatar
  • 123
0 votes
0 answers
547 views

Raspberry Pi crashes when setting servo pin high

I have just finished a robotics project, which is due in a competition in a couple of hours. I have a problem: when my code sets one of the pins for the servo motor high, waits for a tiny amount of ...
Archie Roques's user avatar
0 votes
0 answers
212 views

Electronics Newbies's Guide to Setup Adafruit PCA9685 16 Channel Servo Driver for Raspberry Pi

As a way into getting myself back into learning more about electronics I'm trying to figure out how not to screw up configuring an Adafruit 16-Channel 12-bit PWM/Servo Driver with my pi. It's been ...
tbddeveloper's user avatar
0 votes
0 answers
434 views

Raspberry Pi finer servo control

I'm usig RPI and Servoblaster to control servos. I've set the --step-size to 2 us, but I'd like to decrease it to 1us. I've tried to set the step-size to 1us, but the Servoblaster displays: Invalid ...
Alex's user avatar
  • 95