MikroElektronika H-Bridge 1 Click Element
The H-bridge 1 click element is used to control the channels of a dual H-bridge. This element is for using the MikroElektronika H-Bridge Click board.
The H-bridge 1 click is a sensor element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
Properties
The following properties can be changed for the H-bridge 1 click element:
Name
The name of the element.
GPIO Driver Instance
The GPIO driver instance number to use.
Input 1A Pin
The GPIO pin that controls input 1A.
Input 1B Pin
The GPIO pin that controls input 1B.
Input 2A Pin
The GPIO pin that controls input 2A.
Input 2B Pin
The GPIO pin that controls input 2B.
Mode Truth Table
The mode truth table refers to the control inputs of a single H-bridge channel, which can be set to low (L), high (H), or high impedance (HI-Z).
Mode | I1A/I2A | I1B/I2B | 1A/2A | 1B/2B |
---|---|---|---|---|
0 | H | L | H | L |
1 | L | H | L | H |
2 | H | H | HI-Z | HI-Z |
3 | L | L | L | L |
Triggers
The following triggers are available to execute events from within the H-bridge 1 click element:
Triggered
Execute an event when the source element connected to the H-bridge 1 click triggers.
Set Input 1 Mode 0
Execute an event when input 1 is set to mode 0.
Set Input 1 Mode 1
Execute an event when input 1 is set to mode 1.
Set Input 1 Mode 2
Execute an event when input 1 is set to mode 2.
Set Input 1 Mode 3
Execute an event when input 1 is set to mode 3.
Set Input 2 Mode 0
Execute an event when input 2 is set to mode 0.
Set Input 2 Mode 1
Execute an event when input 2 is set to mode 1.
Set Input 2 Mode 2
Execute an event when input 2 is set to mode 2.
Set Input 2 Mode 3
Execute an event when input 2 is set to mode 3.
Abilities
The following abilities are available for the H-bridge 1 click element when its source element triggers:
Trigger
Trigger the element(s) that follow the H-bridge 1 click element.
Set Input 1 Mode 0
Set input 1 to mode 0. Refer to the truth table above.
Set Input 1 Mode 1
Set input 1 to mode 1. Refer to the truth table above.
Set Input 1 Mode 2
Set input 1 to mode 2. Refer to the truth table above.
Set Input 1 Mode 3
Set input 1 to mode 3. Refer to the truth table above.
Set Input 2 Mode 0
Set input 2 to mode 0. Refer to the truth table above.
Set Input 2 Mode 1
Set input 2 to mode 1. Refer to the truth table above.
Set Input 2 Mode 2
Set input 2 to mode 2. Refer to the truth table above.
Set Input 2 Mode 3
Set input 2 to mode 3. Refer to the truth table above.