h-bridge-dc-motor

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

Drives a DC motor through H-Bridge IC such as L293 or L298.
h-bridge-dc-motor
@/h-bridge-dc-motor
Drives a DC motor through H-Bridge IC such as L293 or L298.
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.
UPDpulse
Triggers new write
h-bridge-dc-motor
DIRDIRPWMPWMSPDSPDUPDUPDDONEDONEERRERR
ERRpulse
Fires if write failed
DONEpulse
Fires when writing is done