h-bridge-dc-motor

xod/common-hardware/h-bridge-dc-motor

Drives a DC motor through H-Bridge IC such as L293 or L298. Possible errors: — Invalid port
h-bridge-dc-motor
@/h-bridge-dc-motor
Drives a DC motor through H-Bridge IC such as L293 or L298. Possible errors: — Invalid port
DIRport
Board port to which the direction pin of the H-Bridge is connected.
PWMport
Board port to which the PWM (aka Enable) pin of the H-Bridge is connected. The port should be capable of producting PWM signal.
SPDnumber
Desired speed of the motor in [-1.0, 1.0] range. Negative values denote clockwise rotation, zero denotes full stop, positive values denote counterclockwise direction.
ACTboolean
Makes h-bridge reacts on incoming value change while `ACT` is true.
h-bridge-dc-motor
DIR
PWM
SPD
ACT
DONE
DONEpulse
Fires when writing is done