1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Can i use this hbridge for 2DOF Desk-racer?

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Martin.Berger, May 26, 2014.

  1. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
  2. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    A might but might require a change to the code, mmmmm 2 possible codes to check -
    http://www.xsimulator.net/community...otor-driver-and-windows-utilities.4957/unread
    And think @RacingMat code could be a possibility.

    Taken from their Manual:
     Rotate forward: EN = 1, RPWM = PWM, LPWM = 1, DIS = float (Here ‘1’means High, i.e.5V.)
     Rotate reverse: EN = 1, RPWM = 1, LPWM = PWM, DIS = float
     Stop and brake: EN = 1, RPWM = 1, LPWM = 1, DIS = float
     Stop but not brake: EN = 0, RPWM = 1, LPWM = 1, DIS = float (Here ‘0’means High, i.e.0V.)
     Prohibit the use: EN = X, RPWM = X, LPWM = X, DIS = 1 (Here ‘X’ means any status)

    So maybe a slight customizing of code this could be used.
    Like the 100amp peak possible could be a strong driver, looks a lot like the old tronic H bridge, lol.
  3. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi eaorobbie,
    thanks.
    Can you please explain to me what does EN and dis mean
    how can i handle 2 pwm Pins?

    THX,
    martin
  4. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    EN is the engage pin, if this is high - 1 - (5v) the H bridge is active and will supply power to motors when set low - 0 - (GND) the power is disrupted and the motors wont run.
    Reading the manual Dis , Im not sure as no explanation given the only thing it says it to connect nothing to it, as in no wire connection.

    Ok to go forwards we need to set:
    EN = high(5v)
    RPWM = PWM , this will range from 5v - 0v depending on the speed required, this pulses.
    LPWM = PWM set to high 255 so it gives a steady 5v's
    DIS = no wire connected to it.

    Now to reverse we just set the RPWM = PWM set to high and on LPWM sets the speed with a PWM signal.

    This is just a theory needs to be tested.
    Another way tried is to wire a card in between like this :


    DSC00060.png

    This would be my preferred method.
    • Useful Useful x 1
  5. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi
    Thanks for help. That cleared Dome things. So i have to find out how to connect to arduino. At the Moment i did Not get the board. So i Test it when i got it.
    Thanks
  6. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I agree with you, it could be easily modified the way you described to Martin.Berger :thumbs

    Martin this will be your first exercise to learn Arduino ;)
  7. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi Racing mat
    I ll try
    By the Way Thanks for your Tutorial.
  8. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks! I hope to see your sim shaking you soon! :cheers
    • Friendly Friendly x 1
  9. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    At the moment i m just learning and searching parts.
    I think it will last till autumn i can build something. ;)
  10. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,952Coins
    Ratings:
    +1,016 / 10 / -1
    A couple of alternate ways of using these H-Bridges with existing Arduino controlles:

    1. Use the H-Bridge EN pin as the PWM input and use the PWM inputs as the Direction pins. Sounds odd but this drives the H-Bridge in drive/coast mode which is generally fine for motion sims as they are always in motion.

    Arduino DIR1 -> H-Bridge LPWM
    Arduino DIR2 -> H-Bridge RPWM
    Arduino PWM -> H-Bridge EN

    2. Use the SMC3 Arduino software in MODE2 - its already configured for this type of H-Bridge (Refer to the doco for connection setup details) This will drive te H-Bridge in drive/brake mode.
    • Winner Winner x 1
  11. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    when an ard and h-brdige and wipers do this, then I will be impressed

    JRKS and big worm gear motors rated at 160 rpm at shaft