
NYP.Shank_95
India
Asked
— Edited
I have gone through the tutorials in the EZ-Robot C# SDK file. I am unable to find the coding to move the wheels. Can you please help me by giving me the codes?
This code will help you: Tutorial43-HBridge4Wire.zip
Hi DJ Sures. I have tried the file you provided. When I debugged it, only one wheel was working and it was going in one direction. I have changed the digital ports in the C# file and tried. Still the same. But in ARC, both wheels are working & moving in different directions. I have provided the ARC file. Can you please help me rectify my problem?
Thanks in advancce.FYPRevolutionRoli.EZB
I am sure that DJ sent you a chunk of code to show you how to make it move. It is up to you if you are using the SDK to write the code to make it work like you want it to.
DJ Sures, sorry I forgot to upload the file. I ve updated my 2nd last comment. Can u pls check. I have uploaded the file there.
Check to ensure the PWM is set on both pins
Also, here is the tutorial to verify that the hbridge wires are connected correctly: https://synthiam.com/Tutorials/Lesson/44?courseId=3
It may pay to become familiar with the L298n H-Bridge too, how it works, what each of the ports does etc.
I wrote a pretty detailed explanation and tutorial on the L298n H-Bridge a while back. It's simple to follow and should explain everything clearly, it also includes the truth tables to help you understand what causes each motor to move in certain ways.
Have a read of this topic
DJ Sures, Rich & cochran. I have tried many ways. I still get the same result. Only right wheel is working. But in ARC, both wheels move. Pls help?