I want to use a Raspberry Pi to pan a camera mounted on a servo wirelessly from ~100 feet away. What are some good servos and transceivers for this? To clarify, there should be no physical connection between the RasPi and servo. Do I need an additional RasPi on the servo end?
3 Answers
No matter what, you will have to have a device physically sending a pulse width modulated signal to the servo. It doesn't necessarily have to be a raspberry pi, and honestly you probably shouldn't use one in this case. Raspberry Pi's do not have a hardware implementation of PWM. Software PWM is unreliable because of the precise timing needed for the motor.
I would recommend learning some Arduino as well in this case. You can still have a RPi talking wirelessly via Radio Packet Communication (i.e. XBee, Bluetooth, 802.11, etc.) to the Arduino. It will just take a little extra learning if you're not familiar with C coding and setting them up.
If you do want to go the double RPi route. Look into using these for easy motor control: Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi - Mini Kit
For a good explanation of software PWM and what can go wrong, watch this: https://www.youtube.com/watch?v=ddlDgUymbxc
As TomSchober said, you will need to send a PWM signal to your servo either way. Tom has already covered Arduino, so I'll make two other suggestions:
Texas Instruments MSP430 with a CC2500 radio (or maybe a newer version of this). It has a 2.4GHz radio with an antenna that you can configure to work as you like. The downside is it is harder to program than, say, an Arduino, but it is definitely doable. The kit is also kind of expensive. If you max out the signal strength, the range is fairly good. If you are interested, I can edit this post with a link to my github code for the radio.
STM32 Discovery board. You would need to get a bluetooth or a Wi-Fi dongle for it, but it has hardware PWM. It is fairly easy to program - there is lots of application code available through STM, and it is quite inexpensive at about 12-20 dollars per board. You will also get a fairly capable ARM processor that you can use to do lots of fun stuff. The F3 variant that I linked comes with a build in accelerometer and gyro.
The only warning I would have is: make sure the servo can get sufficient current from whatever you use to power it. For example, connecting the servo power line of a high-torque servo directly to the STM32 power pins blows the power circuit of the board (cough cough) - it is not a particularly hard fix, but still. If your camera is heavy enough and the servo is torque-y enough, I would recommend a separate power supply for the servo.
Use rasp-pi, arduino ,servo and transceiver set (like nrf24l01 or XBee)
Wifi: 10-30m
Bluetooth: 10m
nrf24l01: 15m
XBee 1mW: 300ft