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

Tutorial "HPMC" High Power Motor controller H-bridge using N-MOSFETs

Discussion in 'Motor actuators and drivers' started by speedy, Dec 21, 2013.

  1. carsten

    carsten New Member

    Joined:
    Dec 26, 2014
    Messages:
    9
    Balance:
    510Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino, Motion platform, 6DOF
    Hi Speedy,

    first of all, thank you for your reply and suggestions. (I am impressed about your patience with me... as I said, absolute newbie when it comes to electronics...THANXS!!)

    What I did yesterday evening:

    - Have NOT changed any of the capacitors. (coz I still have to pass by the shop to get new ones)

    I did however write a code for the Arduino (I am using a Nano right now for testing purposes) giving me a PWM on PIN D3 (i think that is default for the 980 HZ operations) that I can control.

    What I have noticed is that when I use values of about 200, I get pulsation..(On, off, on, off, on, off). The lower I go down with the PWM cycle the longer the on pulses are vs. the off pulses. At 30 I get constant movement with no off pulses. Changing motor rotation works just fine. (same picture in both directions)

    I have checked by bridging the PTC that it is not limiting. As for the length of the green wires, that is for testing only. The final build will be a bit different. (explanation below)

    I will retry the experiment and update you once I have the new capacitors as you suggested. I have read in one of the threads that you need "fast" capacitors. Best to use Tantalum. Any view on this from your side? (In any case, I have ordered various versions...)

    Thaks for your help so far...

    (Below Picture shows the motor running (with Pulses))

    IMG_0561.JPG


    SIDE Comment:

    I am using (or at this stage trying to use) your HPMC to control my 4 ROV thruster motors. They are 450 W, 24 DC geared motors. On each side of the underwater ROV I have Power pods that house in each a transformer (440V to 24V / 5 V and rectifier) and I am planning to put two of your motor controller bottom board there. The beauty of the pods is that they have the bottom lid where you can fit all the Mosfets so they get nicely water cooled from the outside. These pods have a pressure rating of 300m, but I'm not planning to go down that deep. I need to have the whole thing running by mid next year so not much time left. :) IMG_0569.JPG

    Picture of the pressure Pod inside:
    IMG_0568.JPG
    • Like Like x 1
  2. carsten

    carsten New Member

    Joined:
    Dec 26, 2014
    Messages:
    9
    Balance:
    510Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino, Motion platform, 6DOF
    Hi Speedy,

    I have just changed the capacitors to 220 uF (25V) as you have suggested. Unfortunately still with the same result. still pulsating...any ideas from your side?
    Are there any test points on the board where I should be seeing what when??
    I have noticed that during the short motor off pulse, the second red (direction) LED goes on...
    IF you PM me your address in Egypt, I would happily send you the board for you to have a look at it via courir? (I dont even need it back, just an answer what I am doing wrong here...)I really do need a solution... All the commercially available boards will not fit my pressure pod...Any Idea is very much appreciated...

    Greetings Carsten
    • Useful Useful x 1
  3. carsten

    carsten New Member

    Joined:
    Dec 26, 2014
    Messages:
    9
    Balance:
    510Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino, Motion platform, 6DOF
    Hi Speedy,

    i have made some small progess by using a much bigger load. (a windshield wiper...i think that is what you used as well with a geared motor in your video). Whilst the problem is still around, it starts now much later... PWM 235. Somehow I have the feeling it has something to do with my bootstrap capacitors. I might have to revisit my calculation.... and maybe use the correct and final motor for what this is intended in the first place.

    Is it possible that the load has an impact on all of this?

    Have a good evening.

    Greetings
  4. carsten

    carsten New Member

    Joined:
    Dec 26, 2014
    Messages:
    9
    Balance:
    510Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino, Motion platform, 6DOF
    All,

    I got it working....YIPPIE!!!!

    Apparently after adding 100nF Ceramic capacitors in parallel to the bootstrap caps (in my case I used 220uF)...(and I have no clue what that does), it now works very nicely through the whole spectrum of PWM (Arduino standard 980 Hz on Pin D5). All except 255, but up to 254... Amazing. :)

    Now comes the hard part, making 6 of these and then they have to fit into the pressure pods.

    Ill post a pic when done.

    :)

    Greetings Carsten
    • Like Like x 3
    • Winner Winner x 1
    • Informative Informative x 1
  5. Eagletrike

    Eagletrike New Member SimAxe Beta Tester Gold Contributor

    Joined:
    Jun 4, 2015
    Messages:
    15
    Occupation:
    Let you know when I grow up
    Location:
    Central Western, New South Wales, Australia
    Balance:
    363Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, AC motor, Arduino, Motion platform, 4DOF
    Well done @carsten, I admire your perseverance in resolving the issues you were having with your build :thumbs. It has given me inspiration as I plan on building a few of these myself with probably less electronic knowledge than you posses. It does seem a bit daunting but hopefully a great learning experience and with great minds like @speedy behind the project I am looking forward to getting mine under way, just have to find the time as I have acquired most of the materials to start.
    • Like Like x 1
  6. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Congratulations @carsten ... Good job :thumbs
    Some of Golden silence always gives its rewards :cheers.
    Last edited: Oct 9, 2015
  7. yeniuser

    yeniuser Member

    Joined:
    Oct 30, 2011
    Messages:
    43
    Occupation:
    Teacher
    Location:
    Turkey
    Balance:
    313Coins
    Ratings:
    +4 / 0 / -0
    Is it possible to augment the resolution (tick) of the encoder?
  8. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    What Encoder ?
  9. denyszandonadi

    denyszandonadi New Member

    Joined:
    Sep 9, 2015
    Messages:
    4
    Balance:
    5Coins
    Ratings:
    +0 / 0 / -0
    Hi Speedy! First of all, great job! Its a excellent work!

    Do you have a eagle format? I would like to cnc this pcb.

    Thank you very much!
  10. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    As For easy sourcing a good components that works like a charm from the first time and furthermore making the copper disk ...
    I'm in the phase of making such thing to be just assembled and put it on ebay myself ... I'll put the link later :cheers .

    Regards ...
    • Like Like x 1
  11. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    @denyszandonadi ...That file was in the sprint layout format ...won't exported to eagle .
  12. Cvetan Cvetanov

    Cvetan Cvetanov Member

    Joined:
    May 30, 2015
    Messages:
    41
    Location:
    Teteven Bulgaria
    Balance:
    1,462Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    Hi i try this controler and everything work whith small motors but with powerful motor with about 30 amp and 3,9 khz pwm at 92% i got 2 diodes fried. I think . I look on the scope and pulses did not look ok. I tried to put some capacitors to filter but no.
  13. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    you mean like this
    Untitled.jpg
    30 Amp. is a small wiper that should run flawlessly with this design ...
    Can you attach some photos ?

    Attached Files:

    Last edited: Dec 6, 2015
  14. Cvetan Cvetanov

    Cvetan Cvetanov Member

    Joined:
    May 30, 2015
    Messages:
    41
    Location:
    Teteven Bulgaria
    Balance:
    1,462Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    Yes like this but negative spike is little bit longer. at he moment i dont have pics. Wiper motor is ok. I mean servomotor from car power steering its about 500 watt.
  15. Cvetan Cvetanov

    Cvetan Cvetanov Member

    Joined:
    May 30, 2015
    Messages:
    41
    Location:
    Teteven Bulgaria
    Balance:
    1,462Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    I forgot to mention that pwm is 31 khz.
  16. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Until you upload some photos of your build ... I guess you need to use the full 9 diodes 1N5819 beside the MOSFETs ...
    HPMC top board silk screen.jpg
    so they are able to absorb all the fast repeated Spikes and EMF falling current coming from the motor at the 90% and higher PWM duty cycle ...
    PWM-Signal-at-90-Duty-Cycle.jpg
    Last edited: Dec 9, 2015
  17. Cvetan Cvetanov

    Cvetan Cvetanov Member

    Joined:
    May 30, 2015
    Messages:
    41
    Location:
    Teteven Bulgaria
    Balance:
    1,462Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    There is all of them but fried only 2. 1 from 3 upside and 1 from 3 in downside or other maybe in upside dont give attention because of circular design(i like it).
    • Like Like x 1
  18. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    there are 6 diodes in upper side +ve supply /3 for each MOSFET side "motor direction " ... the same on the lower side -ve supply ... they work together in a cross section for each motor direction ... So , which diodes do you mean ?

    @Cvetan Cvetanov ... Please provide at least the lowest bit of information as this is really hard to predict so far ...

    You also need to download and read the above application note pdf file ...
    P.S. I've sent you some coins .
    • Friendly Friendly x 1
    Last edited: Dec 9, 2015
  19. Cvetan Cvetanov

    Cvetan Cvetanov Member

    Joined:
    May 30, 2015
    Messages:
    41
    Location:
    Teteven Bulgaria
    Balance:
    1,462Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    1 from group of 3 diodes

    Attached Files:

  20. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    @Cvetan Cvetanov ... I guess you have a big sparks in the motor brush in this motor direction ...
    - try replace the brushes if worn out or flatten their top with a strong spring behind .
    - increase No of diodes in this cross section motor direction .
    - Lower the PWM frequency by 1/3 if you can .
    • Informative Informative x 1
    Last edited: Dec 10, 2015