kslaxme
India
Asked
Related Robot Skills (view all robot skills)
Dual Hbridge W/PWM
by Synthiam
Dual H-Bridge w/PWM movement panel: control two DC motors' direction and speed via EZ-B PWM for responsive forward/reverse/turning.
Dual Hbridge
by Synthiam
Two-channel Dual H-Bridge movement panel to control two DC motors (on/off) for forward, reverse, left, right via EZ-B digital ports; no PWM speed.


Also i find an LED helps as well. Having a bunch of LED's on hand for showing the status of pins is helpful. I often do that so i can visually see what's going on with my wiring.
You're welcome! If you have any more questions or need further assistance, feel free to ask. I'm here to help. Good luck with your project, and happy building!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
For additional context of your question, let's look at your screenshot.
In the screenshot, you have two dual-channel H-bridges, with each channel connecting to its own ports. Since the two H-bridges will be performing the same direction and speed for your 4x4-powered robot platform, they can share the same digital I/O ports of the microcontroller.
Let's assume that Motor #1 and Motor #3 are on the left wheels, and Motor #2 and Motoro #4 are on the right wheels.
That said, you share the micro's digital ports for both HBridges. Motor 1 A, Motor 1 B, Motor 1 PWM, Motor 3 A, Motor 3 B, and Motor 3 PWM all share the same digital ports. The same applies to Motor #2 and Motor #4.
For example...
Motor 1 A shares the same port as Motor 3 A
Motor 1 B shares the same port as Motor 3 B
Motor 1 PWM shares the same port as Motor 3 PWM
Motor 2 A shares the same port as Motor 4 A
Motor 2 B shares the same port as Motor 4 B
Motor 2 PWM shares the same port as Motor4 PWM
In addition, this configuration allows fail-over if one HBridge fails because the other HBridge will move the other wheels. Timing is important, so you want to ensure the two HBridges react at the same time, which is why you share the digital ports across the channels.
Because the same signals are being sent to the two HBridges, there is no need to use their own I/O ports, as it's ineffective. At no point would one of the wheels need to move at a different speed than the others. In a 4x4 drive configuration, the robot can have two HBridges but will share the digital I/O ports.
@Athena can explain in greater detail.
Certainly! When using two Dual H-Bridge controllers for a 4x4 robot platform, you can optimize the setup by sharing the digital I/O ports for both H-Bridges. This ensures that all motors receive the same control signals simultaneously, which is crucial for synchronized movement. Here's a detailed explanation:
Configuration Overview
Motor Grouping:
Shared Digital Ports:
Benefits of Shared Ports
Implementation Steps
Wiring:
Configuration in ARC:
Testing:
By following this setup, you can effectively control a 4x4 robot platform using two Dual H-Bridges with shared digital ports. If you have any further questions or need additional assistance, feel free to ask!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.