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

  Переглядів 9,533

element14 presents

element14 presents

День тому

In this application-based episode on optocouplers, Derek puts together an H-bridge circuit, which will allow us to control the speed and direction of a DC brushed motor. An Arduino will provide the PWM pulses and direction control. He also uses optocouplers as the interface between the H-bridge and Arduino, which will mitigate noise and potentially dangerous voltages from damaging our IO pins.
Ask Derek questions and discuss the episode on the element14 Community! bit.ly/3gg35wL
Read the element14 Community Essentials course on optocouplers / optoisolators: bit.ly/3s54atO
Engage with the element14 presents team on the element14 Community - suggest builds, find project files and behind the scenes video: bit.ly/3tmdewv
Visit the element14 Community for more great activities and free hardware: bit.ly/3q6YMpu
Tech Spotlights: bit.ly/3qPrDhM
RoadTest and Reviews: bit.ly/3pV5Bux
Project14: bit.ly/31wbnJY
#0:00 Welcome to DC to Daylight
#0:45 Optocoupler and H-bridge
#4:35 Schematic
#7:05 Breadboard
#8:00 Software
#12:00 Testing
#12:41 Give Your Feedback
#optocoupler #breadboard #optoisolator #arduino #arduinoproject #arduinoprojects #pwm

КОМЕНТАРІ: 38
@digus
@digus Рік тому
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 Рік тому
That's a super nice compliment. Thank you very much!!! -Derek
@LordCogordo
@LordCogordo Рік тому
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 Рік тому
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 Рік тому
good job at not putting in ads I appreciate people like you in this world
@charlesgalant8271
@charlesgalant8271 Рік тому
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 Рік тому
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 Рік тому
@@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 Рік тому
Thank u sir this helps us students very much
@AmRadPodcast
@AmRadPodcast Рік тому
Thank you Madhuri. I'm glad it is helpful, and good luck in school! -Derek
@castlecodersltd
@castlecodersltd Рік тому
Another great video to use as a launch pad for a project. Thank you
@AmRadPodcast
@AmRadPodcast Рік тому
Great that this could inspire another (robotics?) project! -Derek
@grins047
@grins047 Рік тому
Such great videos
@AmRadPodcast
@AmRadPodcast Рік тому
Thanks! -Derek
@7alfatech860
@7alfatech860 Рік тому
Very nice practical demo!
@AmRadPodcast
@AmRadPodcast Рік тому
Thanks 7Alfa - comments always appreciated. -Derek
@5coffeebreak2
@5coffeebreak2 Рік тому
Great, vey useful information simple way Thanks
@RS_83
@RS_83 Рік тому
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 Рік тому
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 Рік тому
@@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))
@raffyturc
@raffyturc Рік тому
I learned something today. never thought Id see much construction difference, until that face-to-face and co-planar.
@AmRadPodcast
@AmRadPodcast Рік тому
It also makes me wonder what other construction methods I'm not aware of.... -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.
@rogerdc7136
@rogerdc7136 8 місяців тому
Is there any software to generate pwm curves by time for a dc motor?
@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.
@joegrow9998
@joegrow9998 10 місяців тому
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!
@GeoffryGifari
@GeoffryGifari Рік тому
can diode be used to suppress the noise from backEMF?
@kryptocat4240
@kryptocat4240 Рік тому
Can i use MOSFET DRIVER instead of OPTOCOUPLER . If yes then which Mosfet driver shall i use
@MrQuazar
@MrQuazar 2 місяці тому
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?
@anandawijesinghe6298
@anandawijesinghe6298 Рік тому
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 Рік тому
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.
@liquidsonly
@liquidsonly Рік тому
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 Рік тому
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
@sotecluxan4221
@sotecluxan4221 Рік тому
@AmRadPodcast
@AmRadPodcast Рік тому
hello.
@over2there
@over2there Рік тому
The pc817 is so slow. Wont work for frequencys above 1khz efficiently.
@AmRadPodcast
@AmRadPodcast Рік тому
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.
How Optocouplers Work and How to Use Them - DC To Daylight
10:56
element14 presents
Переглядів 23 тис.
Arduino Motor Interfacing using MOSFET and PWM
10:49
Dorian McIntire
Переглядів 187 тис.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 8 млн
Піхотинець - про рутину на фронті
00:46
Суспільне Новини
Переглядів 1,1 млн
Control a DC Motor with Arduino (Lesson #16)
14:01
Science Buddies
Переглядів 153 тис.
#769 Basics: Opto-coupler Opto-isolator
12:05
IMSAI Guy
Переглядів 8 тис.
H-Bridge Basics
9:23
bobby schulz
Переглядів 84 тис.
Optocouplers and Photo Interrupters
41:39
Wosag
Переглядів 9 тис.
How to Drive LEDs - DC To Daylight
14:05
element14 presents
Переглядів 11 тис.
Standalone Full Bridge DC Motor Driver
9:59
MyVanitar
Переглядів 9 тис.
All About Optocouplers (PC817)  What Is an Optocoupler Optocoupler Circuit
14:20
Getting Started with Bluetooth LE Audio Using the Nordic nRF5340 - DC To Daylight
13:47
#Shorts Good idea for testing to show.
0:17
RAIN Gadgets
Переглядів 3,1 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,2 млн
Phone charger explosion
0:43
_vector_
Переглядів 48 млн