Community Question

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.
Rich
Commented December 2014
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.
Rich
Commented December 2014
You kno what, for the sake of 2 minutes to make it, here's a screenshot

User-inserted image
Ellis
Commented December 2014
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.
Ellis
Commented December 2014
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.
Rich
Commented December 2014
Something similar to the script I made for Gwen's B9's movement will work. Have a read of this topic and the project I posted in there.

While it's written for the sabertooth you can easily change the SendSerial() commands for Servo() commands.
Question
AvatarEllis
Asked on Saturday, November 29, 2014