control-servo
¶
glasgow run control-servo¶
Control RC/hobby servomotors using the common pulse width modulation protocol where a pulse of 1000 µs corresponds to a minimum position and a pulse of 2000 µs corresponds to a maximum position. The frequency of the updates is not strictly constrained by the protocol, and is fixed at 50 Hz in this applet.
This protocol is also used in common brushless motor ESC (electronic speed control) modules. For unidirectional ESCs, a pulse of 1000 µs corresponds to 0 rpm and a pulse of 2000 µs to maximum rpm. For bidirectional ESCs, a pulse of 1000 us corresponds to maximum rpm backwards, and 2000 µs to maximum rpm forwards.
usage: glasgow run control-servo [-h] [-V SPEC] [--out PIN]
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --out <pin>¶
bind the applet I/O line ‘out’ to PIN (default: A0)