Let’s say I have a remote like this below.
If I buy multiple linear servos like these and want to assign each to one button to push, what are the things I need to set it all up?
Here are what I can think of..
- separate power source (e.g. 5v / 12v)
- linear servo
- motor driver board?
If there are smarter solutions to push physical buttons with a raspberry pi, I would also like to know.
closed as off-topic by Milliways, joan, Seamus, Darth Vader♦ May 25 at 9:30
This question appears to be off-topic. The users who voted to close gave this specific reason:
- “This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center.” – Milliways, joan, Seamus, Darth Vader
what’s the goal? An remote control robotic tester or an RPI controlled device?
Regarding the first one you will need the servo to move things in physical world. Here https://tutorials-raspberrypi.com/raspberry-pi-servo-motor-control/ is the one of many tutorials.
For the second you can buy infrared receiver (to detect what does the remote control sends when you press desired key) and infrared transmitter to mimic the same data to target.
Push remote button to control liner servo using Rpi software
The answer is in two parts:
- How to use universal remote controller buttons to control Rpi.
- How to use Rpi python program to PWM control linear servo.
For the remote controller part using Rpi, I found the following instructable the best, with very detailed instructions. I have also included some remote controller and infra red emitter and receiver datasheets in the references below.
For the linear servo part, I only found the following tutorial good, except using Arduino.
I found the control method for standard servo and liner servo are more or less the same, using PWM, except with different width specs (standard servo 0.9~2.1mS, linear servo 0.4~2.4mS). Therefore the Rpi python PWM control functions for standard servos can be used without any modification, for linear servos, just changing the width parameters. The post below contains a complete listing of my fully debugged Rpi python PWM functions for controlling both standard servo and linear servos.
PCA9685 16 Channel PWM Driver
And in case you don’t have enough Rpi GPIO going around entertain all your linear servos, you can consider asking PCA9685 16 channel PWM driver for help.
My infrared remote controllers (AC, AirCon, Fan)
Universal Remote Controller
PCA9685 16 Channel PWM Driver Servo Control Forum Discussion
Not the answer you’re looking for? Browse other questions tagged servo dc-motor or ask your own question.