Questions tagged [servo]

Programming questions related to controlling a servo motor through programming.

A servo is a hardware mechanism that moves with signal input. It uses negative feedback to control itself precisely.

297 questions
0
votes
1 answer

Access function and stop threading media and servo subprocess in python

I have been doing some searching in this subject and there doesn't seem to be a very clear answer to my question. I currently am working a project where the user clicks on a button and once he does I call a python function, reply(), the function…
Sam
  • 2,856
  • 3
  • 18
  • 29
0
votes
1 answer

Arduino servo and IR remote

I am trying to get a continuous (180 to 0 and back 0 to 180) movement from a servo when I press a button in remote and ONLY stop when I press the other button. So far, I have gotten it to move continuously, but then it doesn't stop when I press the…
theagleye
  • 9
  • 2
0
votes
1 answer

Raspberry Pi 3 + temperature sensor + servo motor

I have raspberry pi 3 and trying to create smart green house model. This model should open window if temperature is too hight. I am new writing codes in Python, found several examples: 1. for temperature sensor and 2. for servo motor to…
Dizner
  • 29
  • 4
0
votes
2 answers

Raspberry pi servo and ultrasonic sensors jitter

I would like to know if someone else experienced the same problem with their servo motor combined with ultrasonic sensors on a Raspberry Pi (I own a 3B). Essentially, I have mounted two ultrasonic sensors (HC-SR04) with 180° apart from each other on…
Jibreel
  • 11
  • 6
0
votes
2 answers

Nanpy Servo Control

*Nanpy allows for a Raspi to have an Arduino slave through python Right now I'm having extreme difficulty in using the nanpy Servo package, and I cant get it to run correctly. I'm using it to make a robot that is wirelessly controlled from a…
Ryan Louis
  • 11
  • 7
0
votes
0 answers

Arduino wireless servo code

I'm trying to make a contraption where you press a button on one board and it moves the servo either to 90 degrees or 180 degrees on the other board. If it's at 90 then it moves to 180 and vice versa. I'm not very knowledgeable when it comes to this…
ZenixNet
  • 33
  • 3
0
votes
0 answers

Servomotor doesn't run in node-red

This is the first time I program a Raspberry PI and the first time I'm using Python, JavaScript or Node-Red. I'm trying to lift a gate by operating a servomotor in Node-RED. Basically, what I'm doing is take a picture of a license plate with my pi…
Iulian Leon
  • 21
  • 1
  • 8
0
votes
1 answer

Servo Directional Control Using Two Button Inputs

I want a standard servo to rotate 180 degrees when button 1 is pressed and released. But I want the servo to rotate back to the initial position only when button 2 is being held down (& to stop rotating once button 2 is released). The arduino code…
0
votes
1 answer

Issue with Serial and Arduino Servo Library

today I tried to setup a servo motor running along with this sketch on Arduino. For some reason, when I add the setup lines for the servo, the software serial port doesn't receive data normally. I tried to change the software serial to the normal…
karl_m
  • 85
  • 9
0
votes
0 answers

Rpi2 Win10IoT refuses to set serial baud rate higher than 921600

I'm currently creating a C++ UWP app that will run on a Rpi2/3 controlling 18 AX12A servos for a robotspider project. The servos work on a baud rate of 1000000 as default and i would like to leave them like that. The Rpi2 allows everything up to…
0
votes
1 answer

RasPi + Arduino Master-Slave Servo issues (Nanpy)

For my final project in AP Comp Sci I'm making a robot using a Pi and an Arduino, I've gotten virtually everything working other than the Pi-Arduino interface. So I have my Arduino and Pi hooked up using nanpy, as instructed by this guide. I…
Ryan Louis
  • 11
  • 7
0
votes
1 answer

On and Off Button on Arduino

I'm back with another non-homework related question. I'm playing with an arduino with my brother, and we're trying to attach a button so that when its pressed, his sensor stays on and does what it has to do. When its pressed again it'll do nothing…
ZanesFUNNY
  • 21
  • 4
0
votes
2 answers

RPI Drive servo by PWM (wiringpi / C programming)

I trie to drive a servo with the Raspberry PI using the PWM on GPIO Pin 18 i wired the setup like you can see below. When i drive the servo i can do this without any problems the commands that i use you can see below. gpio -g mode 18 pwm …
sanderfcb95
  • 59
  • 1
  • 12
0
votes
2 answers

Using STM32L TIM PWM to control Servo Motor

So I'm trying to control a servo by PWM using STM32L1. below is the full code, no library needed. When I upload and run this code, the servo ticks several times instead of actually moving smoothly to the required positions 600(0*), 1100(50*),…
lightworks
  • 21
  • 1
  • 9
0
votes
0 answers

Arduino - Adafruit 16-channel board, how to properly control all channels with less delay?

I am trying to control a few (8 for now) servo motors using this 16-channel board. I am running to some issues about accuracy, for example, when moving a couple of motors do draw a diagonal line, because of the delay between each servo, each motor…
Bontempos
  • 77
  • 8