This plugin extends the plugin controlls developed by Salandora and adds support for a simple and low cost 2 axis gimbal bracket. The plugin uses the web cam controls (added through the Octoprint-PanTilt plugin) located on the control tab.
This implementation uses an Arduino Nano as the controller for the gimbal. The Nano is controlled and powered through the USB port. This plugin has had very limited testing!!
First, the base Octoprint-PanTilt plugin needs to be installed from here:
https://github.com/Salandora/OctoPrint-PanTilt/archive/master.zip
Then install via the bundled Plugin Manager or manually using this URL:
https://github.com/c-devine/OctoPrint-PanTilt-Nano/archive/master.zip
The 2 axis servo gimbals can be found on ebay and other online locations. Arduino Nanos are also pretty easy to find.
3D Printed Part: C270 Camera Mount Block
The Firmware is located here: https://github.com/c-devine/OctoPrint-PanTilt-Nano-Firmware.
The plugin is configured though the Setting Dialog -> PanTilt-Nano screen. Select the Serial Port, and min max Us values -> Save.
Also, not sure if this is needed, but I updated the /boot/config.txt
max_usb_current=1
to increase power to the usb port.