Arduino Uno R4 WiFi LESSON 15: Controlling LED Based on User Input From Serial Monitor

Published 2024-05-02
Pick your Sunfounder kit up so you get the same results I do:

amzn.to/3SciApZ

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

amzn.to/3U2vyIe

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:

www.patreon.com/PaulMcWhorter

In this video I show you how to create a dimmable LED that is controlled by input from the user through the Serial Monitor. Enjoy!

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

#arduinor4wifi
#serialmonitor
#tutorial

All Comments (21)
  • @MarkHopewell
    I've said it before and do so again, how lucky the students are to have Paul helping them along their learning journey.
  • @ryanholt2509
    When i originally attempted this assignment, i mapped the write value using the equation y=(2^(x/1.25))-1 and in the end the functionality was extactly the same as Pauls. Initailly i thought i had done something wrong as the input of 1 didn't turn on the light at all (perceivably at least) but then after watching this episode i see that was supposed to be the case.
  • @iPadChannel
    For some reason, I couldn't get my patreon payment system to work, so here's my way of thanking you Paul. You are a legend!
  • I will not be doing any videos for a while. I am setting up my lab with the raspberry pi4 for control. Still working to sort out all the things that do not work. I was wondering if anybody has a way to download the Arduino IDE 2.0 for the Pi 4. Have not found a way yet. Thanks Paul for the videos and the great instruction. Love it.
  • @larryplatzek9017
    Good lesson combining things learned into one program! Also review on powers and Logs! Thank You Paul!
  • I hope with all that you are teaching me I can program my cat for a funny cat video
  • @310765
    I would have loved to have seen you draw the exponential curve and explain it, but what a great lesson, thanks Paul 😃👍🏼
  • @LeHossainy
    beautiful video, Thank you, Mr. Paul😀.
  • @qzorn4440
    Thanks! It is time for me to get back to the Arduino Uno R4 WiFi classes. I have been busy with KiCad 8 & PCBway to make an op-amp IL300 isolated amplifier circuit-board. Thank you for a most interesting Uno LED Lesson #15 and I love the math. 🥳
  • @FreidonNasrat
    it was a great lesson, now I have it because we can't see the red LED and we can not perceive 7 and 8 typing on the serial monitor
  • @leeg.1402
    Sorry I missed the premier (again). Dealing with health issues at present. Thanks for another great lesson!! * I too still have my K&E slide rule from the 60’s. It’s made of mahogany. Beautiful!! * BTW, I got the threading sketch to work first time! Sure seemed easier than when we went thru it on the RPi.
  • Hi can you do tutorials on matlab please.control systems,pid control,simulations etc.thanks in advance
  • I am legend (Double Chest Bump)! I've had a busy couple of weeks, and so I'm a bit behind.
  • @RainerReichert
    Hi Paul, if I use the the following formula "writeVal = pow(2,(8./10.)*ui)-1" I get with ui=10 / writeVal=254 With the formula "writeVal = pow(2,(8./10.)*ui)-0.5" I get with ui=10 / writeVal=255. Why does it work with your program different?