How to Control a DC Motor Using Optocouplers with an H-Bridge - DC to Daylight

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 40

  • @digus
    @digus 2 ปีที่แล้ว +11

    I always stop what I’m doing for a new DC to Daylight. My favorite part of E14 by far.
    Something about the way these are presented. Someone who obviously clearly understands what they are teaching - and obviously enjoys doing it, makes all the difference. These are just the most chill and easily digestible for me. Thanks Derek.

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +1

      That's a super nice compliment. Thank you very much!!! -Derek

  • @LordCogordo
    @LordCogordo 2 ปีที่แล้ว +9

    I know this is a lot to ask but derek is without a doubt one of the people that better explain (at least to me) this things, i hope u can make videos more often! Besides that, i love the name DC to Daylight, so sticky

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +2

      Thank you Manuel. It is great to get feedback about how effective the information is delivered and if it is easily understood. I wish I could make these videos every day, because it is a lot of fun. -Derek

  • @BHARGAV_GAJJAR
    @BHARGAV_GAJJAR 2 ปีที่แล้ว +1

    good job at not putting in ads I appreciate people like you in this world

  • @charlesgalant8271
    @charlesgalant8271 2 ปีที่แล้ว +6

    Something to watch for if you follow this tutorial: he mentioned the danger of overlapping the states but the code isn't actually accounting for it. (e.g. in FWD, H1 PWM is turned on before L1 is turned off). There should probably just be a transaction section (for simplicity sake) that gets triggered on a direction change that sets all outputs off and has a very slight delay to give them time to get there.
    Or even just a STOP 'direction' that gets called between changes.

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +2

      Hi Charles. Thank you very much for pointing this glaring error out! A couple of extra lines of code would have prevented this overlapping condition... I've posted the function in question in the community link in the description - this way the discussion can be continued and folks can offer suggestions. -Derek

    • @charlesgalant8271
      @charlesgalant8271 2 ปีที่แล้ว +2

      @@AmRadPodcast Great video, though. I'm sure it's a challenge balancing keeping code simple for new people against doing things efficiently/thoroughly

  • @madhurideshpande8631
    @madhurideshpande8631 2 ปีที่แล้ว +3

    Thank u sir this helps us students very much

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว

      Thank you Madhuri. I'm glad it is helpful, and good luck in school! -Derek

  • @castlecodersltd
    @castlecodersltd 2 ปีที่แล้ว +1

    Another great video to use as a launch pad for a project. Thank you

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว

      Great that this could inspire another (robotics?) project! -Derek

  • @f.hababorbitz
    @f.hababorbitz ปีที่แล้ว

    Very well put together description. Those high side transistors are a real pain, instead of 9v, make that 90v. I'm looking for simple opto isolator drivers that can do that.

  • @5coffeebreak2
    @5coffeebreak2 2 ปีที่แล้ว +1

    Great, vey useful information simple way
    Thanks

  • @GeoffryGifari
    @GeoffryGifari ปีที่แล้ว +2

    can diode be used to suppress the noise from backEMF?

  • @raffyturc
    @raffyturc 2 ปีที่แล้ว

    I learned something today. never thought Id see much construction difference, until that face-to-face and co-planar.

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว

      It also makes me wonder what other construction methods I'm not aware of.... -Derek

  • @grins047
    @grins047 2 ปีที่แล้ว +2

    Such great videos

  • @jafinch78
    @jafinch78 ปีที่แล้ว

    I've been looking at these a little for use with aluminum welding "balance control" where the AC signal 0-180 degree phase amplitude is adjusted in relation to the 180 to 360 degree phase so to have like a ratio control like 70% positive and 30% negative. Of course, to avoid burnout which is the plasma/arc stopping during the zero crossing, the rectified output is what is switched at the H-bridge so is more of a DC electrode positive (DCEP) ratio to DC electrode negative (DCEN) design. What's neat is the waveform can be changed by switching faster so the duty cycle and time on creates the desired waveform and capacitors and inductors smooth that pulse train waveform into the more familiar sine or sawtooth or whatever waveform desired. Handy circuit, though what I noted will require a little more fancy code.

  • @7alfatech860
    @7alfatech860 2 ปีที่แล้ว +1

    Very nice practical demo!

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +1

      Thanks 7Alfa - comments always appreciated. -Derek

  • @RS_83
    @RS_83 2 ปีที่แล้ว

    Thank you, Derek, from your viewer in Russia!
    Really informative and interesting content. As always. I can watch your videos by hours. Really very educational. Good luck to you and your relatives. Stay in good health and make new videos for us!

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +1

      Thank you very much for the feedback. It is good to know that these videos are making it (at least part-way) around the globe!😁 -Derek

    • @RS_83
      @RS_83 2 ปีที่แล้ว +1

      @@AmRadPodcast yeah it's a little bit difficult for me to understand some parts, because of foreign language, but I watch them anyway)) thank you))

  • @liquidsonly
    @liquidsonly 2 ปีที่แล้ว

    If I don't need PWM and the motors are high current I use two relays for fwd, rev and braking. Plug in relays are easy to replaced and generally , opto-isolation is not needed. depends on your use-case. Relays have a surprisingly long switch life too.

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว

      Also a good and simple solution. Make sure to check out the link in the description.. we continue the conversation there and discuss the perils of software control of an hbridge. -Derek

  • @joegrow9998
    @joegrow9998 ปีที่แล้ว

    Hey Derek, First of all, I love your ink!! Thanks for all you do. Was wondering If you could do something on isolated gate driver IC's? Mainly the UCC27425. I've been attempting to drive a Half bridge of High current, high voltage. I can't even seem to get a signal into the coupled inductor from the IC. I've done it with opto couplers, and they are just not fast enough, hench the need for the gate drive transformer. Anyway, I've tried everything and am at a loss.
    Please help
    Thanks in advance!
    Have a great day!

  • @anandawijesinghe6298
    @anandawijesinghe6298 2 ปีที่แล้ว

    Voltage regulation of this power supply is poor, judging from the measurements you made.
    Therefore, we should ask what the reason for that poor voltage regulation is. There can be many reasons, but since we are focusing here on Zener diode use, we should ask whether poor voltage regulation by the Zener itself is at fault.
    By measuring the current through the Zener and the voltage across it, as the Load current is increased, we can get some idea about whether the Zener itself is at fault.
    As you said, we can replace the Zener with a more accurate linear regulator IC, once we have confirmed that the Zener regulation is not good enough.
    Thanks for the clear instructive presentation !

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว

      I think you may have the wrong video? If you’re referring to the zener power supply… the current demand is too high for the transformers used. I have a 30A replacement sitting on my bench that I’ve yet to employ.

  • @kryptocat4240
    @kryptocat4240 2 ปีที่แล้ว +1

    Can i use MOSFET DRIVER instead of OPTOCOUPLER . If yes then which Mosfet driver shall i use

  • @MrQuazar
    @MrQuazar 8 หลายเดือนก่อน

    I have very large induction came back from dc brushed motor 500W when i use H bridge on 12V power supply this motor, ir2104 4pcs drivers 4psc TK100E08N1, capacitor 63V 470mF over charge more 50V after motor stops, capacitor over heating and fire his legs in smooke when motor starts turn in revers mode. What can i do to stop this induction incoming?

  • @rogerdc7136
    @rogerdc7136 ปีที่แล้ว

    Is there any software to generate pwm curves by time for a dc motor?

  • @plant_paradox5663
    @plant_paradox5663 2 หลายเดือนก่อน

    Can I use a 24v to 5v optocoupler to control a dc motor driver like L298N

  • @RassieKariuki
    @RassieKariuki 6 หลายเดือนก่อน

    You need to use that void setup correctly by actually initializing your values and clearing the values before the next loop. Otherwise it could go Kaboom!

  • @sotecluxan4221
    @sotecluxan4221 2 ปีที่แล้ว +2

  • @over2there
    @over2there 2 ปีที่แล้ว +1

    The pc817 is so slow. Wont work for frequencys above 1khz efficiently.

    • @AmRadPodcast
      @AmRadPodcast 2 ปีที่แล้ว +1

      This could be an interesting topic if we end up revisiting optocouplers. I wanted to show this, but kinda deserves it's own topic I think. There are ways to speed up the switching using the base of the phototransistor (I've seen it done in industrial robotics), but I've never tried myself. Thanks for the input. -Derek

    • @arnotek
      @arnotek ปีที่แล้ว

      @@AmRadPodcast The higher speed optocouplers would be of interest.