1. Hundreds of coffees, endless nights of debugging and coding, and countless feedback by our beta testers led to this new major release. SimTools 2.4 is probably the version with the most upgrades and improvements in a single release ever. Look at everything Dustin has included:
    SimTools 2.4 all features.
    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 Download Package Now!
  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 here. Do not following these rules will lead to permanent exclusion from this website: Read the forum rules.

DIY MOSFET H-Bridge Driver

Discussion in 'DIY peripherals' started by Sieben, Apr 5, 2019.

  1. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    42
    Location:
    indonesia
    Balance:
    358Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    maybe more easy just search bts7960 datasheet to identify all the pin and replace bts chip with regular mosfet...

    bandicam 2019-05-23 20-38-05-300.jpg
  2. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Not that actually. BTS is an IC inside also. Guess no so simple use with it. )
  3. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    42
    Location:
    indonesia
    Balance:
    358Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    yeah...but basicly bts chip is also regular mosfet, 2 bts chip similar to 4 regular mosfet, and the other componen in the board had fuction to handle the signal before mosfet...
  4. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    The point is that DIY is a working device. And promts, that to handle the big motor, just need good cooling, and several mosfets in parallel. Of course and better with a right driver set up also) Will see)
    Last edited: May 23, 2019
  5. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    42
    Location:
    indonesia
    Balance:
    358Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    yeah...but you need some IC that handle the pwm signal...
    you cant just use signal without processing before mosfet, if can, it not smooth as bts7960...and it for me, not worth the effort...
  6. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    ahoenksiluman,
    there plenty of other motor drivers, beside bts. It is a bit more advanced topic, then just matter of IC or no IC driver, by itself. As an example why arduino sends signal by it self, even though it is optocoupled with MD. Shall use stm? And etc. There is a guy that made with ir2110 gate driver and all N- channels mosfet. Also reports the work with 550 series motors, but burn with a big one) There is an instructibles with all the same schematics but with pwm dir operation and some extra thingies.
    A pic12f ic to make separation of a signal, to avoid shoot through conditions. 20 ms dead time between the signals, when even no both of them for that time are given. It is switched off. Shall that be used or not? Will that be suitible here. U know.
    Don't know 'bout the logic of the bts on this accounts, but with pwm +/- both rotations are enabled with that two +5 v wires on the bts. Must be all the same right? Or that's another story?)

    About that it is not smooth, I get that U don't get it right a bit. If that will be a matter as U described, some, not smooth pwm or kinda, it will be and with just mosfets itself. But that was very good indeed. But burned) The center on/off with opto operation, forced to another decisions to be checked.
    Don't worry, I regard this project in a quite a sane way ))) Any help on subject and prompts are quite welcome)
    Last edited: May 23, 2019
  7. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    When checked the stall current of a MY1025 with 12.5A power supply and 12V, that really gives more then 30A of SC. The check with small motor like of 540 series, proves it to be true. That goes no more then 8 amps of SC. So that can be the cause with a mess with this devises, build in light version) But can be good as is for, let's say, 550 motors. (1.4 on idle, and 10-12A of SC). Also should be checked)
    Last edited: May 24, 2019
  8. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Issue with on and off of the driver with optrons, is seems to be solved. And appeared to be simple.
    It was a wrong connection of the optrons input led to the ground of the whole system. Instead of connecting it back to arduino's GND only. Thus making isolation and arduino protection) And what's more over, lack of right connection, this just gives the linear voltage controll of the mosfet, without the pwm at all) :D:cool: That's why it all was so)
  9. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Also testing the PWM+DIR mode with relay and one MOSFET )

    Made the schematics.

    [​IMG]


    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    150 ms step test
    [​IMG]
  10. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
  11. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Encounter in EMC with PWM+Dir Mode a bug, with one of the soft locks, it makes an odd wrong DIR switch there. It must be one in the center only. So write to the EbolzMagy, he promised to look it up and improve. Hope he will make it. )
    Last edited: Jun 5, 2019
  12. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Ai-Wave 2016, some desktop effects on slight set ups. )

  13. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    :thumbs find out the config with aiwave 2016 to work. The "constant force" slider, should not be zeroed. And that's it.
    The relay driver works!:);):cool:
    • Like Like x 1
    Last edited: Jun 7, 2019
  14. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    And test run) It works great)

    • Like Like x 2
  15. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Some advice to those who use arduinos, conserning the aiwave. It requires some on/off from usb, or as it appeared to be true too, not to rush and leave it for some minutes, and it can operate as required. )
    Last edited: Jul 15, 2019
  16. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    SOLVED.
    The DD config with 540 dc motor was too fast. It works but if gonna make a drift with it, or a like, i.m. release the wheel out, the motor runs away. Made the gear ratio smth like 1:6, and here we go)))




    Gain 80%
    [​IMG]

    And 100%
    [​IMG]
    Last edited: Jun 15, 2019
  17. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    EMC 0.9. Wheelcheck 300 ms.
    Constant should be checked)
    [​IMG]


    Figured out that the ffb greatly depends on this slider. EMC is alright for all the other games, with this slider being active)
    • Like Like x 1
  18. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    The relay module is assembled in such a way.

    [​IMG] [​IMG] [​IMG]

    Test.
    [​IMG]

    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]


    Determination of the freewheeling diodes locations and connection. Just with ordinary 1N4007.

    [​IMG] [​IMG] [​IMG]


    And schematics for them.

    [​IMG]
  19. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino
    Advanced pwm+dir driver version is assembled. Got to test with MY1025.

    [​IMG]

    [​IMG]

    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    Capacitors.

    [​IMG]

    Capacitors ripple current.
    220uf50v x24 + 2200uf50v x2 + 3300uf63v x2
    19A

    220uf50v x24 + 2200uf50v x4
    16,5A

    Total
    35,5A


    Flyback diodes 30u60DN ~ 60A

    Mosfets.

    IRLB3034 x3pc. Total allowed power should comprise ~ 90 / 120A.
  20. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    164
    Balance:
    1,058Coins
    Ratings:
    +55 / 1 / -0
    My Motion Simulator:
    Arduino