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

preview_player
Показать описание
Pick your Sunfounder kit up so you get the same results I do:

You can pick up the neat jumper wires I showed in the video here:

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video I show you how to create a dimmable LED controlled by a potentiometer. I will show you how to build the circuit, do the math, and code the solution. Enjoy!

#arduinor4wifi
#potentiometer
#tutorial
Рекомендации по теме
Комментарии
Автор

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!

andrewhodson
Автор

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.

larryb
Автор

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

qzorn
Автор

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.

louistoweill
Автор

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

ryanholt
Автор

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.

hammermekanik
Автор

Another good one, getting better all the time!

steveholt
Автор

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❤

LeHossainy
Автор

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

sumeetchaudhary
Автор

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

xaninator
Автор

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!

DrDave
Автор

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.

masmanst
Автор

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

akselhansen
Автор

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

FreidonNasrat
Автор

Problems getting the comment to stick in Lesson 12. Maybe it will stick here. Here is the homework for Lesson 12:

robertschuldenfrei