Romania
Asked — Edited

Ez-Robot And Zumo Robot

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


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

United Kingdom
#17  

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.

United Kingdom
#18  

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

Set(D15, Off)
Set(D16, On)
Set(D17, Off)
Set(D18, On)

For Reverse

Set(D15, On)
PWM(D16,90)
Set(D17, On)
PWM(D18,90)

For Stop

Set(D15, Off)
Set(D16, Off)
Set(D17, Off)
Set(D18, Off)

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

Set(D15, Off)
Set(D16, On)
Set(D17, Off)
Set(D18, Off)

and Right

Set(D15, Off)
Set(D16, Off)
Set(D17, Off)
Set(D18, On)

Left & right might need adjusting depending on connections.

Let me know what happens.

United Kingdom
#19  

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

Set(D15, On)
Set(D16, Off)
Set(D17, On)
Set(D18, Off)

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.

#20  

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.

#21  

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 !

United Kingdom
#22  

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.

#23  

i don`t have a pencil , here is a print screen with what i have :

User-inserted image

United Kingdom
#24  

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.

User-inserted image

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.