Shop OBEX P1 Docs P2 Docs Learn Events
a quick question — Parallax Forums

a quick question

invad8erinvad8er Posts: 14
edited 2009-05-28 03:20 in Robotics
i have been trying to modify the beo bot code to work with a duel h bridge with no success



the code i was had used to base off of is below

Comments

  • invad8erinvad8er Posts: 14
    edited 2009-05-27 01:02
    also the servos don't have the PCB
  • FranklinFranklin Posts: 4,747
    edited 2009-05-27 02:36
    Somebody said...
    also the servos don't have the PCB
    What is the model number of the "servo"?
    Servos don't work with H bridges, motors do.
    Could you use the attachment manager to attach the actual code that does not work.
    The code you included is not designed for an H bridge.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • invad8erinvad8er Posts: 14
    edited 2009-05-27 02:49
    technically there geared motors
    www.solarbotics.com/products/gm4/
    link to something like the motor


    i know the code is not ment for an H bridge

    i was asking how to modify the code to work with an H bridge
    that was the base code that i had started from
  • sylvie369sylvie369 Posts: 1,622
    edited 2009-05-27 11:09
    I may be wrong, but I think you're doomed from the start here.

    H bridges are simply circuits that provide voltage across a motor or other load.
    Servos require pulses of different widths to set their positions (see all of those "PULSOUT" commands in the servo control code that you attached). An H bridge doesn't output pulses.

    What are you trying to accomplish? Are you simply wanting to learn about H bridges? Or are you replacing the continuous rotation servos with a pair of DC motors? If the latter, you should be able to drive them by connecting the H bridge outputs across the motor terminals, then setting the H bridge's enable pin high, and setting one of the inputs high should turn the motor one way, and setting the other one high should turn it the other way. Remember to set the bridge inputs low again after using them: if they're both high, nothing happens.

    Post Edited (sylvie369) : 5/27/2009 11:16:07 AM GMT
  • invad8erinvad8er Posts: 14
    edited 2009-05-27 12:16
    Somebody said...
    Or are you replacing the continuous rotation servos with a pair of DC motors
    that would be it
    i would be replacing the servos with dc motors
  • Mike GreenMike Green Posts: 23,101
    edited 2009-05-27 17:02
    The "Roaming with the BoeBot" code puts all of the wheel movement control in subroutines called Forward_Pulse, Turn_Right, Turn_Left, and Back_Up. Once you get your H-bridge working, you just need to substitute the equivalent H-bridge routines for the existing servo routines. The comments in the program describe what these routines do in terms of movement. How you accomplish that with the DC motors and H-bridges will depend on the specifics of what you build.
  • FranklinFranklin Posts: 4,747
    edited 2009-05-27 19:22
    Somebody said...
    i was asking how to modify the code to work with an H bridge
    that was the base code that i had started from
    What is the H bridge you are using or could you attach a schematic for it? They don't all work the same.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • invad8erinvad8er Posts: 14
    edited 2009-05-27 20:48
    closest circuit diagram i could find
    560 x 382 - 21K
  • UghaUgha Posts: 543
    edited 2009-05-28 00:17
    What is the brand and model of the H-bridge?
  • invad8erinvad8er Posts: 14
    edited 2009-05-28 00:50
    i don't think there is a model or brand for the h-bridge
    i had made the h-brige
  • FranklinFranklin Posts: 4,747
    edited 2009-05-28 03:20
    Get the PDFs from the parallax site on industrial control it might help There are several good instruction PDFs there along with the Nuts and Volts articles on the Parallax products. You can test your H bridge with jumper wires until you understand what you need to do to make it work and then write code to do the same thing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.