Asked — Edited

Using Ezb Hbridge To Control Rc Truck

I am looking to control a basic RC Truck using an HBridge from EZ-Robot. The RC truck is quite simple in that it has one motor for forward and reverse. It has another motor for left and right steering. With the regular RC Controller there is no PWM to control the speed going forward or reverse. My goal is to use the EZB controller along with a mobile app to control the RC Truck and add headlights, the EZB camera in the truck bed, etc.

My thought was to use the HBridge PWM Movement Panel along with the joystick pads in the mobile interface builder to control the truck motors to simulate the original RC Controller. I need to control the motors separately. It looks as if the EZB HBridge PWM Movement Panel is set up to control a left and right motor to give you the forward, reverse, left and right functions. This won't work in my case because there is one motor for forward/reverse and another for left/right.

I wanted to control the motors separately and not in conjunction with each and I have looked at the EZB HBridge PWM Movement Panel and the Joystick Pad in the Mobile Interface Builder to see if I could make them work like I want with no success.

Is there a way to do what I want with the existing Movement Panel and joystick pads and if not can the movement panel/joystick pad controls be modified to accommodate cases where one might want to control the motors individually? Ideally I would like to have one joystick in the mobile interface builder control the forward/reverse function with PWM and another joystick pad to control the left/right functions with no PWM required. Doesn't look like the existing HBridge PWM Movement Panel and Mobile Interface Builder in their current forms won't work. This is my view and I certainly could be wrong. Any thoughts on this matter would be much appreciated.

I think an HBridge PWM Movement Panel/Mobile Interface Joysticks that allow the motors connected the HBridge Hardware to be controlled individually would be useful not only for my application but also other applications. Again, any thoughts on this are much appreciated and other solutions are also welcome. :)


ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

#17  

@DJ, you might want to let your support desk know you added that button. I got a response from Andres on the zendesk ticket that was automatically generated, and he said to watch the forums for announcements. I thought the whole point of signing up for notification is that I could miss an announcement or forum discussion and still be notified. Maybe that wasn't your intent....

Alan

#18  

PJ_Dtechy,

I came up with a Movement Panel for the truck and it works well. However yours looks better than mine and has more direction buttons. I was wondering if I could use your Movement Panel graphics and put my code in for the button scripts? Also interested in what graphics program you used to make the Movement Panel graphics and how you imported it into ARC software? Thanks for your help ! :)

#19  

No special software was used. just a random jpeg pictures downloaded from google, upload them as a button image and special script to each button to make it do stuffs. Like forward right, or reverse left, simple forward, etc.

#20  

PJ_Dtechy,

Is it ok if I use your buttons for the movement panel. Also, in the icons library area, I saw an export button but not an import button to get images into ARC. I'm probably missing something obvious. Maybe the export button means to export from say google into ARC? I checked in forum and didn't see any direct information on this subject. I've got the script part down just fine. Thanks again ! :)

#22  

Hi DJ,

When you select change can you import an image into ARC from a source on the internet like PJ was mentioning? In other words change is the same as import? Thanks much ! Rick:)

#23  

You are more than welcome to utilize whatever aspect of of my project you need to be successful. After all we are one big happy family:).

#24  

Hi PJ_Dtechy,

Thanks much ! I will investigate how to get images into ARC and give it a try. I will try and click on the change button to see if it comes up with a box to enter url to download images. Haven't had time yet to try this out. Thanks again for your help ! Rick