Тёмный

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

element14 presents
Подписаться 765 тыс.
Просмотров 11 тыс.
50% 1

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

Наука

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@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
@grins047
@grins047 Год назад
Such great videos
@AmRadPodcast
@AmRadPodcast Год назад
Thanks! -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
@5coffeebreak2
@5coffeebreak2 Год назад
Great, vey useful information simple way Thanks
@7alfatech860
@7alfatech860 Год назад
Very nice practical demo!
@AmRadPodcast
@AmRadPodcast Год назад
Thanks 7Alfa - comments always appreciated. -Derek
@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
@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))
@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.
@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.
@GeoffryGifari
@GeoffryGifari Год назад
can diode be used to suppress the noise from backEMF?
@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?
@kryptocat4240
@kryptocat4240 Год назад
Can i use MOSFET DRIVER instead of OPTOCOUPLER . If yes then which Mosfet driver shall i use
@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.
@joegrow9998
@joegrow9998 11 месяцев назад
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!
@sotecluxan4221
@sotecluxan4221 Год назад
@AmRadPodcast
@AmRadPodcast Год назад
hello.
@rogerdc7136
@rogerdc7136 9 месяцев назад
Is there any software to generate pwm curves by time for a dc motor?
@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
@RassieKariuki
@RassieKariuki 10 дней назад
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!
@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.
Далее
UZmir & Mira - Qani qani (Snippet)
00:26
Просмотров 358 тыс.
Super sport😍🔥
00:14
Просмотров 1,6 млн
How Operational Amplifiers Work - DC to Daylight
16:31
120/240V to logic level optoisolator (with schematic)
20:21
Designing an 8-bit CPU - 6 - program counter
10:13
Просмотров 2,7 тыс.
What is an H-Bridge?
6:29
Просмотров 10 тыс.
Motor speed controller tutorial - PWM how to build
17:33
Индуктивность и дроссель.
1:00
iPhone 12 socket cleaning #fixit
0:30
Просмотров 3,9 млн
Крохотный и быстрый SSD на 2 ТБ
0:59