Shop OBEX P1 Docs P2 Docs Learn Events
HB-25 Code Questions — Parallax Forums

HB-25 Code Questions

al-spideral-spider Posts: 42
edited 2006-11-05 01:39 in Robotics
hello to alll!!

let see i'm useing the HB-25's and i'm not to sure about there codeing . i've tryed the example code for two motors bs-2 and thing seem to OK.
BUT?? How do i get them to reverse?? i would like to use tank steering w/ zig-bee rc control .
please can someone help me out with this am really afreid or burning something up .and i don't have the funds to replace thing right-away so i'm trying to go slow.
can someone post some workong codes that i can learn from to get me started. My bot project maybe to much for me but i'm game to give a good go.

al's dream bot!!

1. two dc mot's 75-100lbs payload

2. two Hb-25 controllers

3. zig-bee rc

4. ez-100 LCD Display

5. GPS Tracking navagation

6. sonor and I/R for object and edge detecting

7. umm SD/mp3

8. emic text to speech

9. CMUcam2+ cam tracking

10. wireless internet cam with video overlay

11. 5axis arm using stepper mot's

right now i'm starting out with the BS2px24 and BS2/40 but would love to move everyting over to the prop only waiting for the first of year for parallax to put everything together there's to much fragmation out there right now for me , so i'll just keep looking in from the outside for now. anyway that my dream bot project for now. hope i can pulll it all off.

i would like for this thing to take my trash cans to the road and return them twice a week??? hopeing!.

Post Edited By Moderator (Chris Savage (Parallax)) : 10/31/2006 3:50:40 PM GMT

Comments

  • Charlie JohnsonCharlie Johnson Posts: 147
    edited 2006-10-31 14:25
    al-spider,

    Think of the HB-25 as a continous rotation servo in its operation. If you supply the servo/HB-25 with a 1.5ms pulse using the PULSOUT command the servo/motor will be stopped. If you send a pulse of less than 1.5ms the servo/motor will rotate in one direction, and if the pulse is greater than 1.5ms the servo/motor will rotate in the other direction. If the motor on the HB-25 does not rotate in the direction you desire for the given pulse, just swap the M+ and M- connections on the HB-25

    Charlie
  • AImanAIman Posts: 531
    edited 2006-11-03 21:30
    Per the HB25's info you cannot use two motors in both directions. You can use one motor to go in both directions or you can use two motors in one direction.

    http://www.parallax.com/detail.asp?product_id=29144
    Modes: Single/Dual Motor Control

    http://www.parallax.com/html_pages/products/motorcontrol/motor_control.asp
    HB-25 Motor Controller
    #29144
    DC Motors 1 or 2 (in same dir.)
    6-16 V Up to 25 A continuous

    For motors and power goto the Darpa Grand Challenge forums and look up the vendors. One of them specializes in motors. A motor I am looking at has 100lb holding force. For power consider a golf cart battery, its more expensive but has a lot of life and is rechargable.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-03 22:15
    Well, that’s not necessarily true either…You can have two motors going different directions, but you would not have independent control of them with one HB-25.· Think of it this way…If you connect two motors to one HB-25 in the same polarity they will go the same direction as each other when commanded by the HB-25.· Now, if you reverse the leads on one motor, they will still go relatively the same speed but now in opposite directions.· This isn’t a limitation of the HB-25 or the motors.· If you connect any two motors to a single output on a controller you would get the same effect.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • al-spideral-spider Posts: 42
    edited 2006-11-04 04:49
    hello all:

    In the HB-25 example code is it always nessasery to start with a Initialization routine.

    look i found this on u_tube . this bot is almost what i'm trying to build except i was think of using one arm unit .
    can't read the lango so i don't know what all the capabilities are far as sensors go.
    http://www.robo3.com/robot/robot_r3.html
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-05 01:39
    Which part of the initialization routine are you asking about?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.