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
1answer
18 views

What is the relationship between angles and pulse length of servo motor?

I've been working on a project where I've to drive the servo motors. I am using Raspberry Pi 3B+ model and Adafruit PCA9685 to drive the servos. For that I need to find which angle is at what pulse ...
1
vote
0answers
42 views

How to make/get a proportional flow control valve [closed]

I want to use hydraulic flow to proportionally vary the resistance of a rpi controlled exercise machine. The victim would rotate a positive displacement pump where the inlet and outlet ports are ...
0
votes
1answer
28 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 ...
0
votes
1answer
92 views

Raspberry Pi Software Driven servo control with PWM using C and Wiring Pi LIbrary

I'm trying to get my raspi zero to move an SG90 PWM driven servo. I have achieved this with python already using the gpiozero library, so I know my hardware works but I am trying to do it with C using ...
0
votes
1answer
35 views

Should I use an external power supply for controlling 4 servos?

So I have for servos that I could connect to a breadboard and to raspberry pi GPIO 5V pin to power them. But I have read that That is not safe it can damage the pi. Is that true? instead of using ...
0
votes
2answers
34 views

Servo is jittery and moves back and forth when it should be still

(Sorry about formatting) I am trying to write an opencv program to track the color red. So far it works okay, but the servo is jittery and when the object is still and centre the servo moves back and ...
0
votes
1answer
125 views

How to control a Servo via libgpiod on a raspberry PI

I am trying to control a Servo in c ++ using the libgpiod library. My problem is in defining the 50Hz pwm pulse on the pin that the servo is connected to. The servo signal cable is connected to pin 33 ...
1
vote
1answer
166 views

PCA9685 Raspberry pi4B i2c errors

I am trying to get a raspberry pi 4 model B working with across IC2 to a PCA9685 servo motor controller board. I have followed various tutorials e.g: PCA9685 Tutorial Using the libraray : ...
0
votes
1answer
145 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 ...
0
votes
2answers
28 views

Grounding with external PSU for servo and raspberrypi

Earlier I had used the USB-C adapter to power my raspberry pi and an external PSU to power the servos. I had to connect the ground of the PSU to the ground of the R-PI so that the control signal from ...
2
votes
1answer
154 views

Trouble getting sg-90 servo to work with R-PI 4

I have read several answers and approaches to controlling an SG-90 servo with a raspberry pi and I have tried the following approaches, with varying but never satisfactory results. Wiring Setup: ...
1
vote
2answers
86 views

Does Controlling a Servo Motor using a Potentiometer and a Raspberry Pi need an MCP 3800 or can it be done without it?

I am a newbie but I am aware that this question has been asked before here: Controlling a Servo with Potentiometer in Raspberry Pi But my question is do we need an MCP 3800 (Analog to digital ...
0
votes
1answer
31 views

Servo Controllers, Servos, Power consumption

I'm looking at options for controlling multiple Servos I keep finding the same board, the PCA9685 Which is great, I see people using them for those small 9g servos, but what about servos that pull ...
0
votes
1answer
105 views

MG 996R Micro servo Using Raspberry

I have a MG 996R micro servo which I am using with a Raspberry Pi and Python. It seems that this servo is not working with Python. I have tried experimenting the values, increasing and decreasing of ...
0
votes
1answer
54 views

Running .py code after power supply loss [closed]

I have an interesting problem, I want to mount a camera on the front of a tractor(Sony RX0M2, similar to a gopro). The camera will eventually be used for image processing. A PQ-12 micro linear servo (...
1
vote
0answers
97 views

Powering a Servo with 12V Battery and Buck Converter

I wanna power my servo with the 12V terminal of a Mastercraft Nautilus battery pack (see here)(long story). The servo is a actuonix pq-12 micro linear servo (see here). I'm stepping the voltage down ...
1
vote
0answers
43 views

When i change the dutycycle on my PWM it doesnt move my servo

I am using an SG90 and the GPIO Pin #17 but it only sometimes turns when I run the code. It always works if I reset the Kernel everytime. I am connected to my Pi through putty and am running the code ...
0
votes
1answer
47 views

what servos should I use? [closed]

I want to make a humanoid robot with my pi, but am unsure of what servos I would need. I did some research and found out they a rated in kg/cm, so I calculated the weights they would be lifting, ...
1
vote
0answers
41 views

Why my servo always blocks?

I try to control a servo with my Pi. Here is the python code I use : # Import libraries import RPi.GPIO as GPIO import time # Set GPIO numbering mode GPIO....
1
vote
0answers
256 views

Rpi python with a PCA9685 PWM controller stopping a digital servo motor problem

I have several servos plugged into a PCA9685 board and controlling them with PCA9685.py, and at the end of the script at pwm.cancel() my SF3218MG (270 degree) and 6221MG (180 degree) servos turn off ...
1
vote
2answers
57 views

Regular servo vs. Linear servo

I was wondering if there was any difference between controlling a normal rotating servo and a linear servo with the raspberry pi. Would the code look essentially the same? I'm trying to build a device ...
1
vote
1answer
153 views

Running pump & servo - Relay needed?

simulate this circuit – Schematic created using CircuitLab So I am working on a project that will require both a servo motor plus a small water pump. Both run on 3.7 -6v and I am going to use ...
2
votes
2answers
255 views

set specific angle in pigpio set_PWM_dutycycle

I just updated my code to use pigpio instead of RPi.GPIO, the later is working but my robot is trembling like a chihuahua, so I gave pigpio a try. In this piece of code I'm moving my servo, so to ...
1
vote
3answers
160 views

Can I reliably control four ESC with a servo driver board?

Im currently looking into building a quadcopter from scratch. The Raspberry Pi only has two PWM pins though, which isn't enough. And software PWM isn't great either, because you can't control a motor ...
2
votes
0answers
18 views

pwmWrite() dosen't run

else if(strcmp(hyp,"MEDIUM") == 0) { system("espeak 'medium'"); printf("%s\n", hyp); digitalWrite(LIGHT1, HIGH); pwmWrite (PWM_pin1, 524) ; } i try to control ...
0
votes
1answer
119 views

Servo motor keep shaking while using software PWM to drive

Greet everyone, I am using JavaScript with pigpio to develop my learning project. How come my servo motor keeps shaking when I drive it by program PWM? codes are posted as follow: var servo1GPIO ...
1
vote
1answer
51 views

Python Tkinder Button

i have a promblem with GUI Tkinter, when i click the button of my gui enviroment the arm of my robot dont response more specific call the function but steal remaning in 0 degre``es from the other my ...
3
votes
0answers
59 views

Is it possible to control servos in both directions on the RPi?

I have been working on controlling servos in one direction with PWM control via GPIO ports on my RPi 3. I've worked with motor controllers that use PWM before and it seems that I should be able to ...
1
vote
0answers
33 views

pigpio servo, stop command not reliable

import pigpio import math import RPi.GPIO as GPIO from gpiozero import Button import time GPIO_SERVO_PIN = 27 limit = 17 switch = Button(limit) GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.IN, ...
0
votes
0answers
41 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 ...
1
vote
0answers
33 views

Conditional Servo Movement

I am currently working on getting a raspberry pi to drive a servo motor according to a set condition. In the final program I will have a sensor determining the level of water in a glass, when this ...
1
vote
1answer
117 views

Servo does not keep its position once it does no longer receive a signal from gpizero

Following gpiozero.readthedocs.io I managed to move a servo which in turn opens a (model) toll-gate by winding up a wire. However, the behavior is rather unexpected - as soon as I stop sending a servo....
0
votes
1answer
293 views

How can Rpi python 3 uses PCA9685 PWM controller to change direction and position of a servo?

I need help understanding the code in the turn.py file, which is a part of the this project, please look #!/usr/bin/python3 # File name : car_dir.py # Description : By controlling Servo,the camera ...
1
vote
0answers
38 views

Cord Tension sensor

I need to detect when the tension in a (micro) winch cord either exceeds or falls below maximum or minimum tension. The winch is powered by a stepper or servo motor and the intent is to back off when ...
1
vote
1answer
100 views

Continuous (24/7) use of servos OK? [closed]

I'm using a Raspberry Pi, a PCA9685 controller, and a servo to control the air intake lever on my woodstove based on stove and room temperatures. My code adjusts the servo position every 2 minutes and ...
1
vote
2answers
69 views

Do I need to isolate the ground of the Pi from the ground of an external power supply powering multiple servos?

I have a Pi 3 Model B (powered by its ac adapter) sending multiple PWM control signals to up to 5 servos (SG5010). These servos draw usually 300 mA when they move and up to 1 A each when stalled so I ...
1
vote
1answer
1k views

What is the proper calculation of duty cycle range for the sg90 servo?

In all specs of this servo that I can find there is a range of 1000-2000ms of duty cycle, for 50 Hz frequency, for the full range of motion. For example: http://m.zonesutech.com/Content/upload/...
3
votes
1answer
228 views

How to power a Raspberry Pi and servo motors with one power supply

I'm building a robot using Raspberry Pi and several servo motors. I'd like to power all components using a single lithium ion battery. I've looked into using a motor driver hat, but it seems the motor ...
1
vote
1answer
25 views

Springboot and ServoBlaster

I am trying to control a servo from a web service. I have used Springboot and ServoBlaster library. Although these ways to handle the servo work as a standalone application, nothing of the above ...
1
vote
0answers
55 views

I wanna make a raspberry pi car using an RC car. I would like to know if the servo multiplexer is necessary? [closed]

I've asked this question in the Robotics Stack Exchange and I am asking here as this is kind of important and I need some answers fast. My apologies if this is rude or if it causes problems in any way....
0
votes
0answers
46 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 ...
0
votes
1answer
121 views

How can you use pigpio to set a specific position for a continuous rotation servo?

Running my code with a normal 180 degree servo will move it to a user-specified angle and then hold it there. But when using a continuous rotation servo, it keeps rotating constantly for 500 <= ...
1
vote
3answers
153 views

Servo motor behaves odd

hello I Connected a servo motor to my Raspberry pi Zero W and used the example from raspberrypi.org: granpa scarer: Grandpa Scarer and the servo worked however after changing the value for: p....
1
vote
2answers
882 views

AdaFruit ServoKit CircuitPython Blinka Library Installation Problem

I'm follow along with a tutorial to get started with using CircuitPython to control servos on my RaspberryPi (https://learn.adafruit.com/adafruit-16-channel-pwm-servo-hat-for-raspberry-pi/using-the-...
0
votes
0answers
142 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 ...
2
votes
2answers
632 views

What servo motors can safely be driven directly from a Raspberry Pi's GPIO header?

A Raspberry Pi's GPIO header includes power pins, and enough I/O pins to drive multiple servo motors. When using this header's 5V supply to power servo motors directly (rather than using external ...
1
vote
0answers
315 views

How to control servos on Arduino through Raspberry Pi [closed]

I have a couple of servos connected to an Arduino board, which is in turn connected to a Raspberry Pi (4) using an ethernet cable. Just wondering, in what ways can I control the servos on Raspian. ...
0
votes
0answers
94 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 ...
0
votes
0answers
234 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.
2
votes
1answer
804 views

Is there a way to slow down servo movement speed?

Despite searching I was not able to find an answer to this question. I have a servo attached to a pin that moves an arm back and forth. The problem is that it moves too quickly. Is there a way ...