
sereandrei
Romania
Asked
— Edited
Hy all,
I am Andrew from Romania , i have a ez-robot platform and a Zumo Robot from Polulu. The Zumo robot came with a H-bridge - DRV8835.
I dont know how to set it up. I know how to connect the motors, but i dont know how to set it up in ARC . Excuse my english. h-bridge from Polulu
Looks like you need a custom movement panel, I'm on my phone right now bit when I get to a pc ill throw some instructions your way.
Right then, on a computer so it'll make it easier
The best thing is to start a new project file for this, you can always merge it with your main project once you have sorted out the code needed.
Assuming you kept the set up of D15 -> BIN2 D16 -> BIN1 D17 -> AIN2 D18 -> AIN1
In a blank project add the Custom Movement Panel (Control - Scripting)
For Forward use the code
For Reverse
For Stop
Try that first, if it works for reverse then I'll do left & right so they spin one side one way and the other side the other. If you are happy with how it is then you can use
Left
and Right
Left & right might need adjusting depending on connections.
Let me know what happens.
Just looking over the truthtable again,
For forward of one motor you should have In1 High In2 Low
For reverse it should be In1 Low In2 High
Which is how the H-Bridge Movement Panel works as far as I'm aware...
If the above doesn't work for reverse, try
Otherwise, you could add 2 Digital (Set Digital) controls, one for AIN1 and one for AIN2, see what happens with both off, one on one off, the other on the other off, and both on.
Thanks Rich , i will try running the script when i arrive home. Thanks for all the support now i finally understand how the ez-b works.
Hy again,
On the custom Movement Panel i am not able to set multiple parameters like you said. For example for FW: i can only set one pin D17, on.
How can i set multiple comands on one comand?
Thanks !
There's an icon, looks like a pencil, on the right of the command line field, click on it and it opens the script editor.
i don`t have a pencil , here is a print screen with what i have :
What version of ARC have you got? I thought it was always there but there may have been a version where it wasn't.
Download the latest version (today's version) and it should have the pencil... although I know it is in the previous version too.
If not, then add a script, throw in the commands as mentioned and in the command box for the Movement Panel use ControlCommand("Script", ScriptStart) where "script" is replaced for the script name.