Arduino Tutorial 8: Understanding Pulse Width Modulation (PWM) and the Arduino Analog Write Command

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ค. 2024
  • You guys can help me out over at Patreon, and that will keep this high quality content coming:
    / paulmcwhorter
    In this video we dive into how the Arduino Analog Write command really works. We connect the arduino to an oscilloscope and take a look at what the waveforms really are that are being generated.
    You can get the following Elegoo kit, to follow these lessons and play along at home
    amzn.to/3c9SJrO
    You can get more details at our WEB site HERE:
    toptechboy.com/arduino-tutori...
    [Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
    #Arduino
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 1.3K

  • @user-ys7yw7my5h
    @user-ys7yw7my5h 3 ปีที่แล้ว +440

    You: Trying to set a half brightness to the LED.
    LED: -_-

    • @kagankilic4905
      @kagankilic4905 3 ปีที่แล้ว +12

      Aight, that's the best joke I've heard all day

    • @AndrewLanier.
      @AndrewLanier. 3 ปีที่แล้ว +7

      Just change int to float and change the number to 127.5

    • @anthonyj.dipasqua4676
      @anthonyj.dipasqua4676 3 ปีที่แล้ว +1

      Hahahaha. Nerdy. ❤️

    • @EdOyama
      @EdOyama 3 ปีที่แล้ว

      😂😂😂😂😂

    • @wannaeatpizza
      @wannaeatpizza 3 ปีที่แล้ว +4

      you won the internet for a day

  • @supernova5107
    @supernova5107 3 ปีที่แล้ว +265

    Some of the best camera work I've seen on the internet TH-cam lessons.

    • @isaiahwhitney8168
      @isaiahwhitney8168 3 ปีที่แล้ว +6

      agreed, this is honestly amazing

    • @faizfaiz6323
      @faizfaiz6323 ปีที่แล้ว +4

      Correct

    • @joseribon27
      @joseribon27 5 หลายเดือนก่อน

      Definitely. Great performance for continuous recording without weird cut off blips

  • @L3x4Pr0ne
    @L3x4Pr0ne 3 ปีที่แล้ว +265

    The moment I knew Paul was my favorite teacher was when he felt the need to re-square his boards because it bothered him - then explain it bothered him. His organization makes me so happy.
    I’ve been binging all of these over my 2020 Xmas break. Thanks, Paul, for putting these learnings together! You’re an EXCELLENT teacher.

    • @arubaguy2733
      @arubaguy2733 3 ปีที่แล้ว +9

      Having things square (in alignment) is an OCD trait of mine. I also obsess over things like keeping my cash all facing the same way front side up and stacked in denominational order. A picture on the wall makes me crazy if it is off level by 2 degrees. Grid-lined paper is greater than sliced bread to me.

    • @jackkay1638
      @jackkay1638 3 ปีที่แล้ว +6

      @@arubaguy2733 "keeping my cash all facing the same way front side up and stacked in denominational order." YES. bonus points if you flatten bent corners on bills

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

      the moment i knew was 2 seconds into the first video

    • @yoursfithfully047
      @yoursfithfully047 3 หลายเดือนก่อน

      the sheer attention to detail sets him apart
      cheers!

  • @waynemoorfield594
    @waynemoorfield594 3 ปีที่แล้ว +98

    I have worked all my life in the electrical/electronic field And I Wished I had a Tutor like you . I'm now in my seventies and still learning Thanks Paul You are the best .

  • @joshuacanlas4679
    @joshuacanlas4679 4 ปีที่แล้ว +117

    lesson 8 and i've learned a lot about arduino and how to get a "caffeine overdose" from those iced coffee
    HAHAH, thanks Paul McWhorter

  • @dettimp
    @dettimp ปีที่แล้ว +30

    Your explanations are great: I'm a total novice and yet I understood perfectly everything you talked about.
    Plus, I love the fact you're teaching things that allow us to understand what's going on, instead of just telling (for example) that PWM works the way it does "because it does".
    I'm really glad I've found your videos!

  • @sanjaykumarg3511
    @sanjaykumarg3511 3 ปีที่แล้ว +34

    "A real way of teaching engineering"
    Well explained sir

  • @alastairbutterworth3495
    @alastairbutterworth3495 4 ปีที่แล้ว +26

    It was interesting that when you dropped the pwm signal to 60 with the capacitor in the circuit the led actually cut out as the forward voltage was too low. This of course doesn’t happen without it as it’s being pulsed with 5v for a short time. So an led can run dimmer with pwm than it can with analog input. That’s really cool!

  • @jessar84
    @jessar84 4 ปีที่แล้ว +98

    Really you are a fantastic teacher, it is a good way to explain PWM. now I understand PWM very well! Thanks.

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

      Absolutely agree. Can't imagine it being demonstrated any other way, now that I have seen this lesson. Way to go, Paul!

  • @Ajaypurandare
    @Ajaypurandare 3 ปีที่แล้ว +44

    I can see my dream come true only because of your fantastic tutorials. I want to run a CNC machine using Arduino. I will be greatful to you for rest of my life.

    • @briantoste904
      @briantoste904 3 ปีที่แล้ว +8

      Hows the CNC machine going?

    • @danieldickinson9167
      @danieldickinson9167 3 ปีที่แล้ว +1

      What’s a CNC machine?

    • @lensman192
      @lensman192 3 ปีที่แล้ว +4

      @@danieldickinson9167 CNC stands for Computer Numerical Control and it is used to move the several axis of a tool by computer control. Industry uses CNC for welding metals, drilling, cutting and more on many materials. There are CNC drills, milling machines, lathes, routers, plasma cutters, water jet cutters, welders, EDM machines, benders, grinders, and probably many other machines that are CNC. People are now building their own 3D printers which are a type of CNC machine.

  • @alandignans2396
    @alandignans2396 ปีที่แล้ว +10

    I didn't really understand Pulse Width Modulation before but I do now. Watching you build the circuit, then actually seeing a pictorial representation of what's happening as you changed the values in the program really made it clear. A lot clearer than reading an explanation in a book.

  • @muskanagarwal6749
    @muskanagarwal6749 3 ปีที่แล้ว

    I have been wanting to understand PWM for so long and have been looking all over the internet for this. This is by far the best video that explains PWM to me with this oscilloscope. Thanks, Paul for this.

  • @magneertresvag
    @magneertresvag 4 ปีที่แล้ว +7

    Dear Paul!
    Thank you for this in depth series of the Arduino. This is very promising and I'll can't wait to see all of it.
    Thank you again sir!

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

    The amount of preparation and thought that goes in making these videos is heartwarming. You're a fantastic teacher Sir

  • @briansheridan9975
    @briansheridan9975 3 ปีที่แล้ว

    You sir have a gift for teaching. I have bought your kit and have been enjoying every lesson. Who ever said you can't teach and old dog new tricks has not met you. Thank you very much!!!

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

    I like that you go through the basics and code before jumping right into fancy sensors and motors like other lessons. You give us a good background and concepts so we create a renown things 👍

  • @kcninjaneer4671
    @kcninjaneer4671 3 ปีที่แล้ว +9

    Just wanted to thank you for this series. I've been "shotgunning" circuits and code by just copying and making up my own stuff for too long. You really have made understanding what is going on a lot easier!! Having a good teacher that is interested and motivated in the subject makes all the difference in my opinion. Thanks again and let's keep rolling!!

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

    These kind of lessons are empowering in the sense that I am learning about what's actually going on rather just putting words into code. It is not boring at all. Understanding the fundamentals is allowing me to think further into the codes and asking myself "what is really going on when I put this code in and is it what I want the Arduino to do?" The more of these kinds of lessons, the more I feel I am gaining in fluid knowledge that I can apply rather than just regurgitating information.

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

    Yes, I understand. As I commented earlier, I am using your course as a refresher. I learned all this almost 50 years ago.

  • @jamesmcbrideag5ve743
    @jamesmcbrideag5ve743 4 ปีที่แล้ว

    I had a basic bbn understanding of PWM, but when you hooked the cap in at the end, a HUGE lightbulb went off in my head. Thank you, thank you, thank you !!!

  • @tysonclark9167
    @tysonclark9167 3 ปีที่แล้ว +14

    8 lessons in 3 days, and still going strong! I love it, Paul

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

      8 in 2 days mine

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

      that's a lot of coffee!

  • @richardruark6422
    @richardruark6422 4 ปีที่แล้ว +18

    PWM is something like turning a light switch on and off fast or slow causing it to be brighter or dimmer. Enjoying your classes. Thanks

  • @JR-je7ce
    @JR-je7ce 3 ปีที่แล้ว

    I genuinely feel like you are one of the best teachers I have come across and I dont just mean with arduino I've watched a few learning videos on the old TH-cam and you are by far the most clear and explanatory and you make the lessons engaging I wouldn't say you ramble at all you just want to be clear and precise. Plus you know you've found a good teacher when you're disappointed that no homework was set haha.

  • @thethubbedone
    @thethubbedone 4 ปีที่แล้ว +1

    The oscilloscope was a perfect tool to show the point. I was familiar with the concepts before watching the video, but seeing the square wave, and then the wavy analog voltage still felt enlightening. Nice job.

  • @linnarpewbes6594
    @linnarpewbes6594 4 ปีที่แล้ว +10

    my notes for this lesson
    analogWrite("pinNumber","value between 0-255"); the value 0-255 corresponds to 0-5 volts
    this command uses - pulse width modulation: this means that the Volts are only either 0 or 5 but pulse on and off at a speed that is dependent on what value you are using.
    how to view it: imagine a person is running at a speed of 5mph, for 0.1 seconds before they stop for 0.1 seconds. from your perspective it would appear that the person is running at a speed of 2.5mph even though they are actually only ever running at a speed of either 5mph or 0mph

    • @MrAshwindersingh
      @MrAshwindersingh 3 ปีที่แล้ว

      brilliant

    • @sourajdarsan6831
      @sourajdarsan6831 3 ปีที่แล้ว

      @@MrAshwindersingh well i dont get it. ..

    • @Healingmyselfeveryday
      @Healingmyselfeveryday 2 วันที่ผ่านมา

      Is it because the image persists in the eye for 0.1 s approximately. So even when it stops our eye continues seeing it for 0.2 secs and that is why it appears that he is slower and running at 2.5 mph?

  • @collincruise956
    @collincruise956 3 ปีที่แล้ว +5

    I am a senior Electrical Engineering major at a good school and I didn't understand PWM at all when it was taught to me. Now it makes complete sense. Thank you so much Paul!

  • @1psychoticmurmur
    @1psychoticmurmur 3 ปีที่แล้ว

    Yes, I now understand pulse width modulation, PWM. Great visual.
    I like that you keep things neat and organized on the video, it makes it easier to understand.

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

    I enjoyed the class, great demo of the O-scope. Made PWM very clear and showed exactly what was going on. Thanks

  • @RohitxArora
    @RohitxArora 4 ปีที่แล้ว +4

    Hey Paul, like always, enjoying and actually learning from these videos, instead of other places. Thanks a lot once again. Keep it up.

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

    I really love these videos, I’m a freshman doing mechanical engineering! I love these so much thank you

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

    I loved this lesson! Especially the fact that you used the oscillator. Made it 100 times easier to understand!!

  • @Panvil
    @Panvil 3 ปีที่แล้ว

    Paul, what a good man you are. I'm a mechanical engineer student, and getting into electronics has been a long time wish. Thanks for putting out quality content for free.

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

    Sir there could not be an easier video explaining these concepts Bravo and a salute to your efforts 👍

  • @theadventuresofmikeandjami6693
    @theadventuresofmikeandjami6693 3 ปีที่แล้ว +5

    Hearing you say “hook a brother up” just cracks me up. Seriously though - these tutorials are GREAT! You are an amazing teacher. So clear and concise. Thank you so much.

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

    Been watching these from Tutorial #1, currently learning the Arduino in university as we move forward with various microcontrollers, and these videos are putting me steps ahead of the lecture from class as you explain the material in a very detailed way. Appreciate it, I'm going to watch all of them.

  • @CodicologiaUCM
    @CodicologiaUCM 3 ปีที่แล้ว

    You are a great teacher, Paul. I have tried to learn these things several times but never went beyond the first lessons. Now I am hooked to your course. The ice coffee may help, but I think it is rather your teaching excellence. Thank you.

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

    I'm a 50 year old technician that went to tech school before PC's were popular. Maybe it's the fact that I'm mature now and have a greater attention span but I think you are just a kind soul and it translates to a good teaching style. You are definitely taking the apprehension I had in learning Arduino and the associated programming to a manageable level. I've thoroughly enjoyed your lessons and look forward to learning more.

  • @munishgoyal7602
    @munishgoyal7602 4 ปีที่แล้ว +211

    who is here in this quarantine

    • @didifady1641
      @didifady1641 4 ปีที่แล้ว

      me!!!

    • @2006death2006
      @2006death2006 4 ปีที่แล้ว

      i am doing this is surprising how many items we use every day could be working with there's

    • @adrianwiuk
      @adrianwiuk 3 ปีที่แล้ว

      Week 10 (excluding school holidays) of lockdown in Scotland here :-)

    • @nabeelahmed4352
      @nabeelahmed4352 3 ปีที่แล้ว

      me i loved this class

    • @langer727
      @langer727 3 ปีที่แล้ว

      Me!

  • @jimsimpson1006
    @jimsimpson1006 5 หลายเดือนก่อน +1

    Excellent explanation and demonstration Paul. I’ve certainly heard of PWM before but now have a clear understanding of exactly what it means.

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

    Thank you so much for breaking out the oscilloscope. I never even knew I wanted to know this level of detail. Outstanding series so far and looking forward to the rest

  • @rolstonholas333
    @rolstonholas333 4 ปีที่แล้ว +54

    I loved seeing the voltage on the oscilloscope, it really brings home, in a very visual way, how PWM works. I would love to have seen the Fade sketch on the oscilloscope to see what that would look like. Thanks for another great vid

  • @Bob-zg2zf
    @Bob-zg2zf 4 ปีที่แล้ว +4

    Well designed course for PWM. Thank you, Paul.
    I would like to summarize the concept of PWM: a programmer sets the time for a circuit to be on and sets the time for a circuit to be off, in an on-and-off cycle. The result is the final average output voltage is set to a fixed value.
    To easily undestant the effect of PWM, I do not think the best example is LED brightness. I believe the best example is use PWM to set the speed of a computer fan. Students will be able to visually see and understand PWM can set or change how much wind the fan can blow to them.
    Thank you, Paul!

    • @bigstickpilot
      @bigstickpilot 4 ปีที่แล้ว +1

      agreed, the eye doesn't respond linearly to brightness

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

    Just bought my kit yesterday, today is here, programmed some codes , even fading and Im gonna go through all the playlist I hope, just commenting to say thank you for such clear explanation

  • @akashdeeppaul9272
    @akashdeeppaul9272 4 ปีที่แล้ว

    I'm in the field of communication engineering but even then this video helped me have a different outlook on PWM.Great work on the video and your explanation is simplistic, intuitive and to the point. Thanks for the insightful video

  • @juggalizzle75
    @juggalizzle75 4 ปีที่แล้ว +3

    It's actually amazing what you can do with pwm. We use it quite a bit with flight controllers to control our brushless motors for our drones. These motors are supplied constants battery voltage up to about 25v but the pwm occurs through a data line which is just 0-5v that turns the motors off or on by applying the battery voltage or removing It. It handles not only setting the rpms of the motors but ramping them up slowly or quickly and even active braking of the motor rpms by momentarily reversing the motor. Not to mention the radio control signal is based on pwm as well. I was one told to think of pwm as cruising at speed on a bicycle. You can stop pedaling and coast. If you want to keep that speed you don't have to pedal constantly but rather push the pedal full force a quarter turn every now and then to keep the speed constant. I probably didn't explain that very well but it made sense to me at the time.

    • @sorryboss8550
      @sorryboss8550 7 หลายเดือนก่อน

      I’m just starting arduino I didn’t think this lesson was important but wow

  • @chrisbe4463
    @chrisbe4463 4 ปีที่แล้ว +14

    The arduino simulates the analog voltatage by switching from plus 5v to 0 back and forth in a frequency to get the voltage

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

    I have to reach out and say thank you, and I'm in awe of your lessons here. Just bought my kit, and can't wait to start playing with it. I'm a teacher myself and do short video lessons and am looking for great applications to show my students of mathematics and science. You break things down really well!

  • @ajithdamo
    @ajithdamo 3 ปีที่แล้ว

    I have been watching each of your tutorial, and following with practicals on my breadboard : I am finally getting somewhere with Arduino! Excellent teaching method. I can see the value of setting the variables and having no numbers in the loop.Great demonstration of PWM and use of that capacitor .

  • @glennfelpel9785
    @glennfelpel9785 4 ปีที่แล้ว +3

    Paul I work in heavy equipment design and particularly in the hydraulic systems which power the mechanisms. Sometimes the valves we use are PWM type valves. Now with this understanding I can see better how the valves are working. In those systems they have PWM drivers which apparently produce enough amperage to actuate the valve coils. And I believe the signal we send the drivers is just a lower amperage signal. Does that sound correct?

  • @philipreed2758
    @philipreed2758 4 ปีที่แล้ว +5

    Hi Paul. loving the videos and looking forward to each one. only thing I noticed is your scope was set to 0.5mS per division and the period was 4.2 divisions. that to me is just a fraction over 2mSec not as you said 4mS. just me being eagle eyed. but loving it. when you getting onto inputting via switches or sensors?. keep up the excellent videos and not tried the ice coffee yet...

    • @paulmcwhorter
      @paulmcwhorter  4 ปีที่แล้ว +9

      I could have misread it, thanks for the observation.
      Not drinking Ice Coffee could get you banned from the channel, though:)

    • @williamperry2074
      @williamperry2074 3 ปีที่แล้ว

      @@paulmcwhorter Now Paul, you know it's really tea in that cup. HaHa. Fantastic tutorial series so far! Learning so much. Thanks

    • @DaveSprague
      @DaveSprague 3 ปีที่แล้ว

      @@paulmcwhorter actually you read the period from the screen and the msec/division scaling correctly, you just made a mistake when you used the calculator. You might want to put an overlay of the video at that point with the correct period of 2.1 msec rather than 4.2 msec.

  • @gauravdas5002
    @gauravdas5002 3 ปีที่แล้ว +1

    I learned PWM in physics but never really understood it as clearly as I did today thank you, this is another great tutorial in this series!

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

    Paul, you do an excellent job of describing things. It is very easy to follow. You are a great teacher. Please continue to produce videos!

  • @subhopriyojoarder3536
    @subhopriyojoarder3536 4 ปีที่แล้ว +4

    Thank you for the Arduino Tutorials sir!!
    I know that capacitor opposes sudden change in voltage. ic = C dV/dt. So, when the pin output goes from LOW to HIGH, capacitor should take large impulse current as dV/dt goes to +inf. Similarly when the pin output goes from HIGH to LOW capacitor should supply large impulse current back to Arduino pin.
    Is it safe in the long run? Are digital/analog pins capable of taking current from external circuits??

    • @paulmcwhorter
      @paulmcwhorter  4 ปีที่แล้ว +3

      The things you are saying are correct . . . I was just trying to show a quick and dirty demo of how capacitors can turn AC into DC. If you were really going to do this, you should do some circuit design.

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

      It is safe, the Arduino pin when off is effectively floating and does not "sink" current from the cap, and the charge will sink quickly through the LED. Every digital pin is capable of handling 5V. What do you think it is doing for the digitalRead?

  • @nexpro6985
    @nexpro6985 4 หลายเดือนก่อน +5

    I fundamentally disagree with this video. It is well understood that good Arduino videos should be accompanied by hot coffee with cream and lots of sugar. 😊

    • @paulmcwhorter
      @paulmcwhorter  4 หลายเดือนก่อน +5

      BANNED!

    • @MrEerilybasic
      @MrEerilybasic 4 หลายเดือนก่อน +1

      😂

    • @nexpro6985
      @nexpro6985 4 หลายเดือนก่อน +1

      @@paulmcwhorter lol. Merry Christmas.

    • @ErlankBru
      @ErlankBru 21 วันที่ผ่านมา

      😂

  • @tvtoms
    @tvtoms 3 ปีที่แล้ว

    You made it very clear. I don't notice rambling because I play the videos at twice normal speed since I'm able to follow. Everything seemed relevant to my thinking. The series is very helpful as a refresher so far, thanks!

  • @dinosshed
    @dinosshed 3 ปีที่แล้ว

    I completely understand what you're saying, I'm a mechanic and have worked with electronics for 20 years or more. Really appreciate you going to the trouble of teaching, cheers.

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

    First time in my life that I really understood PWM. Thanks Professor!

  • @calvinunruh8062
    @calvinunruh8062 5 หลายเดือนก่อน +1

    The way you explain it, it is easy to understand. Love learning about this stuff.

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

    Can’t get enough of your videos it feels like I’m back in school in the best way possible!

  • @selenasanchez8587
    @selenasanchez8587 3 ปีที่แล้ว

    I was stuck on a project for my Make Course at USF for a couple of days. After reviewing your video I understood the way in which a capacitor is able to help when smoothing out the curve and giving a steady voltage. Thank you sooo much and you definitely saved my grade!

  • @benthompson6118
    @benthompson6118 3 ปีที่แล้ว

    Great tutorials and teaching style, thank you. From the homework in lesson 7 I added the capacitor just to see what it would do. The capacitor made the LED go from three different levels of brightness to just on or off.

  • @mattmckee8603
    @mattmckee8603 3 ปีที่แล้ว +1

    as an apprentice electrician who understands the electrial side more than anything else, i think you did an amazing job at explaining PVM. im loving the classes man i wish my electrian classes were this fun! keep it up man!

  • @utkf16
    @utkf16 3 ปีที่แล้ว +1

    Brilliant explanations throughout your lessons Paul. Well paced and the content just enough in each session. Thank you

  • @stephenmichael2687
    @stephenmichael2687 4 ปีที่แล้ว

    I'm finally making the leap with a good understanding of electronics to software development. That was a great video of PWM. You have a very impressive course so far. great job!! 10/10

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

    Excellent description of PWM... It made complete sense!

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

    I've taken many arduino classes before, but this is the only video that actually helped me understand what pulse width modulation actually was

  • @dereksavage8728
    @dereksavage8728 3 ปีที่แล้ว

    I really appreciate these tutorials. Very in depth it's impossible to get lost

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

    I do understand pulse with modulation!!! What you call rambling is helping associate with prior knowledge, so thank you!!!

  • @felixcherrey1771
    @felixcherrey1771 3 ปีที่แล้ว

    Thanks Paul you are always so clear in what you say. I now fully understand PWM. You are such a good teacher!

  • @daniellehwing4667
    @daniellehwing4667 4 หลายเดือนก่อน

    You are, by far, the best professor I saw talking about the matter!
    ...and I am an elec. engineer.
    Thank you.

  • @EdwardRLyons
    @EdwardRLyons 3 ปีที่แล้ว +1

    Thank you! This series is excellent. This is probably the best, most understandable explanation of PWM that I've yet seen.
    "Does this make sense?"
    Absolutely! Bringing the capacitor into it was brilliant. Gives me a better understanding of those, too!
    I'm really just starting out learning Arduino coding and electronics, and this series so far is the best for learning that I've tried so far!

  • @edgargraadtvanroggen7384
    @edgargraadtvanroggen7384 3 ปีที่แล้ว

    Paul, you explained PWM very clearly. Just makes me want to know more and keep following your lessons

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

    Hello Paul , I am a student , and I was recommended this channel by a friend , she told me I could learn everything I needed to know concerning Arduino progs, and I am excited , I am learning alot, this is what I wanted , thank you for this sir . 🤗

  • @lindahutchison8430
    @lindahutchison8430 9 หลายเดือนก่อน

    Great explanation, Paul. My understanding of pulse width modulation (which I had never met before) is that the percentage of the period that the voltage is set to 5 is varied (or modulated) to effectively mimic a level between 0 and 5 volts. Your use of the oscilloscope was a perfect illustration.

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

    Great lesson. I finally understand pulse with modulation. Showing the O scope and what you call rambling (which helped me associate previous knowledge with this lessons knowledge) was perfect. Keep the rambling!!! And thank you!!!

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

    Hi. I guess pulse width modulation is the technique they use to bring the average voltage down. It makes sense. Paul... you are about as clear and straightforward as anyone I've ever heard. Good job!

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

    Great job explaining PWM, very easy to understand especially with the info from the oscilloscope. Thanks for the great videos, looking forward to going through the rest of them.

  • @426F6F
    @426F6F ปีที่แล้ว

    You made this incredibly clear. Thanks so much, Paul!

  • @christopherspicer9341
    @christopherspicer9341 4 ปีที่แล้ว

    Working my way through your series. Really enjoying it. This explanation of PWM is very good. The O-scope helped a lot. Ordered my Elego kit, the price has gone up BTW now they are $56.00, but I can stop wasting time digging through my electronics "scraps" to do the homework. Thank you for a confidence building educational series.

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

    This is a great explanation concerning the way LEDs creat light, (as a diode) and the way the voltage "strikes" (for lack of a better term) to produce light! This is most excellent, you explain things like this, along with the visual aids, wonderfully!
    Thanks Paul

  • @ernestng7113
    @ernestng7113 3 ปีที่แล้ว

    Yes. The aid of the oscilloscope display helps me to understand PWM in a very visual way. Thanks.

  • @LaughingHeals
    @LaughingHeals 6 หลายเดือนก่อน +1

    No doubt this is one of the best lessons explaining PWM!

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

    Best explanation about pulse width modulation that I could find over internet. Thanks for teaching me

  • @banyincam
    @banyincam 3 หลายเดือนก่อน

    This is great. I'm having so much fun watching these videos. I've watched them all at least three times.

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

    Thank you ! The oscilloscope display re-inforced the PWM concept.

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

    I like the fact that you look serious but funny at the same time.
    And of course, the wonderful way of explaining stuffs.
    A big thumbs up!

  • @laurieknarr8615
    @laurieknarr8615 4 ปีที่แล้ว

    My son and I are enjoying your videos. Neither of us have ever done anything like this and are very happy we found your video tutorials. He has completed every piece of homework since video one, and really seems to be enjoying the learning process. Thank-you!

    • @paulmcwhorter
      @paulmcwhorter  4 ปีที่แล้ว

      That is so encouraging to hear, and wonderful that you will spend the time with your son like that. These will be wonderful memories for him. Hope you are blessed by the videos.

  • @mikemanny1533
    @mikemanny1533 4 ปีที่แล้ว +1

    Cheers for another great tutorial, mate! I am really getting to grips now with the theory and practical of electronics/voltages/analog/digital etc.

  • @anthonyj.dipasqua4676
    @anthonyj.dipasqua4676 3 ปีที่แล้ว

    Well done Paul! Ramble on it’s making sense to me. I’ve been explaining this to my spouse and friends and it is sticking.

  • @kristofferbrink2689
    @kristofferbrink2689 3 ปีที่แล้ว

    This makes a lot of sense, also to a lot of other stuff I’ve learned (like why some lamps look like they blink) i now also know why to use capacitors, and now i also know why you’d use resistors for the led instead of just setting the value of brightness to something like 30.
    Thanks for the help Paul!

  • @nielsroetert
    @nielsroetert 3 ปีที่แล้ว

    Really enjoyed this video, I now understand PWM but also adding the capacitor to smooth out the signal made so much sense. I'll be trying this myself tomorrow.

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

    I might have learned this few decades ago and have forgotten, but the way that you have explained PWM is embedded such that it will never be forgotten. Thank you.

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

    Thanks a lot M. McWorther, your explanations over all that you teach are cristal clear, even for a french Canadian guy. Have a good day.

  • @MohammadMohiuddin-bd
    @MohammadMohiuddin-bd 3 ปีที่แล้ว

    Nothing need to say more, just awesome for me as a beginner of learning Arduino. Salute SIR.

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

    I had read about PWM before but now I get it. Thanks so much!
    One thing that would help even more, and maybe you'll do this in later videos, is tell us how you select components. Like you grabbed the 330 ohm resistor in all the previous videos, and here you grabbed a capacitor, but why those particular values? I see how it works, but I won't have confidence in setting up an original circuit of my own yet.
    I love your teaching, your camera work, the content. I can't get enough!

  • @SalimaBarzane
    @SalimaBarzane 3 ปีที่แล้ว

    You are a great teacher Paul. I watched your series on the Raspberrry PI, and have hooked my Arduino to it. Just waiting post surgery for eyes to settle to do these sessions.

  • @tallslimpr
    @tallslimpr 3 ปีที่แล้ว +1

    Well done Paul, thoroughly understood. Wish you were my professor back in the days. Thank you! Great job!

  • @louandpaulanickles7172
    @louandpaulanickles7172 3 ปีที่แล้ว

    That was a pretty good explanation of PWM. I come from a 30+ year building automation background and really appreciate your style of teaching. MANY years ago, we had to write our code in BASIC, but I had no experience with C++ style programming until 8 lessons ago. Really looking forward to carrying on with these lessons and sharing the experiences with my 10 year old granddaughter who is really taking an interest too.
    You keep talking about "Getting Under The Hood". Really under the hood has had me wondering for years. Hope to learn about the firmware that makes these controllers recognize commands and decides what to do with them... right down to the 1's and 0's.
    Thanks for sharing your wealth of knowledge with us Paul!

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

    You are not rambling at all sir!! Everything is sooo clear that even my gf, who has no background whatsoever, is understanding better than I could have ever explained to her. I wish I had a mentor like this back when I studied electronics engineering. I'm watching your lessons just for the sake of it and loving it. Keep it up, I'll keep sharing...

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

    I'm just getting into the Arduino as I have many projects in mind. I'm an High Voltage technician so have most of the basics of electrical/electronic engineering but what a gem of information that the Analogue output is really just PWM. That can make such a difference depending on the project. Thanks for the great videos and keep up the good work. I also watch the adverts to make sure that you get rewarded for your efforts.