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.
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.
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!
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❤
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
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
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!
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.
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....
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
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
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
Thanks Paul, you're like the Bob Ross of Arduinos. Listening to your lessons is almost meditating.
These math examples are priceless. This technique would help on some non-linear sensor signals. Thank you Paul.
Great work Paul, the community appreciates the work you do!
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.
Good stuff!
Wow, what a class, took me two days to complete, with all my grammatical errors.
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.
LEGEND!
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.
It is indeed a wonderful place to be. Love it every day.
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!
45 years since working with them!
Another good one, getting better all the time!
Great, Thanks Paul
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❤
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
5 stars!!!
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
Thank you for your comment brother, I'll add it to the bag!!
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!
Great job!
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.
I was succesful with the Homework!
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
👍
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.
I am Legend 😁👍🏼
LEGEND!
hey i suck at this type of maths as i haven't learnt it yet, are there any videos teaching me the maths needed?
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.
@@paulmcwhorter Ok, thanks!
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....
I am legend
LEGEND!
I was successful ❤
LEGEND!
Thanks ❤
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
LEGEND!
I am Legend. Double chest bump.
LEGEND!
I am Legend - Double Chest Bump
LEGEND!
sorry guys I made a mistake i scheduled my TH-cam and links for tomorrow at midnight.
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
I am legend double shest bump.
LEGEND!
yes, chest bump
Second try posting link to homework for lesson 13: th-cam.com/video/eSpVdHOuvg0/w-d-xo.html
LEGEND!
Legend - th-cam.com/video/uqZZSqhVZlY/w-d-xo.html
LEGEND!
Homework: th-cam.com/video/JUCJsaDbmpg/w-d-xo.html
LEGEND!
th-cam.com/video/8mM2TsPgjZI/w-d-xo.html Homework .
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