h-bridge-2dir

gweimer/h-bridge/h-bridge-2dir

h-bridge with 2 direction control pins for a single motor. Set 2nd pin to NOT of 1st pin. Invert for negative SPD.
h-bridge-2dir
@/h-bridge-2dir
h-bridge with 2 direction control pins for a single motor. Set 2nd pin to NOT of 1st pin. Invert for negative SPD.
DIRport
Board port to which the direction pin of the H-Bridge is connected.
!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-2dir
DIR
!DIR
PWM
SPD
ACT
DONE
DONEpulse
Fires when writing is done
To use the node in your project you should have the gweimer/h-bridge library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.