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.

learn more… | top users | synonyms

4
votes
1answer
136 views

Controlling Servos with a Raspberry Pi

I am not sure if this will break my Pi, so I decided to double check In this image is a simple servo connection, I am still learning how servos work. I actually have two questions: If I decided ...
1
vote
1answer
33 views

RPIO.GPIO on RPie vers 1 B versus RPi.GPIO on Rpie vers 2B

With the "old" Pi v1 B, Python 2.7 (or Python 3.x.) I run a smal program for testing a servo motor. The motor opens/closes a lid on a smal fan. It worked fine, the servo not jittering. I was happy. ...
0
votes
0answers
22 views

Raspberry Pi crashes when setting servo pin high

I have just finished a robotics project, which is due in a competition in a couple of hours. I have a problem: when my code sets one of the pins for the servo motor high, waits for a tiny amount of ...
2
votes
1answer
75 views

Controlling servo with pi-blaster works but pi-blaster.js does not

I am able to control a servo with pi-blaster from the command line successfully. However when I try to use pi-blaster.js to do so in Node.js (either at the node command line or from within a Node ...
0
votes
1answer
346 views

How to run 2 servos with wiringpi2 on Raspberry pi 2

Hello I want to use 2 servo with different gpio pins. But Raspberry has one hardware pwm (GPIO 18). first of all I tried another pin to run servo and my code: wiringpi.pinMode(18,2) ...
0
votes
1answer
391 views

How to use pigpio to control a servo motor with a keyboard?

My aim is to be able to control a servo motor with my keyboard in a real time fashion using the python module of pigpio. That is, when I press say the 'w' key it rotates clockwise and when I press the ...
1
vote
0answers
183 views

Multiple servo control RPi

I have written the following script to set positions for a single servo. import RPi.GPIO as GPIO import time #set up pin 11 as an output GPIO.setmode (GPIO.BOARD) GPIO.setup (11, GPIO.OUT) ...
0
votes
0answers
120 views

Raspberry pi with PS3 Controller

Hi I have used the following code for a specific movement for the servos. In my project I have 3 servos per nacelle (2 nacelles) to control the motions for the bicopter. I want to control the inputs ...
1
vote
0answers
117 views

Raspberry Pi with ESC and PS3 Controller

I am new to coding and I am trying to control ESCs through a PS3 controller which will be coded on the Raspberry Pi B+. I think this can be done, but i have read in a lot of places that I need to use ...
1
vote
0answers
80 views

Ideas for limited camera pan and tilt

I have a number of Pis, each with a camera module attached. I've mounted the cameras on a flat board side by side, but have discovered that there are physical inconsistencies in the camera modules ...
0
votes
3answers
873 views

Controlling a continuous servo with raspberry pi

As the title states I want to be able to control a continuous rotation servo and use it as a wheel for my rc car. I have installed ServoBlaster but I can't find any tutorial or example on how to send ...
4
votes
2answers
321 views

How can I get a clock in C accurate enough to control a servo?

I want to write a program that controls a servo motor myself using a pi B+. Controlling the motor involves sending 1.5 millisecond pulses along a GPIO pin every 20 milliseconds. I have tested the ...
6
votes
2answers
140 views

Use a servo right from the GPIO without a breakout board

I've been researching how to use a servo on my Raspberry Pi but the tutorials concerning this seem very complicated. This surprised me, since the Raspberry Pi has GPIO built right in. Despite the Pi ...
0
votes
0answers
54 views

towerpro mg 995 and servoblaster issue

I bought two towerpro mg 995, so i decided to develop a little python lib for moving them at 3 or 4 different speed / rotation. My lib is writing in /dev/servoblaster to command the servos. I am in ...
0
votes
1answer
118 views

Gertboard to control 4 servos?

I have been given this arm: It consists of 4 servos, which need to be controlled individually. Can I control them using Gertboard? Gertboard has only one motor driver, but it also has several open ...
0
votes
1answer
607 views

Raspberry pi servo motor angle calculation [closed]

I know servo : 1 ms is 0 degree 1.5 ms is 90 degree 2 ms is 180 degree I also know servo motor has period of 20 ms and PWM from 1-2 ms, but i totally confused how to calculate angle like 30 or 60 ...
0
votes
1answer
131 views

motor and audio

I'm using a raspberry pi, wheezy, raspbian, revision B. I'm I'm connecting a servo motor with these specs: Required Pulse: 3-5 Volt Peak to Peak Square Wave Operating Voltage: 4.8-6.0 Volts ...
0
votes
1answer
944 views

RPI B+ with connected servo is twitching

I am looking for some advice on how to properly get my servo working correctly. I have wired it up and it appears to be working correctly. The problem I have is with the signalling causing a ...
1
vote
1answer
818 views

How many ultrasonic sensor can a Raspberry pi B+ can handle?

im planning to build a simple robot. having several ultrasonic sentor and 12 servo motor. How many ultrasonic sensor can a Raspberry pi B+ can handle? i need 8 ultrasonic working at the same time ...
1
vote
1answer
530 views

How to write to /dev/servoblaster from Python script?

I'm working on a RPI controlled quadcopter. The PWM is generated by ServoBlaster. I've written a Python script to control the motors' speed. Assume that I'm using GPIO4 to control the motor. If I want ...
1
vote
1answer
2k views

WiringPi + softPwm calculation to determine duty cycle

For my project we got a pre-installed rpi with all the working libraries and an example program to set a servo in middle position. The info: in a period of 20ms (50hz) we need 1,5ms to set it to ...
0
votes
0answers
78 views

Beginning with servos and PWM

As a way into getting myself back into learning more about electronics I'm trying to figure out how not to screw up configuring an Adafruit 16-Channel 12-bit PWM/Servo Driver with my pi. It's been ...
5
votes
1answer
450 views

PWM Control on Raspberry PI

Alright so I understand this question is fairly saturated, but my use in pwm is for two differing pieces of hardware. (Sourced from: https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais) From ...
0
votes
0answers
131 views

Raspberry Pi finer servo control

I'm usig RPI and Servoblaster to control servos. I've set the --step-size to 2 us, but I'd like to decrease it to 1us. I've tried to set the step-size to 1us, but the Servoblaster displays: Invalid ...
1
vote
3answers
414 views

ServoBlaster problem (auto rotate)

I have rotation bug in ServoBlaster.. I'm using these values: 1500us : Idle 1530us : Pulse left 1480us : Pulse right For example : echo 1=1500us > /dev/servoblaster. BUT, my problem is the ...
1
vote
4answers
501 views

Controlling a servo and playing sounds

I've got a serious problem about Pi. It is - I can play sound just fine with a python script either with: import pygame pygame.mixer.init() pygame.mixer.Sound("...").play() or: import os ...
0
votes
0answers
140 views

Raspbian crashing after servo.stop_servo()

I have a servo connected to my RPi and I try PWM.Servo's capabilities. The program below does what it should - but after execution it crashes system (it doesn't respond to any input, no animations, ...
0
votes
2answers
630 views

my raspberry pi freezes while face tracking using openCV and servoblaster

I'm trying to track face with Pan and tilt motion, using servoblaster and opencv, i followed this tutorial if anyone is intrested.. it runs perfectly but after few seconds camera freezes and it stops ...
1
vote
2answers
94 views

What servo motor and mechanism to move the whole Raspi, its camera and case?

I know there is an interesting Pan & tilt from openelectronics but my project is to move (to pan only) the whole raspi and camera with its waterproof case (# 500 gr) It 's for an outdoor site. as ...
0
votes
4answers
981 views

trigger cron job from web application

I would like to improve on my project by using cron jobs. Currently, i have a web application that allows me to control servos. However I would like to add another function on the web application ...
1
vote
1answer
581 views

Using Pan and Tilt servos

I am trying to get pan and tilt camera working with Raspberry Pi. I have successfully gotten one servo to work following this tutorial: I also found this tutorial showing pan and tilt, although it ...
3
votes
1answer
487 views

How to call ServoBlaster from C#/Mono?

I have successfully installed ServoBlaster, and it runs quite well from the terminal with the command echo p1-22=250 > /dev/servoblaster just like the documentation says. However, when I try ...
3
votes
1answer
1k views

Servo jumps on raspberry pi boot

I have just started using a servo to drive the front steering of a remote control car frame which i cannibalised. The steering works fine if i start it up and tune it however when i shut down the ...
2
votes
1answer
2k views

Getting axis values from joystick from jstest into C program

I am wondering if there is a way to get the axis position values from a joystick to feed into a C program. I can run the command jstest /dev/input/js0 and it will display live feedback of current ...
0
votes
1answer
2k views

Control servo with raspberry pi

I have the following servo I would like to make a small self balancing robot with it. I am having trouble with figuring out how to control it with PWM using pulses to decide what position to move it ...
2
votes
0answers
1k views

Controlling a Servo motor [closed]

I am having trouble running a servo motor with raspberry pi Here is what I have done so far , I have gotten a servo motor (http://goo.gl/67AsF), I have powered it with a 5 volt power source from a ...
1
vote
1answer
3k views

How to use a key listener?

Ok, at the moment I am working on adding motors to a lego tank that I have. I have one servo in the front to steer and another motor in the rear that will make it go forwards and backwards. i have ...
5
votes
2answers
636 views

How could I use a RasPi to control keg flow?

I'm in the middle of a basement retrofit and have a refrigerator that I'm hoping to convert to a kegerator. Before I go to town drilling and such, I was wondering if there was a way I could use a ...
23
votes
8answers
20k views

How can I control an RC servo?

I'd like to control a small RC servo (5 V, 500 mA) from the GPIO pins via Python. Hardware What are the required electrical connections? Can I connect multiple servos to the Raspberry ...