diff --git a/README.md b/README.md index e579e1a..abd55af 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ OpenIPC Wiki - [HomeKit integration](en/homekit-integration.md) - [Automatic night mode without light sensor](en/auto-night-mode-without-light-sensor.md) - [ZeroTier setup](en/zerotier.md) +- [Motor control](en/motors.md) ### FPV diff --git a/en/motors.md b/en/motors.md new file mode 100644 index 0000000..8a77c04 --- /dev/null +++ b/en/motors.md @@ -0,0 +1,27 @@ +# Motors and PTZ + +OpenIPC has support for motors on many devices through a variety of means. Many of these can be found in the [motors](https://github.com/OpenIPC/motors) repo. + +## Types of control + +### Vendor binary/module + +Some motors can be controlled through a binary or kernel module. [ingenic-motor](https://github.com/OpenIPC/motors/tree/master/ingenic-motor) is an example of this. Hex messages are sent to the module that in turn move the motor. [xm-kmotor](https://github.com/OpenIPC/motors/tree/master/xm-kmotor) does this as well. View their READMEs for more information on configuration. + +### UART + +Some motors can be controlled through a UART TTY device. See [xm-uart.](https://github.com/OpenIPC/motors/blob/master/xm-uart/) + +### GPIO + +This is a simple and direct method to control a stepper motor by setting off GPIOs to a component on the board that assists in driving the motor. As long as you can probe your board and determine which GPIOs are connected to something like a ULN2803, there's a good chance you'll be able to control it. + +#### ULN2003 Pinout +![wfdsad](../images/uln2803-pinout.png) + +### 24BYJ48 Stepper Motor Diagram +![dsafsda](../images/24byj48-diagram.png) + +## Configuring ONVIF + +With [onvif_simple_server](https://github.com/roleoroleo/onvif_simple_server) you can easily gain access to PTZ controls through ONVIF. Functionality will vary depending on the motor control package you use. See the server's example config in it's repo for all of the available commands. \ No newline at end of file diff --git a/images/24byj48-diagram.png b/images/24byj48-diagram.png new file mode 100644 index 0000000..ed6bf14 Binary files /dev/null and b/images/24byj48-diagram.png differ diff --git a/images/uln2803-pinout.png b/images/uln2803-pinout.png new file mode 100644 index 0000000..137803b Binary files /dev/null and b/images/uln2803-pinout.png differ