ESP32/MicroPython code for controlling a Pan-Tilt bracket
This code implements a translator for using the SONY VISCA over IP protocol to control a Pelco-D Pan-Tilt bracket, such as one this one from AliExpress
The code provides a minimal Visca implementation for the functions supported by the bracket
- Camera movement, Pan / Tilt, commands are implemented
- Zoom, Focus, Iris change and On/Off commands are not implemented
- "Home" is implemented, but not programable presets
- There are stub implementations of VISCA INQUIRY commands, enough to provide compatibility with an AVKANS IP Joystick controller. It has not been tested with other joystick controllers
The code assumes an external RS485 adaptor module, such as this one, by default connected to IO17 on the ESP32.