Arduino Uno R4 WiFi LESSON 13: Dimmable LED Controlled by a Potentiometer

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

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

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

    Thanks Paul, you're like the Bob Ross of Arduinos. Listening to your lessons is almost meditating.

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

    These math examples are priceless. This technique would help on some non-linear sensor signals. Thank you Paul.

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

    Great work Paul, the community appreciates the work you do!

  • @louistoweill4232
    @louistoweill4232 8 หลายเดือนก่อน +1

    After seeing Paul's solution, I also ran the circuit with a base e logarithmic simulation and it also worked well. I have learned a neat idea from this lesson. Thank you, Paul.

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

    Wow, what a class, took me two days to complete, with all my grammatical errors.

  • @larryb6759
    @larryb6759 8 หลายเดือนก่อน +2

    I am Legend. Double chest bump. On the 2nd time after a commit from a viewer. Thanks to Keith reminding me to do some more math.

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

    I absolutely love the view from your backyard, such a calming backdrop to aid in the absorption of technical material. I wish I could have it on my PC background to stare at when solving problems. Congrats on achieving this. And of course, im still loving the classes when I can get enough time to complete one. Please dont stop.

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

      It is indeed a wonderful place to be. Love it every day.

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

    Hi Paul, I got it working but took a few rewinds in the lesson to understand the concept! At 63, it's been a few years, around 45 of them, with working with the power concept!

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

      45 years since working with them!

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

    Another good one, getting better all the time!

  • @Sideloader99
    @Sideloader99 8 หลายเดือนก่อน +1

    Great, Thanks Paul

  • @LeHossainy
    @LeHossainy 8 หลายเดือนก่อน +1

    Hi Mr. Paul. First, I want to say thank you for your efforts, and I have few questions I hope you answer them.
    1- which board do you think is the Most suitable to build a quadcopter (Stm32- raspberry pi pico /4- arduino uno /mega) please note that this drone will handle heavy tasks and It will contain GPS and handle a fpv camera and will be able to cut 10 km as range ( using the Lora modules or a specific type of nrf ( I forgot it 😁)
    2- do you think learning on the hardware development boards is enough to become an expert or you should learn how to work with a pure microcontroller such as (Pic series) with a compiler
    Thank you❤

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

    I plugged my led directly to the output of the potentiometer, and connected it to ground. I turned the dial up, it got bright, then POP! I forgot the resistor hahahahahaha

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

    5 stars!!!

  • @zrig1
    @zrig1 2 หลายเดือนก่อน +1

    The math messes me up. Been almost 40 years since I was in high school. Lots of skill fade. LOL. I went a different route. If you divide your pot value by 1026.0 (gives a float response) you will get a value between 0 and 1. 1026/1026 = 1. 1026/0 =0. Using the pow function all you need to do is multiply this value by 8 and subtract 1. Same result without chaos math. Don't know if it is the most efficient way,but, here is how I got there:
    // Set potValue to a range of 0 to 1
    float setVal = potValue / 1023.0;
    // Use an exponential function to calculate ledValue (0-255)
    int ledValue = pow(2, setVal * 8) - 1; // Scale to 0-255

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

      Thank you for your comment brother, I'll add it to the bag!!

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

    Correction on my homework after watching your lesson: I should have calculated the potVal 0-1023, not 0-1024. Thanks for your attention to detail, Paul!

  • @61markt
    @61markt 26 วันที่ผ่านมา

    Curious. writeVal=pow(2 , int(potVal/127.875))-1 to return an int I had to cast the calculation, otherwise it kept returning a float, even though writeVal was declared an int.

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

    I was succesful with the Homework!

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

    Hello Paul, can you do some lessons using the wifi module of the board such as using the browser of my computer to toggle the LED on the board

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

    👍

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

    Lesson 12 homework, digitalWrite instead of analogWrite folded up my lawn chair. More than a hour before the led went off or in this case on.

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

    I am Legend 😁👍🏼

  • @Adrian-s1b7t
    @Adrian-s1b7t หลายเดือนก่อน

    hey i suck at this type of maths as i haven't learnt it yet, are there any videos teaching me the maths needed?

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

      Just watch what I do in the video. then, notice I keep using the same math throughout the class. You will get comfortable with it.

    • @Adrian-s1b7t
      @Adrian-s1b7t หลายเดือนก่อน

      @@paulmcwhorter Ok, thanks!

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

    I think there is an minor error in the calculations between potval and writeVal..
    One has 1024 numbers and the other 256. Just divide by 4.... no fraction....

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

    I am legend

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

    I was successful ❤

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 8 หลายเดือนก่อน +2

    Problems getting the comment to stick in Lesson 12. Maybe it will stick here. Here is the homework for Lesson 12: th-cam.com/video/McWKlk5unHU/w-d-xo.html

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

    I am Legend. Double chest bump.

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

    I am Legend - Double Chest Bump

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

    sorry guys I made a mistake i scheduled my TH-cam and links for tomorrow at midnight.

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

    Got a little confused with the writeVal output and how the exponential equasion would control it but i think i understand it now th-cam.com/video/WNxhTwfyHqA/w-d-xo.html

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

    I am legend double shest bump.

  • @61markt
    @61markt 26 วันที่ผ่านมา

    yes, chest bump

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

    Second try posting link to homework for lesson 13: th-cam.com/video/eSpVdHOuvg0/w-d-xo.html

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

    Legend - th-cam.com/video/uqZZSqhVZlY/w-d-xo.html

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

    Homework: th-cam.com/video/JUCJsaDbmpg/w-d-xo.html

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

    th-cam.com/video/8mM2TsPgjZI/w-d-xo.html Homework .

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

    Homework Done! It worked fine. (Its´s a shame!, I already don't know how to make and upload regular videos, but I hope next week I will. I really don't blame you if you don't want to see it)... th-cam.com/users/shorts22AQ293A3zY?si=cx3gGANqUd-0ZvfY