Asked — Edited
Resolved Resolved by Rich!

Parallax Hb 250 Motor Controller And Ez-B V4 Microcontroller

I am trying to run two Parallax HB 25 motor controllers and Parallax Motor Mount and Wheel Kit 28962 with an EZ-B v4 micro-controller. The HB 25 data sheet says that the motor controller needs a standard pwm servo signal to operate. I am using a regulated 7.2 vdc for EZ-B and 12 vdc for motors. When I hook it up to a standard servo it works and when I hook it up to the motor controllers it doesn't. I have tried everything I can think of to get it EZ-Bo work to no avail. Help

Also the Motor Mount and Wheel Kit comes with a encoder to establish position. Can the EZ-B use this information. If yes what do I need to do.


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
#9  

Darn it @Jeremie beat me to it while I was driving to work!..

However, I'd like to know how many motor controllers you are using and how they have been wired up. Can you post a photo or a quick schematic?

#10  

Good news. I got the motor controller to respond by first connecting one motor control to a modified servo and running it then switching it back to Parallax motor control and turning it on. I only have to do this for one port. I learned this trick from Parallax customer service. Once I do that both motors started working. I then adjusted the controls to 80, 140 and 110 and everything worked great except the motors are running backwards for forward and forward for backwards. I still have to figure that out. Can you give me any advice.

I still need to add the initiation script to keep from having to run a standard servo first to initiate the motor controls. Where to I put the EZ-Script you wrote so it will work before I turn the motors on?

Also I tried to use the vertical control but it doesn't look anything like the one in the tutorial. It does not have a slide like the one in the video. I do not know how to make it work.

I am including a picture for you to look at my robot.

Rich and Jeremie you were both great help.

User-inserted image

I would have written back yesterday but the community server was down.

Thanks again. Ellis

United Kingdom
#11  

Either swap the motor polarity around or swap the numbers around to correct the backward/forward issue.

It sounds like you are watching very old videos, the slide was replaced over a year ago. It's still a slide of sorts, click and hold where the number is in the control and move the mouse. Here are a couple of examples I made a while back...

#12  

Thanks Rich. This should answer all my questions except where to write the motor initiation script.

Again Thanks.

United Kingdom
#13  

On the Connection control (top left as default) there is a small gear icon, click it. Then you should have some options such as 0 connection established cmd: with an empty box to the right of it and to the right of that a small pencil icon. Click the pencil icon to the right of 0 Connection Established cmd: and you should get a script dialogue window pop up.

This is where you put the init code.

Once written click save (bottom left), then save again in the previous window, then save your project.

If you need a screenshot let me know.

United Kingdom
#14  

You kno what, for the sake of 2 minutes to make it, here's a screenshot

User-inserted image

#15  

Thanks a million. This answers all my present question. You have been more than patient with me. I now have a robot that can move around. It is great to have people like you that take the time to help fellow roboteer.

#16  

Just wanted to let every one know that the initialization script that Jeremie wrote for the HB-25 Parallax motor control worked great at initializing the controllers. The code needs to be changed only for the port or ports you are using and stop port number. The HB-25 seem to stop at 110 not 90.

You will also need to set the parameters in the modified servo panel for the motors. Trial and error seems to work. If it is two high or low the motors will not run.

Here is where to put the initialization code:

On the Connection control (top left as default) there is a small gear icon, click it. Then you should have some options such as 0 connection established cmd: with an empty box to the right of it and to the right of that a small pencil icon. Click the pencil icon to the right of 0 Connection Established cmd: and you should get a script dialogue window pop up.

Non of this came from me but from working with the guys helping in this post. Thanks again the motors are working great.

One thing I would like to do is ramp the motors if possible so they are smoother at start up. They seem very jerky because they go from stop to fast immediately. Any suggestions? I still want to use them with the joystick and modified motor control panel.