How To Add This Control To Your Project
Step #1) Load the most recent release of EZ-Builder
Step #2) Press the Project tab from the top menu bar of EZ-Builder
Step #3) Press Add Control from the button ribbon bar of EZ-Builder
Step #4) Choose the
Step #5) Press the
icon to add the control to your project
An H-Bridge is an electronic circuit that enables a voltage to be applied across a load in either direction and is triggered by a much lower voltage from a micro controller, such as the EZ-B v4 or IoTiny. These circuits are often used in robotics and other applications to allow DC motors to run forwards and backwards from a micro controller. H bridges are available as integrated circuits, or can be built from discrete components.
Because a micro controller (EZ-B v4 or IoTiny) is a small electronic computer, the I/O ports do not provide enough current to directly power a motor. Instead, the micro controller will send signals to the H-Bridge and the H-Bridge will power the motor. Think of the H-Bridge as a worker and the micro controller is the boss.
An HBridge (such as the EZ-Robot 2.5 Amp HBRidge) can be connected to the EZ-B Robot Controller by 4 digital signal wires. 2 wires per motor are used. This Movement Panel operates like the other Movement Panels and can be controlled by scripting or other controls that interact with it. Movement Panels are controls which move your robot. The Movement Panel directions can be modified by other controls, such as camera, voice, script, joystick and radar controls
EZ-Builder allows multiple physical EZ-B Robot Controllers to be connected at once. The Movement Controls only operate on the first board (Board 0)
*Note: This Control does not provide PWM speed. If you wish to control speed of your robot, use the PWM Hbridge Control.
1) Connect L298 VCC to your battery supply positive or the EZ-B power pin on D0 (red)
2) Connect L298 GND to your battery supply negative or the EZ-B power pin on D0 (black)
3) Connect L298 IN1 to EZ-B Pin D0
4) Connect L298 IN2 to EZ-B Pin D1
5) Connect L298 IN3 to EZ-B Pin D2
6) Connect L298 IN4 to EZ-B Pin D3
7) Connect L298 OUT1 to Motor 1
8) Connect L298 OUT2 to Motor 2
*Note: Because the above diagram is powering the HBridge off VCC (direct from battery), the switch will need to be Pressed Down. Although, please note that some HBridge versions reverse the direction of the switch and it will operate better UP. You will know which way the switch needs to be because the motors will not turn if the switch is incorrect position.