Asked — Edited
Resolved Resolved by Rich!

H-Bridge Speed Control

Evening All

I'm working with H-Bridges and am having trouble finding the controls to regulate speed. I've followed the tutorial which directs me to use the PWM slider to regulate speed however I can't locate this control. When I open the Control tab this is all I see:

User-inserted image

Any suggestions? My board interface is different from the one in the tutorial.

Thanks,

Daniel


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

PRO
Synthiam
#9  

No, he needs two separate pwm or the robot won't turn if using the hbridge speed control.:)

PRO
Synthiam
#10  

The HBridge Control and the HBridge PWM Speed Control are similar but different. The HBridge control simply turns on and of the bits to control movement direction. The HBridge with PWM will use the PWM to control variable direction steering. When you combine the HBRidge PWM with Joystick, you can use the analog joystick to adjust fine tune steering.

Here's an example:)

United Kingdom
#11  

@Mulberry have a look at the L298n H-bridge tutorial I wrote. There are some photos of the L298n and these terminals (they have jumpers across when you get it delivered).

My method uses one jumper to both PWM pins - this is an old photo done before the speed control was in ARC. While it will work with one on PWM and both speeds set the same it doesn't work correctly so 2 jumpers are required as DJ has said, or use a different control (one without speed or even the custom panel and script it for a single speed control)

The tutorial I linked to should also explain to you how a H-Bridge works etc. and give you a better understanding, one you understand how things work they are much easier to work with:)

#12  

Ah! My H bridge doesn't have the enable pins shown in the video (around 5:07) for the PWM wire. I thought perhaps the new bridge design or software update resolved that step. Below is an image of my bridge. So clearly I don't have an enable connection. Question is where do I connect them?

Daniel

User-inserted image

United Kingdom
#13  

I'm on my phone so can't see very well but it looks like you do, the row of pins behind the in1 to in4 have jumpers between 5v and ena and enb. Remove the jumpers and pwm the ena and enb pins.

#14  

Excellent Rich. There they are. You have been a tremendous help with all the questions I've asked.

Thank you!

Daniel:D

United Kingdom
#15  

OK now I am home so I can see it better.

You have PWM, they have jumpers connected to 5V which need removing. These are indicated by the yellow box I have added to the photo below.

Then take 2 Digital ports and connect the signal to the ENa and ENb pins (the outer 2 pins, they do have labels on the board) as indicated by the 2 white lines I have shown in the photo below.

User-inserted image

Edit: Posted that at the same time you replied:) But the info is there for anyone else who may need it.

#16  

Yep, Rich is right. Take the little jumper clips off. Those are the pins you attach to for PWM. You have two sets here. One for each motor connected to the H-bridge. Like Rich mentioned earlier; you can jumper across the two sides on the H-bridge, use one enable wire back to one EZB digital port and have one PWM slider control in ARC for both motors and each should move at the same speed and at the same time. However, you also can leave out the jumper mentioned above between the two sides and then run a separate enable wire for each (motor) back to EZB to different digital ports. You then need to install two controls, (a PWM slider) for each side (motor) in ARC and set it to the proper ports. This will give you individual speed and enable control for each motor. Remember, you need to either move the slider up off of Zero in the slider or set the speed in a script to get the motor to start moving. Mine wont start till I get it above 15 or so but all motors are different.

What are these motors going to move on your robot? Is this by any chance a full sized B9? ;)

Have fun, Dave Schulpius