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
2
votes
1answer
74 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
33 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
25 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
44 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
50 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
46 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
31 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
45 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
36 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
93 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
38 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
66 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
125 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
83 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
17 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
64 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
41 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
45 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
20 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
30 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
26 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
52 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
108 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
25 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
73 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
53 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 ...
0
votes
1answer
472 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
130 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
23 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
50 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
39 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
88 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
122 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
611 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
93 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
443 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
232 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
78 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
160 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
414 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 ...
1
vote
0answers
63 views

Adafruit ServoHat importing PWM object

I am following the Adafruit page regarding the ServoHat for the Raspberry Pi. I am unclear what module to import to get the PWM class. This is the page about using the PWM class: https://learn....
0
votes
0answers
29 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 ...
0
votes
1answer
147 views

MGR996R rotation angle

Basically I want to control the angle of the rotation of the servo motor but I don't seem to know how... From the tech sheet I know this motor shouldn't be a continuous one, any hint would be ...
2
votes
1answer
244 views

Why is pigpio library not moving my servo when the same pin number works perfectly with RPi.GPIO?

I am working on a self driving rc car project and I need a servo to steer my car. As I was getting a bit jitter with RPi.GPIO I tried pigpio library. I am using a Raspbery Pi Model B. But it won't ...
5
votes
2answers
333 views

Pin powered Pi crashes when servos move

I have been working on a circuit to power a Raspberry Pi and servo(s) from a single power source. The diagram below shows the basic configuration, although the 'AA battery' is actually two 18650s. ...
0
votes
1answer
45 views

How to connect components of an RC (and rPi) car to the battery safely?

I am building an RC car from scratch. I have a 6v motor with an appropriate mdb, a 5v hobby servo, a raspberry pi zero w, and an 2200mAh 11.1v 50 C battery. I will upgrade the motor to a higher ...
1
vote
2answers
2k views

How can Rpi move a Servo motor using a GPIO pin in PWM mode?

iam new to raspberry pi and i got an error while a running servo motor in my object detection script i need to run the servo whenever my if condition is true so the same pin run multiple times if ...
-1
votes
1answer
180 views

Sg 5010 servo 360 degree modification not working [closed]

As per the video tutorials out there, I opened the motor, took out the potentiometer and measured its resistance at max. Its a b5k pot so it measured 5kohm I put 2.5k ohm from each pin (s and -) and ...
-1
votes
1answer
172 views

Control function for a DC servomotor angle

I am using a Raspberry Pi 3B+ with servomotor shields to control multiple servomotors at once with Python. I know that the travel angle of a servomotor is controlled using PWM. So there exists a ...
0
votes
1answer
602 views

How can Rpi Python control motor drivers L293D or L298N?

It is dangerous to run motors directly from the Pi, hence we need a motor shield. I own an Adafruit arduino motor shield clone: https://learn.adafruit.com/adafruit-motor-shield Note: I'm aware about ...