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
1
vote
0answers
51 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
17 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
36 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
54 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
42 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
25 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
46 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 ...
1
vote
1answer
96 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
148 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
38 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
votes
1answer
76 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
76 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
162 views

Python code to use Adafruit motor shield v1 with Pi 3

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 ...
-1
votes
2answers
281 views

Control motors and servos simultaneously (Python)

I have a Raspberry Pi 2B+ and some knowledge of Python. I need to control a DC motor, two servos and a LED simultaneously. The requirements are: Must control two servos, a LED and at least 1 DC ...
0
votes
0answers
86 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 ...
0
votes
1answer
478 views

Servo robot with keyboard control

I am currently creating a design project that involves controlling several servo motors for a raspberry pi 3. I want to use a keyboard to control the direction of the motors, and I am using curses to ...
0
votes
1answer
130 views

How to control Arduino Uno using Raspberry Pi after image processing is done?

I am working on a project which is basically a robot car to collect garbage after the image in front of it is determined as Garbage (image processing using Raspberry Pi). I want my car movements to be ...
1
vote
2answers
224 views

Servo motors not working as expected with Raspberry pi 3

I am developing a robot with raspberry pi model b along with three servo motors. I have two functions which are defined for obtain robot behaviours. In the first function my servos are working well. ...
0
votes
1answer
144 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-...
1
vote
1answer
250 views

Stepper Motor Hat v0.1 - pre-soldered version

I am pretty new and have installed the referenced HAT. I followed the instructions, but it is not detected. I have power and a green LED on the board and when I turn it on and off the servos jump a ...
1
vote
2answers
320 views

Why does my raspberry pi zero w crashes when controlling a DC motor with an L9232D and a 9g Servo motor?

I use this simple circuit to control a DC motor with an L293D, and a 9g servo motor with a Raspberry PI Zero W: I use the simple following code to test the circuit: from time import sleep import RPi....
-1
votes
1answer
415 views

Can a servo motor rotate to a specific angle? [closed]

I am using servo motor for some positioning. Let's said I want the servo motor rotate to a specific angle like 23 degree, is it possible to achieve using Raspberry PI? Did I need some sort of encoder ...
-1
votes
1answer
234 views

how to solve this segmentation error problem

I am writing a basic code for a robot to follow the blue color and whenever I am running the code it gives that out put the y is :0 the x is :0 moving to the right moving forward Segmentation fault ...
0
votes
0answers
107 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 ...
1
vote
0answers
313 views

Is it possible to connect a Raspberry Pi Camera Module V2 without any concern to the CSI Camera Connector?

I have recently tried to connect the Raspberry Pi Camera Module V2 to the CSI Camera Connector on the Pi. At first, it worked properly and we could capture pictures and record videos. As part of a ...
0
votes
1answer
391 views

Servo angle control using Rpi and android App

I am trying to control the angle of a servo motor via an Android app that I built, installed on my phone. My phone sends the angle data (i.e. -90 to +90 degrees) to the raspberry pi via a TCP socket. ...
0
votes
1answer
935 views

Control servo motor using a web server

So I'm trying to get this to work. I have a .py file that turns the servo, and it works, but I'm trying to run it through a browser. So I installed apache and php, and I made .php file which, when ...
1
vote
0answers
607 views

How do I speed up MG995 servo motor using PCA9685 motor driver?

I am using PCA9685 to drive a MG995 servo motor. I am using the following code to control the servo motor. import time,Adafruit_PCA9685 def elbow(): pwm = Adafruit_PCA9685.PCA9685() pwm....
0
votes
1answer
76 views

Connecting a servo to a Pi

I'm new to electronics and have run into a problem while trying to hook up my micro-servo to my Pi. I have a Rapsberry Pi model 3 B, a breadboard, a 6V power supply, and a TowerPro MG90S micro servo. ...
0
votes
1answer
414 views

SG90 servo is vibrating and heating when I try to control it using Raspberry pi 3

I brought a new SG90 servo and I tried to control it using my Raspberry Pi's pin 17 writing the following code on the terminal's python >>>import RPi.GPIO as GPIO >>>import time &...
2
votes
2answers
353 views

How to get pan-tilt servos quiet forever after first adjustments

I have a camera mounted in an Adafruit pan-tilt mini kit with 2 servos (SG92R). Installed python-smbus and i2c-tools. From raspi-config I enabled 5 Interfacing options P5 I2C. Also installed ...
0
votes
2answers
92 views

Raspberry controlled fraction collector - what would be the best set?

I was thinking about building a self-assembled easy to use fraction collector controlled by raspberry. A Fraction collector is a piece of equipment used in liquid chromatography which has some tubes ...
0
votes
2answers
820 views

Simultaneous servo control on RPi 3?

I am building a project wherein I'll be controlling four servos using the Raspberry Pi 3. I wanted to control each pair of servos simultaneously (as in, when one servo is moving to a specified angle, ...
3
votes
2answers
2k views

How to generate accurate PWM signals for many servos

I've ran into a bit of an issue with the Raspberry Pi's ability to generate accurate PWM signals for servos. My problem with this is that the servos jitter because of this lack of accuracy. Is there ...
0
votes
0answers
108 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 &...
2
votes
0answers
295 views

Multiple servo motors with serial commands

I am trying to control multiple servo motors with a Raspberry Pi. I am using a USB to TTL cable for this. I am currently sending following serial commands for the movement. --> gpio -g mode 18 pwm --...
0
votes
2answers
515 views

Problem with usb serial RPI -> Arduino

I'm working on a robot, more precisely on his head which have to track an human face. I'm using a RPI which will detect the face and then send to the Arduino the angles for both servomotors. I ...
0
votes
1answer
582 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 ...
0
votes
2answers
247 views

How would I control multiple solenoid locks?

I would like to control 16 separate solenoid locks using PWM (It is not imperative that the lock is 12V, it could be 6V for example). The PWM source is this 16-channel servo driver from Adafuit. Is ...
0
votes
1answer
991 views

Run servoblaster Python code

lately i installed servoblaster to my raspberry pi and then tried a simple python code ` import os import time os.system('sudo ./servod') while True: os.system("echo 1=100 > /dev/...
2
votes
1answer
2k views

My servo jitters sometimes

I'm trying to build a toy model of self-driving car for my FYP. I have a RPi3 B+ Model with a custom 3D printed chassis which uses a futaba s3003 servo for steering front wheels. Servo is currently ...
1
vote
1answer
155 views

Servo turns one way except in Python

I am currently busy with a project where i need a servo to turn, i wrote a script in WiringPi (Python & .NET) that does this: //Set GPIO scheme. WiringPi.WiringPiSetupGpio(); ...
0
votes
1answer
140 views

raspberry pi3 servo blaster question

I run this code on Python 3 but it gives an error on echo 0, and echo 1. Can any one can correct this? #!/bin/bash #go to starting possition echo 0=60 > /dev/servoblaster sleep 1 echo 1=135 > /...
0
votes
0answers
2k views

programming a robotic arm

i want to programming my robotic arm (5 servo motors) with python ,so i wrote a python code but my problem is that when i try the code lines separately from terminal window it works fine and robot ...
1
vote
0answers
274 views

300hz digital servo not working with Raspberry Pi

I ordered a digital servo JX 5521MG to use with my Pi but when I use the code below the servo does not move but there is a slight tick or twitch inside. gpio pwm-ms gpio pwmc 192 gpio pwmr 2000 ...
1
vote
0answers
359 views

Servo Not Responding to Input Signal

I have a Raspberry Pi 3 (Model B). I'm trying to drive a servo motor (Tower Pro MG 995). I am using a 6V power supply (4 AA batteries) connected to power and ground of the servo motor. I attach the ...
0
votes
1answer
1k views

Controlling multiple servos with python and hardware needed(RPi 3)

I'm kind of new to the Raspberry Pi world and I've been researching for tutorials and how to's all around the web for software and hardware regarding a small project (RC car/robot). What I've ...
0
votes
2answers
696 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 ...
0
votes
0answers
209 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 ...
1
vote
1answer
373 views

Pi 3 can't detect servo hat

Super new to this. Attached the Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi to my Pi 3. All solder connections look good. Booted up the Pi, ran through the tutorial. After tutorial, the hat ...