@Athena I have connected 4x4 motors with 2 Hbridge with PWM, but the motor which is connected in D9,D10,D11 is not working. why?. i normally coded in arduino ide and its worked fine but in synthiam is not working why and how, my EZB is Arudino MEGA
I don't see D9 listed in your summery in the picture you attached. Did you just omit that connection? Take a look and confirm your connection points to the ports.
You may need to familiarize yourself with how an HBridge works and how to wire it.
In addition, you were instructed in another post about how to use two HBridges with one movement panel. Your summary shows you are not following the instructions. Please read the responses to your questions.
Please click on that link and read the manual for the Arduino Mega to understand the port mapping. As of this writing, this is a copy and paste from the manual you would benefit from reading. It is essential to view the link yourself to ensure the most up-to-date mapping. Reading the manuals will help with your questions.
ADC Ports
ARC has the ability to select up to 8 ADC ports per EZB. The MEGA has 8 ADC capable ports mapped to the ARC ADC ports starting from ADC0 to ADC7...
(ARC Left, Arduino Right)
ADC0 = A0,
ADC1 = A1,
ADC2 = A2,
ADC3 = A3,
ADC4 = A4,
ADC5 = A5,
ADC6 = A6,
ADC7 = A7
PWM Ports
ARC has the ability to select up to 24 PWM ports per EZB. The MEGA has 13 PWM capable ports mapped to the ARC PWM ports starting from D0 to D12...
(ARC Left, Arduino Right)
D0 = 2,
D1 = 3,
D2 = 4,
D3 = 5,
D4 = 6,
D5 = 7,
D6 = 8,
D7 = 9,
D8 = 10,
D9 = 13,
D10 = 44,
D11 = 45,
D12 = 46
Digital Ports
ARC has the ability to select up to 24 Digital ports per EZB. Digital ports also operate as bit-bang serial/uart (transmit only). The MEGA has 21 Digital capable ports mapped to the ARC Digital ports starting from D0 to D20...
(ARC Left, Arduino Right)
D0 = 2,
D1 = 3,
D2 = 4,
D3 = 5,
D4 = 6,
D5 = 7,
D6 = 8,
D7 = 9,
D8 = 10,
D9 = 11,
D10 = 12,
D11 = 13,
D12 = 44,
D13 = 45,
D14 = 46,
D15 = 62,
D16 = 63,
D17 = 64,
D18 = 65,
D19 = 66,
D20 = 67
Servo Ports
ARC has the ability to select up to 24 servo ports per EZB. The MEGA has 24 servo capable ports mapped to the ARCservo ports starting from D0 to D23...
(ARC Left, Arduino Right)
D0 = 22,
D1 = 23,
D2 = 24,
D3 = 25,
D4 = 26,
D5 = 27,
D6 = 28,
D7 = 29,
D8 = 30,
D9 = 31,
D10 = 32,
D11 = 33,
D12 = 34,
D13 = 35,
D14 = 36,
D15 = 37,
D16 = 38,
D17 = 39,
D18 = 40,
D19 = 41,
D20 = 42,
D21 = 43,
D22 = 68,
D23 = 69,
It seems like you're having trouble with the Dual HBridge w/PWM Movement Panel in ARC, specifically with the motors connected to D9, D10, and D11 on your Arduino Mega. Let's go through a few steps to troubleshoot and resolve the issue:
Check Wiring Connections:
Ensure that the wiring from the Arduino Mega to the HBridge is correct. Double-check that the connections match the ports specified in the ARC project settings.
For the Dual HBridge w/PWM, you should have connections for the motor control signals and PWM signals. Make sure these are correctly connected to the corresponding pins on the Arduino Mega.
Verify Port Mapping:
The Arduino Mega has specific port mappings in ARC. According to the manual, the PWM ports are mapped as follows:
Ensure that you are using the correct ports for PWM signals. For example, if you are using D9, D10, and D11, make sure they are mapped to the correct pins on the Arduino Mega.
In ARC, go to the settings of the Dual HBridge w/PWM skill and ensure that the ports are configured correctly. The ports in ARC should match the physical connections on the Arduino Mega.
Test Individual Motors:
Test each motor individually by connecting them to known working ports. This will help determine if the issue is with the motor, the HBridge, or the port configuration.
Check Power Supply:
Ensure that the HBridge and motors are receiving adequate power. Insufficient power can cause motors to not function correctly.
Review the HBridge Manual:
Refer to the HBridge Movement Panel Manual for detailed instructions on wiring and configuration.
Arduino Mega Manual:
Review the Arduino Mega Manual for port mapping and additional configuration details.
If you've gone through these steps and the issue persists, please let me know, and we can explore further troubleshooting options. Additionally, if you have any specific error messages or behaviors, please share them for more targeted assistance.
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.
@Athena i properly read the manual of mega and mapped with the corresponding pin numbers still its not working that is my issue. D9 = 11,
D10 = 12,
D11 = 13,
Using the Set Digital robot skill, an oscilloscope or meter is used to check the ports. Understanding how the microcontrollers work and how they map will be beneficial.
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.
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:
Left Wheels: Motor #1 and Motor #3
Right Wheels: Motor #2 and Motor #4
Shared Digital Ports:
Left Motors (Motor #1 and Motor #3):
Motor A: Share the same digital port for both motors.
Motor B: Share the same digital port for both motors.
PWM: Share the same PWM port for both motors.
Right Motors (Motor #2 and Motor #4):
Motor A: Share the same digital port for both motors.
Motor B: Share the same digital port for both motors.
PWM: Share the same PWM port for both motors.
Benefits of Shared Ports
Synchronization: Ensures that both motors on each side of the robot move in unison, providing smooth and coordinated movement.
Efficiency: Reduces the number of digital ports used, simplifying the wiring and configuration.
Failover: If one H-Bridge fails, the other can still drive the wheels on its side, maintaining some level of movement.
Implementation Steps
Wiring:
Connect the digital ports for Motor A, Motor B, and PWM of Motor #1 and Motor #3 to the same pins on the microcontroller.
Do the same for Motor #2 and Motor #4.
Configuration in ARC:
Use the Dual H-Bridge w/PWM skill in ARC to configure the shared ports.
Ensure that the PWM sliders are set to the desired speed for both H-Bridges.
Testing:
Test the setup by moving the robot forward, backward, left, and right to ensure all motors respond correctly.
Use LEDs or an oscilloscope to verify the signals on the shared ports if needed.
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.
@Athena I have connected 4x4 motors with 2 Hbridge with PWM, but the motor which is connected in D9,D10,D11 is not working. why?. i normally coded in arduino ide and its worked fine but in synthiam is not working why and how, my EZB is Arudino MEGA
I don't see D9 listed in your summery in the picture you attached. Did you just omit that connection? Take a look and confirm your connection points to the ports.
We have moved your question into a new thread to give it the attention it deserves. You had posted it in an unrelated thread regarding the Arduino Mega. This conversation is about the HBridge movement panel. Please follow the instructions in the manual for the HBridge Movement Panel with PWM. You can find it here: https://synthiam.com/Support/Skills/Movement-Panels/Dual-HBridge-w-PWM?id=16067
You may need to familiarize yourself with how an HBridge works and how to wire it.
In addition, you were instructed in another post about how to use two HBridges with one movement panel. Your summary shows you are not following the instructions. Please read the responses to your questions.
In addition, you need to follow the manual for the Arduino Mega to understand the port mapping: https://synthiam.com/Support/Hardware/Arduino-Due-Mega
Please click on that link and read the manual for the Arduino Mega to understand the port mapping. As of this writing, this is a copy and paste from the manual you would benefit from reading. It is essential to view the link yourself to ensure the most up-to-date mapping. Reading the manuals will help with your questions.
It seems like you're having trouble with the Dual HBridge w/PWM Movement Panel in ARC, specifically with the motors connected to D9, D10, and D11 on your Arduino Mega. Let's go through a few steps to troubleshoot and resolve the issue:
Check Wiring Connections:
Verify Port Mapping:
Configure ARC Settings:
Test Individual Motors:
Check Power Supply:
Review the HBridge Manual:
Arduino Mega Manual:
If you've gone through these steps and the issue persists, please let me know, and we can explore further troubleshooting options. Additionally, if you have any specific error messages or behaviors, please share them for more targeted assistance.
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.
@Athena i properly read the manual of mega and mapped with the corresponding pin numbers still its not working that is my issue. D9 = 11, D10 = 12, D11 = 13,
Using the Set Digital robot skill, an oscilloscope or meter is used to check the ports. Understanding how the microcontrollers work and how they map will be beneficial.
Thanks for your support.
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.