Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
2answers
35 views

What do I need to control multiple linear servos to push buttons from a raspberry pi? [on hold]

Let's say I have a remote like this below. If I buy multiple linear servos like these and want to assign each to one button to push, what are the things I need to set it all up? Here are what I can ...
-1
votes
1answer
33 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
31 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
65 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
107 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
50 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
200 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
85 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
155 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
102 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
167 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
1answer
224 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
305 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 ...
0
votes
1answer
179 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
94 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
255 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
331 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
777 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
530 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
59 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
345 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
293 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
74 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
666 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
93 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
257 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
425 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
515 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
229 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
790 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
146 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
132 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 ...
0
votes
0answers
251 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
321 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
608 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
200 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
339 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 ...
0
votes
1answer
2k views

Pigpio With Pi 3 Controlling Two Servos

I am brand new to using the GPIO pins on the Raspberry PI and I'm having a lot of trouble trying to control two continuous rotation servos using pigpio with python and a keyboard. Servos here: https:...
1
vote
2answers
976 views

Raspberry pi PWM stability

Is it possible to control 3 servos with a raspberry pi without hardware for it? My firsts tests showed me it was possible, but sadly just ssh connecting to the raspberry pi makes the servo move ...
1
vote
3answers
2k views

Servo motor not working

I'm trying to control a futaba s3003 servo motor using raspberry pi 3 but when I run the code the servo just moves a bit then stops. The servo's power is connected to external 6v power supply and I ...
1
vote
2answers
4k views

Enable i2c on Ubuntu Mate Raspberry Pi 3

I am having trouble utilizing the i2c bus on my raspberry pi. I am attempting to use it through Adafruits python module for their Servo driver board. When I run a method using the i2c I get: ...
1
vote
1answer
690 views

Controlling servo with Raspberry Pi but it doesn't stand still

I'm a new entry in the world of Raspberry Pi and Python language. My problem is as follows: I would like to control an micro Servo SG90 (datasheet here) with my Raspberry Pi 3 model B. Looking online ...
1
vote
1answer
264 views

GPIO reset needed for Servo?

I have a cronjob that runs every two minutes and sets a servo. (Example from: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-8-using-a-servo-motor/software) My bash-script calculates the ...
4
votes
2answers
2k views

Powering 2 servos with 5v output of L298N dual motor driver

I am using L298n Dual Motor Controller to control two dc motors for my robot. But I want it to power the servos too. I have created this circuit design. can I power the SG90 Servo with L298n? Is ...
0
votes
2answers
59 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 ...
0
votes
1answer
130 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?