HB-25 object
CJ
Posts: 470
Here is a rough HB-25 object I put together tonight, the pulses are a good width according to my bs2.
It has selectable single/dual, manual pulses/auto-refresh modes
runs my cont. rotation servo just fine
comments and corrections welcome
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
It has selectable single/dual, manual pulses/auto-refresh modes
runs my cont. rotation servo just fine
comments and corrections welcome
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Comments
thanks for the initiative toward this object and help. I will give this a shot today and over the w/e.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
I hooked up my EMaxx to the HB25 and ran your test code - w/·two modifcations. 1) changed the Dual (1) to Single (0), changed the ::SetMotors() duration params to both 1700.
What I'm seeing is that the motor runs for less than a sec and then stops. The HB25 is reporting Fault right after it runs the test app.
Here's how I hooked up the pins on HB25:
· 1. Left Jumper there (to indicate Mode 1)
· 2. Servo cable is hooked up to the WRB. However, "R" is NOT CONNECTED per datasheet
I scoped it, looks like I am seeing the pulseout going to the out pin (see attached).
I did not set the motors' polarity reverse. I have attached a snapshot of the robot.
What am I missing. Your help is greatly appreciated.
Thanks again
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Do you want me to try a different wiring? Can you please recommend?
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
the series would only be a problem if you were exceeding the max voltage for the controller
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Am I understanding your reco correctly in #2
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
your number two is a direct short on the hb25's output and guarranteed to blow your fuse!
I recommend you delete the attachment to prevent someone from accidentally using it
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Is it not these 2 params for each of the 2 motors? How do you have it wired? If I were to connect the 2 motors parallely, how would this method behave. Sorry, I'm lost
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
Thanks a lot for your guidance and Timely HELP!!
I owe you one!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
*goes back to documenting the code for official upload*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
I had couple of other ?s.
1. In your test routine, you're calling :ulse_motors in a repeat block - this works w/o any problems. However, it was my understandng that one would not need to re-send pulses to hb-25 in a loop as it keeps the state till you change the config again and send your new pulse?
2. In your ::Config method, the auto vs manual refresh, by setting this param to Auto (1), the motors don;t seem to rotate anymore. What is the real purpose of the auto.
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
2. launching the cog is manual right now. the refresh cog is separate from the configuration call, typically you configure something before setting values in it, though I could easily alter it to set center values and then launch the cog in the config routine, that could throw someone for a loop if they transition from manual to auto mid-program with motors already running(Why'd that motor stop, the light is still green?)
programming notes for later:
auto launch cog on config, with center values if no values already set
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
·· Both of the schematics you posted show incorrect connections for the motors.· The M1 terminal should be connected to one side of the motor and the M2 to the other.· In your second schematic you are essentially shorting out the outputs, which will cause a fault.· One other quick note on your screen capture of the pulses…If you move the trigger up slightly it will capture the pulses correctly instead of them scrolling by on the display.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
On a side note, it would help to describe the wiring btwn te hb25 and the motors w/ a picture in the user manual for hb-25. I am sure there are other newbies like myself who might make a similar mistake. A picture says a 1000 words IMHO.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
·· I will see what I can do to make the documentation more clear on the connections.· I originally thought you were following the article in SERVO magazine which describes this exact setup on the E-TREX R/C Truck that appears in your photos.· Looking at CJ’s SPIN file I originally thought he had the same connections in the ASCII schematic.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I was going both directions. Was not very clear which wiring one is valid or not. Or if either of the wirings were legit. I was proved wrong of course.
CJ, did not include the wiring diagram in his spin file till after he determined it migt be useful to help support newbies like me - which happened in is his last posted spin file.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://fstop.crosscity.com/
http://icar.crosscity.com/
·
the current code uses just 90 longs
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.