Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
28 views

Pi 3B, 2 Servos and 2 Ultrasonic sensors. Power Supply needed

So right now I have the following items in front of me: Raspberry Pi Model 3B The power cable / plug that comes with it 2x MG995 Servo motors (<- open short compact datasheet for voltage info) 2x ...
1
vote
2answers
49 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
35 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
75 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
votes
0answers
53 views

pigpio controlling two continuous servo motors

I am relatively new to controlling gpio pins with python and the pigpio library. I am trying to build a small robot to be controlled with an old xbox 360 remote. I've downloaded and installed all ...
1
vote
1answer
114 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
193 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
113 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
69 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
181 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
254 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
556 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
401 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
50 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
258 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 &...
0
votes
0answers
71 views

How to send values from MATLAB to RaspberryPi for servo control?

I'm implementing a Fuzzy based PD controller on MATLAB to control a robotic system. The output of my controller will be in terms of motor angles, which I want to send to a pair of servo motors running ...
2
votes
2answers
230 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
51 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
1answer
476 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
1k 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
72 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
191 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
340 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
436 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
179 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
560 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/...
1
vote
1answer
1k 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
136 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
118 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
214 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
239 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
460 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
181 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 ...
0
votes
0answers
56 views

Problem with ESCs and RPi. My brushless motor start, running and stop critical

After calibration and initialization, turn on all 4 motors, and after a time, one (or two) motor(s) stop spining, and when I press 's' to stop all motors, these 2 motors beeped (beep-beep-beep-....) ...
1
vote
1answer
301 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
1k 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
818 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
1k 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: ...
0
votes
0answers
551 views

Multiple stepper motors and servos

I want to build a 'robot' of some sorts. I'll be using four geared 60 mm stepper motors, a webcam and one servo. Before jumping into this and buying a RPi, I'd like to know if I would be able to hook ...
1
vote
1answer
555 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
239 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 ...
3
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
55 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
109 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?
3
votes
0answers
789 views

Raspberrypi and PCA9685 no bus detected

I'm trying to follow an adafruit servos tutorial to control servo motor from my raspberrypi. My PCA9685 seems on (the green led is power up) and i attached two servos to it. I cabled as in the ...
1
vote
2answers
89 views

Servos on Arduino run fine connected to Mac, poorly connected to Raspberry Pi 3

I have a Snapper Robotic Arm kit from Trossen Robotics. The servos are powered externally via 7v/5a supply that came with the kit. I power the Geekduino via USB to micro-USB connection, and upload the ...
0
votes
1answer
546 views

Can the GND pin handle 5V?

In many tutorials and guides they use the 5V pin, the GND pin and a GPIO pin to control a servo with a JR-plug. In these guides, they didn't use any other components (I.e. resistors) in between. Now I ...