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

HB-25 Motor Controller Code

Ln ZarLn Zar Posts: 2
edited 2009-06-03 00:43 in General Discussion
· Can anyone give some help to me please!

·I am a new to programming and was wondering If anyone could give me a small sample of code to study on the HB-25 motor controller.
The test sample that Parallax has on thier website is of no use to me! I tried to change the values in the sample code, but then it doesn't work.
I am trying find some code that will allow a ping sensor to control 2 HB-25's like if they were sevos if it possible.

·All or any help! greatly appreciated.
·Thank's
·Ln Zar

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-06-02 03:03
    All you need is servo code. For the BS2, that would be something like:

    pulsout hb25pin, 900
    



    It's a relatively simple process. It might help if you mention the uC that you're using.
  • $WMc%$WMc% Posts: 1,884
    edited 2009-06-02 16:56
    Ln Zar

    You stated that you are a newbie. My advice is to add some more info on Your project(s) when posting in these forums.

    Things like what Micro controller Your using
    The sample code Your modifying
    What You want the out come to be?
    Use the Attachment Manager to upload these files with Your posts.

    Take a look at SRLM's Avatar, the first thing You see is a PING sensor,next is a rubber track drive.If You look just behind the drive sprocket theirs a Servo motor. What better place to get info for what your after is there?

    I was once a newbie,just trying to help.


    __________$WMc%_______

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············································ BoogerWoods, FL. USA
  • Ln ZarLn Zar Posts: 2
    edited 2009-06-03 00:43
    I Thank both! SRLM and $WMc% for their replys,help, and advice.

    Ln Zar
Sign In or Register to comment.