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

0
votes
1answer
24 views

How to turn off / let float a servo attached to GPIO

I'm driving servos attached to GPIO, powered from external PSU and using PIGPIO Library through node.js - everything works just fine but I don't know how to completely "shut down" the servos - once ...
0
votes
1answer
38 views

Controlling servo SPEED with either pi-blaster or pigpio

Ultimately I want to be able to control up to 8 servos using node.js - I'm able to control the servos using either pi-blaster or pigpio, but how do I control their speed with which they move?
0
votes
1answer
20 views

Can I use a DHT22 sensor with the servo hat installed on my RPi-3?

the title pretty much says it all... My son an I are doing some robotics experimenting with the RPi-2 and RPi-3, we are using the Servo Hat to control several servos on them. We would like to ...
0
votes
0answers
14 views

Motor not moving as input given by PI [duplicate]

I have connected motor to RasPi on Pin0(Actual PIN 11) to control motor as command given to motor using Raspi using WiringPi but when I give input from 0 to 5 it doesnr move BUT When I give input 5 it ...
1
vote
1answer
73 views

Servo motor using wiring Pi problems

I am looking for solution for something wrong happen in my programme i have configuration for control RC motor over RasPi using Wiring Pi here is code #include<stdio.h> ...
1
vote
2answers
136 views

Controlling a common RC car

I need to test my computer vision stack written in C++ on a mobile robot and I need to control the robot from a Linux ARM board (which can be a Raspberry Pi). Since the specialized wheeled robot ...
0
votes
2answers
41 views

Raspberry Pi- Arduino Serially driven servo problem

I have been lately working on a ball tracker robot using image processing and I have interfaced Arduino and Raspi via USB. While the servo.write() function works perfectly when i program the Arduino ...
0
votes
1answer
49 views

Why do I need to connect servos to the ground of the battery and the ground of the RPi?

I'm trying to use two servos simultaneously and I've connected both servos to my battery pack which gives 6V (the servos require 6v). If I ground the servo only to the battery and I only use one of ...
2
votes
0answers
66 views

How to connect a servo feedback potentiometer?

I've taken apart an old RC car and have been trying to get my Raspberry Pi to run the car. At this point, I'm able to control the rear drive motor. The motor is connected to a L298N H-Bridge module. ...
1
vote
1answer
24 views

Adding a servo to existing project with two motors

Currently I have this setup running. I would like to add my old robbe servo to this setup. There are many tutorials for a servo setup, however, I do not have enough knowledge to combine the schemas ...
3
votes
3answers
69 views

What components are required for connecting servo motor to PI?

I'm planning to integrate a servo motor with a raspberry PI to press a switch button and found this post very helpful : PWM Control on Raspberry PI I'm considering this motor VicTsing Mini SG90 9g ...
0
votes
0answers
21 views

motor control using Windows Desktop Through rasPi

I am totally new for RPI and just started to learn about it I want to achieve is that I have my desktop with visual studio 2013 and I want to control 3 motors via RPI So it’s like: Win(visual studio ...
0
votes
2answers
87 views

Two servos connected causes shaking

I have two servos which I want to control from my RPi. My problem is that the servos start shaking if I use them both. Both servos are connected to the +5V pin and to the ground of the Pi. So I have ...
0
votes
1answer
37 views

Why a resistance between signal and GPIO - External power source

I'm trying to power my servo from an external power source and control it with my Pi and I've found following circuit: http://razzpisampler.oreilly.com/images/rpck_1001.png Why is there a resistance ...
0
votes
0answers
26 views

Servo problem with arduino connected to Raspi

I have an arduino that's serially communicating via the USB from the raspi and getting powered as well. I'm connecting a servo that is powered by a 7805 regulator from a 9v battery and the signal ...
0
votes
1answer
71 views

Adafruit servo hat connections

I cannot solder the hat to the raspberry like suggested in the manual because the pins are alreade blocked by a proto-shield. However, I connected the SCL and SDA pins to the board and used an ...
1
vote
1answer
73 views

Having issues controlling a servo from pi-blaster

I'm trying to learn more about making electronics making stuff. Right now I'm just trying to get a servo to move so I can go on to bigger things. I have a Pi B+ running Rasbian and an HS-311 servo ...
1
vote
0answers
23 views

How to make servos not jitter without extra hardware [duplicate]

To control a servo, I'm using this. To summarize it: you use code like this: while True: GPIO.output(pin, GPIO.HIGH) time.sleep(0.0015) GPIO.output(pin, GPIO.LOW) time.sleep(0.0185) ...
0
votes
0answers
71 views

Connecting more elements to Raspberry pi servo hat

I have bought this rpi servo hat to control some servos. But I'm wondering if I still can add elements like leds or like a movement sensor to the GPIO. At all examples I can see that the GPIO is ...
2
votes
0answers
25 views

Getting current servo angle with GPIO

Without using Occidentalis (which might not even work that way), is there any way to get the current angle of a servo? I know it has a potentiometer, I just have no idea how to go about getting that ...
2
votes
3answers
110 views

Connect two devices to the same GPIO pin

Let's say I want to control two servos from my Raspberry PI but I want to give them the exact same movements. Could I connect them to the same GPIO port, so they can use the same signal? If not, what ...
0
votes
0answers
72 views

Servoblaster Servo Rotation 360 Degrees Help

I am working on a project and using a servo with servoblaster. I am trying to make the servo be able to rotate 360 degrees. Hardware wise, I already removed the stopping gear and changed the value ...
1
vote
0answers
114 views

Connect a servo to explorer hat

trying to get a servo controller from my raspberry pi with a piminori explorer hat and servoblaster. When I use one of the GPIO port which connect to the LEDs and touch with the yellow control wire of ...
1
vote
1answer
112 views

Advanced servo control

I just bought a small robot arm (The MeArm). I can control my servos, but not as I want. Later I want to control the MeArm with my Wii remote. About the script I thought about a counter or ...
1
vote
1answer
132 views

RPi powering camera with pan/tilt bracket

I'm pretty new to electronics and wanted to build a camera with pan/tilt setup on my RPi. I would be using brackets like these: https://www.sparkfun.com/products/10335 And perhaps servos like these: ...
1
vote
1answer
378 views

Questions about wiring raspberry, l298n, SG90 and HC-SR04

I've finished testing and mounting my hc-sr04 and sg90 and now i have to connect everything, but have doubts and questions. Here are the diagrams that show what I am thinking to do: This one shows how ...
1
vote
2answers
165 views

Programming servo - What to use?

So I just decided to start a small side project using the RPi to control 1 or 2 servos. At first, I thought this would just mean plugging the GPIO pins of the servo to the GPIO pins on the RPi, and ...
4
votes
1answer
843 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
123 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
66 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 ...
1
vote
2answers
531 views

Max number of RC motors controlled by Raspberry PI

I have already searched the web, there are posts and articles showing how to control a servo motor or dc motor using raspberry pi. my question is what is maximum number of motors i can control using ...
2
votes
1answer
628 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 ...
2
votes
1answer
3k 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
2k 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
573 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) ...
1
vote
0answers
251 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
180 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
100 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
2k 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 ...
5
votes
3answers
486 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 ...
7
votes
2answers
392 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
1answer
233 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
2k 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
220 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 ...
1
vote
1answer
1k 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
1k 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
895 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 ...
2
votes
1answer
3k 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
94 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
883 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 ...