firmware/general/package/gpio-motors
Signor Pellegrino 9ddac38fea
[no ci] Update Readme with GPIO motors configuration examples
Added basic example for configuring GPIO motors and included additional device configurations.
2025-08-28 17:21:11 +03:00
..
src [no ci] Package: serialize gpio-motors on run axis (#1872) 2025-08-28 17:12:05 +03:00
Config.in Update gpio-motors (#1744) 2025-03-13 22:24:10 +03:00
Readme.md [no ci] Update Readme with GPIO motors configuration examples 2025-08-28 17:21:11 +03:00
gpio-motors.mk Consolidate motor packages - create gpio-motors (#1739) 2025-03-08 15:20:05 +03:00

Readme.md

Introduction

This package is created and intended for unification and use in all firmware and on various processors where the method of connecting motors via GPIO is used.

Configuring known devices

Basic Example

fw_setenv gpio_motors 'H1 H2 H3 H4 V1 V2 V3 V4'

First, the GPIOs responsible for Horizontal rotation are added, and next then the GPIOs responsible for Vertical rotation are added, a total of 8 characters.

GK7205V200 (unknown model)

fw_setenv gpio_motors '52 53 56 57 69 70 59 58'

GM8136, Faleemi

fw_setenv gpio_motors '51 52 53 54 55 28 29 30'

HI3516CV200, FDT

fw_setenv gpio_motors '60 61 37 38 54 55 56 57'

SSC337DE, Foscam

fw_setenv gpio_motors '1 2 12 13 62 63 64 65'

SSC30KD, CMCC DS-YTJ5101

fw_setenv gpio_motors '111 112 113 114 59 60 8 9'

T31, Jooan Q3R-U

fw_setenv gpio_motors 53 52 54 14 17

This type of device has only 4 GPIOs intended for controlling motors at one time and 1 additional GPIO for switching the Horizontal/Vertical mode. It is on this device that temporary incorrect operation of the camera's diagonal movement is possible.

Using the utility

gpio-motors <pan steps> <tilt steps> <delay (ms)>
gpio-motors 20 0 30
gpio-motors -20 0 30
#
gpio-motors 0 20 30
gpio-motors 0 -20 30
#
gpio-motors 20 10 30
gpio-motors -20 10 30

More info