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 supports both WiFi and the WT32-ETH01 ESP32 Ethernet board
The code provides a minimal Visca implementation for the functions supported by the bracket
- Camera movement, Pan / Tilt, commands are implemented
- programable presets are implemented
- Zoom, Focus, Iris change and On/Off commands are not implemented
- 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. Baud rate is set through configuration.

