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
0
votes
2answers
64 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
172 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?
2
votes
0answers
1k 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
98 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
1k 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 ...
1
vote
1answer
1k views

pigpio servo control

I'm having a hard time finding the way to move multiple servo in c. I tried to use pigpio but every code that I tested failed (didn't moved any servo) I tried using python and it worked perfectly, ...
1
vote
0answers
348 views

Combination of ServoBlaster and wiringPi won't work

I would like to control a servo and a dc motor. I want to control the dc motor's speed by using pwm with a frequency >= 1000 Hz. The servo on the other hand expects a pwm frequency of only 50 Hz. So ...
0
votes
1answer
722 views

How to control servo cam pan/tilt using bash and servoblaster?

Hello everybody, I'm trying to make a script bash to move a cam with servoblaster. when I strike a lettre (i,o,l,p) I would like increment or decrement a variable, to move the camera degree by degree ...
0
votes
1answer
84 views

Simple circuit to check the data flow [duplicate]

This question is a follow up for this question. I have a classic servo motor (Vin, PWM, Ground), and a short program to work with it. The code is: import RPi.GPIO as GPIO import time GPIO.setmode(...
3
votes
1answer
259 views

PWM Servo - Check availability

I'm writing a program which requires Servo's basic movement. Here's the code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) pwm = GPIO.PWM(18, 100) pwm.start(5) ...
0
votes
1answer
1k 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
2k 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
97 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 ...
1
vote
1answer
630 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> #include<netinet/in.h&...
2
votes
2answers
2k 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
337 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
574 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
496 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
199 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
740 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 ...
1
vote
2answers
2k 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
399 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
1answer
404 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 ...
2
votes
1answer
450 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
38 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
300 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
442 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
2k 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 ...
1
vote
0answers
831 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
713 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
667 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
1k 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 ...
2
votes
3answers
907 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 ...
5
votes
1answer
5k 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 to ...
1
vote
1answer
305 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
515 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
3k 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
2k 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 file)...
2
votes
2answers
7k 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) wiringpi....
3
votes
1answer
14k 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
2k 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
647 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
495 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
205 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
11k 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
1k 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
2k 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
487 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 ...
2
votes
1answer
8k 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
779 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 ...