help with motor controller
DakDuif
Posts: 8
Hello,
I am currently on·a project to control my miniature train.
I got the HB-25 Moto Controller (#29144)
Take a look at this:
So the left is the motor controller, middle is the javelin stamp. right one is the connection to the rails to make the train move.
Now my question is: should I connect them like this? :
Or am I all wrong on this one? :S
Also. with the information. it only shows for Basic Stamp 1 and 2, but nothing for javelin. Are there any codes that already exist which I can use or do i have to programm it myself? :O
regards
Dave
Post Edited (DakDuif) : 1/16/2007 12:46:40 PM GMT
I am currently on·a project to control my miniature train.
I got the HB-25 Moto Controller (#29144)
Take a look at this:
So the left is the motor controller, middle is the javelin stamp. right one is the connection to the rails to make the train move.
Now my question is: should I connect them like this? :
Or am I all wrong on this one? :S
Also. with the information. it only shows for Basic Stamp 1 and 2, but nothing for javelin. Are there any codes that already exist which I can use or do i have to programm it myself? :O
regards
Dave
Post Edited (DakDuif) : 1/16/2007 12:46:40 PM GMT
Comments
The HB-25 accepts servo compatible pulses. You control it just like you would a servo. So any code for controlling servos should be compatible with the HB-25. Two things that can be different on the HB-25 but may or may not matter in your Javelin code…The HB-25 does not require refreshing every 20mS to maintain its speed/direction (unless you set it up that way). Also, it is possible to control two HB-25 Modules from one I/O line using Mode 2 control but your code would need to send two pulses 1mS apart at roughly 20mS intervals. As for your connection you can connect the HB-25 to the board's servo connectors just fine.· Just be sure the polarity of the connector on the HB-25 end is correct.· It almost looks backward from the drawing.· Just be sure.· I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Is there any code template for this on the web?
·(in Javelin please)
Post Edited (DakDuif) : 1/29/2007 10:20:25 AM GMT
Like Chris said, the HB25 does not need refreshing, so you could send
just one pulse instead of using PWM.
(this· only supports mode 1, single motor connected)
regards peter