bitsy-ai / rpi-object-tracking

Object tracking tutorial using TensorFlow / TensorFlow Lite, Raspberry Pi, Pi Camera, and a Pimoroni Pan-Tilt Hat.
https://medium.com/@grepLeigh/real-time-object-tracking-with-tensorflow-raspberry-pi-and-pan-tilt-hat-2aeaef47e134
MIT License
183 stars 70 forks source link

Add SBUS support #59

Open GlidLov opened 3 years ago

GlidLov commented 3 years ago

Pls add SBUS support, which is is the standard for driving many industrial pan-tilt gimbals and drone's flight controllers and also (newer) servos. SBUS is a serial digital protocol which can drive up to 16 servos with a single wire. One of the pins (maybe serial port) of the raspberry pi can be used as SBUS output, so you can get rid of the pimoroni servo hat. Also PWM support would be nice, since i saw some RPi projects which output PWM servo signal directly from GPIO pins, so also this option lets you to get rid of the pimoroni hat. Either ways, you make the project up to date, since i think outputting servo signal in I2C is nonsense

careyer commented 3 years ago

Sidenote: From anyother project i know that generating an SBUS Signal with the RPi is a very non-trivial task due to the very specific an non standard Baudrate (100 000 bauds) and the very precise timing needed. You cannot use the dedicated PWN out on the Pi for this and need to implement that in software. Here the very preceise timing needed comes into play: this is a real asspain on RPi. Whilst this is no problem in a microcontroller (teensy, esp or arduino) it is an almost impossible task on RPi.