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

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ •

  • @supernova5107
    @supernova5107 3 роки тому +294

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

    • @isaiahwhitney8168
      @isaiahwhitney8168 3 роки тому +6

      agreed, this is honestly amazing

    • @faizfaiz6323
      @faizfaiz6323 Рік тому +4

      Correct

    • @joseribon27
      @joseribon27 Рік тому

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

  • @L3x4Pr0ne
    @L3x4Pr0ne 4 роки тому +295

    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 роки тому +10

      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 роки тому +7

      @@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 Рік тому +3

      the moment i knew was 2 seconds into the first video

    • @yoursfithfully047
      @yoursfithfully047 11 місяців тому

      the sheer attention to detail sets him apart
      cheers!

    • @stevencox9212
      @stevencox9212 4 місяці тому

      @@arubaguy2733 It is nice to know I am not alone in this world!

  • @Каксваритьпельмени-ы4ч

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

    • @kagankilic4905
      @kagankilic4905 4 роки тому +16

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

    • @AndrewLanier.
      @AndrewLanier. 4 роки тому +8

      Just change int to float and change the number to 127.5

    • @anthonyj.dipasqua4676
      @anthonyj.dipasqua4676 4 роки тому +1

      Hahahaha. Nerdy. ❤️

    • @EdOyama
      @EdOyama 4 роки тому

      😂😂😂😂😂

    • @wannaeatpizza
      @wannaeatpizza 4 роки тому +4

      you won the internet for a day

  • @waynemoorfield594
    @waynemoorfield594 4 роки тому +105

    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 .

  • @dettimp
    @dettimp Рік тому +38

    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 4 роки тому +39

    "A real way of teaching engineering"
    Well explained sir

  • @ChiodoDragon2
    @ChiodoDragon2 3 роки тому +5

    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.

  • @57beanyboy
    @57beanyboy 3 роки тому +2

    64 year old man learning something I never thought I could learn. Thank you Paul. I am really enjoying your style of teaching.

  • @collincruise956
    @collincruise956 3 роки тому +10

    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!

  • @Arnickification
    @Arnickification 3 роки тому +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!!!

  • @Ajaypurandare
    @Ajaypurandare 4 роки тому +46

    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 4 роки тому +8

      Hows the CNC machine going?

    • @danieldickinson9167
      @danieldickinson9167 4 роки тому +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 2 роки тому +13

    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.

  • @jessar84
    @jessar84 5 років тому +101

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

    • @drzwithcrow6075
      @drzwithcrow6075 2 роки тому +1

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

  • @joshuacanlas4679
    @joshuacanlas4679 4 роки тому +126

    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

  • @theadventuresofmikeandjami6693
    @theadventuresofmikeandjami6693 4 роки тому +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.

  • @妙语心法-SpiritualUplift
    @妙语心法-SpiritualUplift Рік тому +2

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

  • @cacophonixgaul6170
    @cacophonixgaul6170 Рік тому +3

    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.

  • @rogthedodge99
    @rogthedodge99 4 роки тому +2

    Hi Paul. Yes understood PWM. Your teaching is great! I've seen so many poor teaching videos and read some poor books on the subject, that I'd given up. Your tutorials have me looking forward to what you're going to teach us next! As a 73 year old ex I. T. trainer that's praise indeed

  • @richardruark6422
    @richardruark6422 5 років тому +19

    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

  • @msg1956
    @msg1956 Рік тому +2

    Excellent..! I bought the kit and trying one by one ..! Success so far..!

  • @Zzt31
    @Zzt31 2 роки тому +5

    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.

  • @msg1956
    @msg1956 Рік тому +1

    Though I don't have oscilloscope at home I understood the PWM concept clearly..Thank you..I will start your next lesson tomorrow..

  • @et4493
    @et4493 Рік тому +3

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

  • @p.informatico1320
    @p.informatico1320 2 місяці тому

    Even if I'm fast skipping these lessons, because I already know most of it (i studied a technical degree in telecomunications), I think that this is gold for beginners. Well done!

  • @alastairbutterworth3495
    @alastairbutterworth3495 4 роки тому +27

    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!

  • @dmartinez9048
    @dmartinez9048 7 місяців тому +1

    Just dropping a comment to say
    “I absolutely did the homework”
    “It did make a lot of sense!”
    “Audio/Video quality is superb”
    “I know I’m only in lesson 9 but this is SO much fun! THANK YOU!”

  • @tysonclark9167
    @tysonclark9167 4 роки тому +13

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

  • @uniqueupdaterff2234
    @uniqueupdaterff2234 Рік тому +1

    I understood that Pulse Width Modulation works for an given Voltage in a given period of 4 milliseconds it stimulates b/w 5 volts and 0 volts and averages out the signal to get the desired o/p and also that capacitors will help us to smooth out the signals in every interval of time when voltage is being applied.
    Thanks Paul, I understand it clearly you truly are a great teacher and also tech savvy
    I'm glad I found your channel keep the work up!! ❤

  • @kcninjaneer4671
    @kcninjaneer4671 4 роки тому +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!!

  • @RavensHammer00
    @RavensHammer00 Рік тому +1

    I've done some research into the capacitor since 7 months ago, and from all the techno lingo, I think I've come to the correct conclusion in this instance, but I wouldn't mind hearing from an expert interpreter!

  • @hail2287
    @hail2287 3 роки тому +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 👍

  • @matthewwolgamott2463
    @matthewwolgamott2463 3 роки тому

    In lieu of black coffee I watched this while drinking beer, and I followed just fine. Yes, you were very clear.

  • @linnarpewbes6594
    @linnarpewbes6594 5 років тому +11

    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 4 роки тому

      brilliant

    • @sourajdarsan6831
      @sourajdarsan6831 4 роки тому

      @@MrAshwindersingh well i dont get it. ..

    • @Healingmyselfeveryday
      @Healingmyselfeveryday 7 місяців тому

      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?

  • @calvinunruh8062
    @calvinunruh8062 Рік тому +1

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

  • @sadguru1969
    @sadguru1969 2 роки тому +3

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

  • @KK-rg3nj
    @KK-rg3nj 3 роки тому +1

    wow! an actual oscilloscope to show the output waveform all my teachers just draw it on the whiteboard -_- im really happy i found this channel and i hope to complete this series and work on some arduino projects myself. thanks a lot Mr.Paul im really greatful!!

  • @rolstonholas333
    @rolstonholas333 5 років тому +53

    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

  • @frankdelong3471
    @frankdelong3471 4 місяці тому

    I dropped off the hobby for a bit with learning, but Paul really just makes the learning enjoyable and I feel like I can always come back even if life gets hectic and takes me away for a bit. Thanks Paul!

  • @Bob-zg2zf
    @Bob-zg2zf 5 років тому +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 5 років тому +1

      agreed, the eye doesn't respond linearly to brightness

  • @Arnickification
    @Arnickification 3 роки тому

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

  • @magneertresvag
    @magneertresvag 5 років тому +8

    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!

  • @jakedomoto6802
    @jakedomoto6802 3 роки тому

    To practice my analogWrite's I designed a breadboard with 4 LEDs and 4 resistors, I grounded them to the rail on the breadboard then provided individual power to the AWM enabled pins. Then I wrote a program where they would light up in sequence getting progressively brighter as they went. I assigned variables to my brightness, the speed, and the pins themsleves, and an off voltage of 0 for the pins that weren't to be illuminated at the specific sequence. It turned out perfectly. I showed my kids how adjusting the variables could turn the speed up and down. They are very curious about this new kit that dad is always messing with ha ha. Maybe one day they will watch your videos as well. Thank you for being such a great teacher!

  • @piocustodio8468
    @piocustodio8468 4 роки тому +3

    I actually regret not seeing this sooner

  • @Shadowesque
    @Shadowesque 2 роки тому +1

    I don't have someone to teach these Arduino lessons to me, and I really want to learn how to use them. Now, thanks to Paul, I can learn all of the basics and the difficult parts of programming with ease. Thankyou so much for these lessons!

  • @COUTERSTRIKE24
    @COUTERSTRIKE24 4 роки тому +3

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

  • @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!

  • @RohitxArora
    @RohitxArora 5 років тому +4

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

  • @wheelbrace1967
    @wheelbrace1967 3 роки тому +2

    Squaring things up? I have a friend with a framed picture of the leaning tower of Pisa. Every time the trains go past, her picture moves off level and presents the tower vertically... I straighten the picture and then - the tower's back on the hur. Drives me nuts! When I was diagnosed OCD I changed that to CDO - all alphabetically correct and shipshape!
    Excellent videos, Paul - thank you.

  • @chrisbe4463
    @chrisbe4463 5 років тому +14

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

  • @AutoScholarwithMrB
    @AutoScholarwithMrB 3 роки тому +1

    I am an automotive instructor, and PWM is our bread and butter nowadays. I always have difficulty teaching this. You have given me some great ideas to give to my students. I am so glad I decided to look for a channel like this. You are awesome!

  • @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 4 роки тому

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

    • @nabeelahmed4352
      @nabeelahmed4352 4 роки тому

      me i loved this class

    • @langer727
      @langer727 4 роки тому

      Me!

  • @davidlarson2534
    @davidlarson2534 2 роки тому

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

  • @subhopriyojoarder3536
    @subhopriyojoarder3536 5 років тому +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  5 років тому +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 5 років тому +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?

  • @dhaufjebzjchseis3828
    @dhaufjebzjchseis3828 8 місяців тому +1

    what I love about these videos is the under the hood explanations

  • @philipreed2758
    @philipreed2758 5 років тому +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  5 років тому +9

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

    • @williamperry2074
      @williamperry2074 4 роки тому

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

    • @DaveSprague
      @DaveSprague 4 роки тому

      @@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.

  • @berlinjackson1847
    @berlinjackson1847 7 місяців тому

    I am a retired electronic engineer and just now learning c++ and arduino. You are excellent teacher and yes I follow what you are teaching

  • @nexpro6985
    @nexpro6985 Рік тому +12

    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. 😊

  • @jimsimpson1006
    @jimsimpson1006 Рік тому +1

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

  • @chetananam9141
    @chetananam9141 Рік тому +1

    You said rambling? I wish I get more of this rambling in your videos so that I can learn things clearly. You, sir are probably the only one on UA-cam who uses an oscilloscope with Arduino to explain things. Even the most sophisticated teachers of Arduino on UA-cam don't bother probing ( pun intended) deep to bring out the facts. Appreciate your efforts whole-heartedly!

  • @tvtoms
    @tvtoms 4 роки тому

    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!

  • @brandonhiggins5336
    @brandonhiggins5336 3 роки тому

    Not only do I better understand PWM but the smoothing of voltage that capacitors contribute to circuits, THANK YOU!

  • @aynursunagatullin7029
    @aynursunagatullin7029 4 роки тому +1

    Thank you Mr. Mcworther, I now understand how Pulse Width modulation works, it is very interesting, a short recap is that Pulse Width modulation does not exactly give you a analog voltage but instead, it makes it so that it turns on and off creating a pulse, the longer it stays on the closer it is to 5 volts (On the arduino), the longer it stays off, the closer it is to 0 volts.

  • @mikeoxmaul9386
    @mikeoxmaul9386 Рік тому

    I can't believe that in just three days of watching your videos i can tell an led to be on/off or dim/bright using code🤯
    Thank you for passing on your great knowledge 🙏

  • @mattmckee8603
    @mattmckee8603 4 роки тому +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!

  • @dant3838
    @dant3838 3 роки тому

    I'm 48 going through this with my 10 year old. Excellent teaching, thank you so much.

    • @paulmcwhorter
      @paulmcwhorter  3 роки тому +1

      Excellent! Wonderful memories for your son, that his father cared enough to spend time with him.

  • @Focused_Bedlam
    @Focused_Bedlam 6 місяців тому

    the consistency in the intros *chef's kiss*

  • @joeychickenskin
    @joeychickenskin 9 місяців тому +1

    It reminds me of a microwave oven or an induction stove. At full power it is on all the time but at lower powers it alternates between being on and being off.
    I love these videos

  • @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

  • @stephenfitzer6940
    @stephenfitzer6940 3 роки тому

    You may think you are rambling, but it helps answer questions that pop into my head while going through the tutorials. Please keep the rambling.

  • @wallymurray620
    @wallymurray620 4 роки тому +1

    Made perfect sense. Had never thought about or been shown how we digitally altered voltage like this. I had wondered why you just didn’t hookup a digital multimeter instead of the oscilloscope, until you picked an in between voltage and then went “ah ha”, now I get it.

  • @71DJL
    @71DJL 3 роки тому

    you must have read my mind, PWM is something I wanted to understand better for a project I'd like to tackle later once I get further into your tutorials and understand all this better. But in a nutshell, one of the inputs I want to use will be PWM signal. So this gave me a good basic fundamental understanding of PWM and with this lesson how the Arduino outputs PWM. Hopefully in later lessons I'll learn how to deal with a PWM as an input!
    Thanks again Paul for a very concise and easy to understand lesson

  • @bettymckinley8063
    @bettymckinley8063 2 місяці тому

    Paul, thanks for this series. And this was the best one to this point. Not only did I learn about PWM (I had heard of it but didn't know what it meant), but I got to see how an oscilloscope works, what it does and the importance of it when working with electronics. Thank you for that too!

  • @dinosshed
    @dinosshed 4 роки тому

    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.

  • @briansheridan9975
    @briansheridan9975 4 роки тому

    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!!!

  • @DariaNaidonova
    @DariaNaidonova Рік тому

    I never liked physics because I was struggling to understand it. But you made me fall in love with it! Thank you so much!

  • @njasow5234
    @njasow5234 2 роки тому

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

  • @jonweisberg281
    @jonweisberg281 5 місяців тому +2

    Great vid, especially showing the smoothing action of the cap. Fyi, the % of time the signal is ON vs OFF is call the "duty cycle". Also, I think the period should be 2.1mS not 4mS. 4.2 divisions x .5mS/Division = a period of 2.1mS which equals a freq of 476Hz. The specs show 490Hz on pin 9 so that makes sense.

  • @fixolass6877
    @fixolass6877 7 місяців тому

    I am 17 and I am learning this for fun. I can really understand the concepts you give, you are really good teacher. I spend a very good time seeing this videos when stressed about school, they make me relax and learn new things.

    • @paulmcwhorter
      @paulmcwhorter  7 місяців тому

      Excellent! Learning this material is a very good use of your time, and will pay off handsomely for you.

  • @ajsiemers
    @ajsiemers 2 роки тому

    "Does this make sense?".....Well, it actually finally is starting to all make sense to me. It's been said a lot already, but I'll say it too: you're a great teacher!

  • @robin2080
    @robin2080 3 роки тому +1

    Honestly, we all have a gift, and sir your gift is teaching. Great video.

  • @rammuga1341
    @rammuga1341 Рік тому

    Paul you are a fantastic Guru. I'm a Mechanical Engineer and used to hate these topics because I never understood. Your videos are so smooth, I'm falling in love with the Electronics. If I had discovered you or Guru like you 20 years back, my life would have been different. May be i would have landed in NASA, ISRO... Thanks fall all your support. Let peace prevail.

  • @dcrickerson7611
    @dcrickerson7611 3 роки тому

    Great job, Paul! I'm an old retired dude and I'm having so much fun with these lessons.

  • @thetreeoffacts6020
    @thetreeoffacts6020 6 місяців тому +1

    Sir, very nice explanation. U r indeed a great professor.
    thanks a lot sir ,for ur amazing work.
    I finally started to enjoy coding because of u.

  • @ericsmith7988
    @ericsmith7988 4 роки тому

    What it is doing in analog is turning power on and off in "ms" to achieve a overall lower voltage on the output side. I didn't realize that was happening in the controller. Very interesting lesson. Thank you Paul.

  • @daniellehwing4667
    @daniellehwing4667 11 місяців тому

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

  • @mikewilliams3103
    @mikewilliams3103 3 роки тому

    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!

  • @MohammadMohiuddin-bd
    @MohammadMohiuddin-bd 4 роки тому

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

  • @thejusantony8497
    @thejusantony8497 3 роки тому

    Why do I feel like this person is the greatest person alive on this planet

  • @Khujandiho
    @Khujandiho 7 місяців тому

    I saw this 4 years ago and didn't really pay attention. now I need it to create my device . thank you again 🎉🎉🎉

  • @redwhiteblue5041
    @redwhiteblue5041 3 роки тому

    Just as an FYI- I bought the kit through the link in your video to ensure you'd get the commission. These lessons are incredible.

  • @mikebowers7161
    @mikebowers7161 2 місяці тому

    Wow!! I have a cheap Chinese scope and it showed me EXACTLY what the voltage was doing thru the LED. I plugged a cap in and it actually worked like you said. Thank you so much

  • @christianabela6405
    @christianabela6405 3 роки тому

    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...

  • @pd4897
    @pd4897 Рік тому

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

  • @ishanpachauri8983
    @ishanpachauri8983 2 роки тому

    when there's such an awesome teacher , the organization of the circuit doesn't really matter

  • @EndrChe
    @EndrChe 3 роки тому

    The pulse is the voltage being set HIGH, the width is the time for which it remains HIGH, modulation just refers to the fact that that width varies. Even when the half gallon of iced coffee coursing through your veins sets you to rambling, you’re still a more coherent teacher than most.

  • @calister7526
    @calister7526 3 роки тому

    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 . 🤗

  • @Hino_55
    @Hino_55 4 роки тому

    I think of the PWM in the context of the Duty Cycle.
    The Duty Cycle is defined as the ratio of the ON time over the period.
    i.e. Duty Cycle (D) = ton/period = ton/(ton + toff)
    or expressing it in percent...
    i.e. Duty Cycle (D%) = [ton/period] * 100% = [ton/(ton + toff)] * 100%
    For Example:
    If the pin is at 5V for 4% of the period (meaning 96% of the period, it is at 0V)...
    then the average value of the voltage given by the pin is 5V*4% which is equal to 0.2V.
    Hahahaha you are a perfectionist indeed!
    Better be organized!
    You have the best setup for teaching; we can see you talking, we can see you coding and we can see the hardware itself.
    Thank you Sir Paul!!!

  • @MrBravedave777
    @MrBravedave777 3 роки тому +1

    Paul, you are one of the best teachers I've ever heard. Your knowledge of electronics is simply amazing. I used to watch my dad work with electronics and have always been intrigued. Your videos are very interesting (I didn't think you rambled on), and the way you slowly and simply explain things is exactly how I learn. Thank you for sharing your wealth of knowledge. Yes...I do understand PWM now. Oh...and yes, I need things lined up as well. :-)

  • @raynbow6
    @raynbow6 3 роки тому

    What you think are ramblings are exactly what I need to hear to reinforce my understanding. Please keep rambling :-)

  • @philpacella7849
    @philpacella7849 2 роки тому

    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!