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
2answers
18 views

How to access servos using pins other than GPIO 2&3

I have an adafruit pca9685 16-servo controller. I was using this guide to control it: https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/using-the-adafruit-library ...
0
votes
1answer
24 views

Servo control issue

I have written a small program that controls two servos: to start the recording process one servo opens a shutter (servo1), then the second one lifts a sky camera out of a housing (servo2). To stop ...
0
votes
1answer
45 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 ...
1
vote
0answers
64 views

MG996R jittering

I'm working on a project of a camera connected to a robotic arm that moves when my face is about to get out of the frame. I'm using 3 Tower Pro MG996R servos and they are connected to my raspberry pi. ...
0
votes
0answers
22 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 ...
2
votes
1answer
325 views

How to make the motion of a servo motor smoother?

I am having some trouble with controlling the motion of the servo motor. When I run my code, the servo motor moves in the specified range but the motion seems a bit erratic. I would be really grateful ...
0
votes
1answer
48 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 ...
1
vote
1answer
46 views

How to supply multiple servo motor and dc motor while using gsm module?

I've started rc plane but with internet connection instead of regular radio. My plan is using Ai-thinker A6 gsm module so I can use it as live stream camera and control servo together with blynk. ...
1
vote
0answers
47 views

How to power PCA9685

I am using the RP 4B and am trying to control a servo with the PCA9685. Unfortunatelly I am very new to all that and therefore I don't know which specific components I need to power it up. I bought a ...
-1
votes
1answer
34 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
106 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
50 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 ...
-1
votes
1answer
209 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
43 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
45 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
292 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
286 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
318 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
38 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
200 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
131 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
37 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
172 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
57 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
132 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
63 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
57 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
53 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
367 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
81 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
200 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
390 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
220 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
23 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
176 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
62 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
91 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
46 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
51 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
36 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
171 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
389 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
45 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
127 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
96 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
2k 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
288 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
29 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
58 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
51 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 ...