Machinekit Documentation
HAL Component — HBRIDGEV2
INSTANTIABLE COMPONENTS — General
All instantiable components can be loaded in two manners
Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)
NAME
hbridgev2 — generate driving signals for 2 PWM generators to drive an H-Bridge
SYNOPSIS
hbridgev2
USAGE SYNOPSIS
loadrt hbridgev2
OR
newinst hbridgev2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
Together with 2 PWM’s, this comp can be used to drive a DC motor through an H-bridge. If the H-bridge needs a PWM signal at full speed (e.g. for charge pumps), limit the output value by setting maxout. See also: http://en.wikipedia.org/wiki/H_bridge .
Two output pins, up and down. For positive inputs, the PWM/PDM driving signal appears on up, while down is low. For negative inputs, the driving signal on down, while up is low. Suitable for driving the two sides of an H-bridge to generate a bipolar output.
FUNCTIONS
hbridgev2.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
LICENCE
GPL v2