Arduino Uno R4 Wifi LESSON 3: Blink an LED With the Arduino
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2024
- Pick your Sunfounder kit up so you get the same results I do:
amzn.to/3SciApZ
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:
/ paulmcwhorter
In this video I show you how to control an external LED using the Arduino R4 WiFi board. I show how you use a breadboard to connect the circuit up. I explain the importance of using a current limiting resistor, and then show you the code I developed. The goal was to create a blinking SOS signal using a red LED.
[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
#LED
#tutorial - วิทยาศาสตร์และเทคโนโลยี
hey, just wanted to let you know you are the best teacher I ever had. You deserve all the views and so much more and I cannot express enough how thankful I am for everything you have done. I will try my best everyday and hopefully someday I can repay you back for your hard work, inspiration, motivation, laughs and so much more you have done for me, the community and everyone else that watches your videos. Thank you for everything, you are the best!
Thank you for the kind and encouraging words!
Such an amazing teacher, the love and the passion is quite evident
I have my Sunfounder kit and am following each lesson I really enjoy your way of teaching and I have learned so much I have followed all your older lessons on the Arduino and can now, do the home work, I used to fold a lot of lawn chairs but now I am legend lol.
LEGEND!
The code for this was easy and straightforward... Just use PinMode to declare the use of pins 10-13. Then digitalWright for each to go HIGH, then delay, and go LOW...
I chose pins 10-13 so it would be easy for me to think of pin 10 as the Least Significant Bit (LSB) and Pin 13 as the Most Significant Bit (MSB)...
The 4 LEDs could be read to get the status of a 16-bit word sent to one of the 16 relay boards... If I was to draw a schematic and layout a PCB I'd make them D3, D2, D1, and D0...
This so much fun...
back to the lessons! you're a legend, professor
I am legand. I finally got my Sunfounder Explorer kit today
Excellent!
bro i got it same day as you
You forgot the double chest bump. :-)
Great lesson 😁
Sunfounder kit ordered & will be here next Tuesday.
Have fun!
Thanks again for this great content, I noticed in these new lessons you are not stressing the importance of comments in our code like you have done previously. Once again thanks.
Once again Great Lesson
Good explained- all is running well!
Good to hear!
Thank you Paul!
Thanks for your all your lessons. I had a thought for one...would you be willing to do a more advanced series inlcuding coding something like the game tic tac toe?
I am eagerly waiting for your tutorial which shows how to connect the R4 via Bluetooth to the Laptop and then send the sketch via Bluetooth to R4 ( assume R4 powered just by a simple power adapter/ mobile charger) and then make it blink.
Paul, you are legend! 🤩
I like your stuff but as an old ham radio operator I have to tell you your code sends VTTS. Your first dah is part of the first letter due to the spacing. Extra space between the two dahs makes them each a T.
i finished the lesson with success
Thank you for your videos. Unfortunately, the link to the kit does not work in France. Too bad.
Another project completed. Thanks once again Paul for your help in learning about the Arduino R4 Wifi.
Link to Video: th-cam.com/video/ME4sJa0fj2E/w-d-xo.html
Excellent video, and a really neat, clean build. Well done.
Showing how to solve bugs is perfect. Sadly many teachers don't do it. But you should show beginners better how to structure the code better. (I mean the missing tab/space in line 3. You tried to fix it one time in the loop source, but there are still a few left. I know, it sounds overdone for a beginner, but if a beginner doesn't learn it from the beginning, then his code will pretty fast very ugly and it will difficult to read and find bugs. For example if you see your video at time stamp 11:14. The missing ; in line 10. A few of my students paste it before the } in line 10 instead of at the end of line 8, because that is written in the error. And they done it, even I explained it more detailed than you. I bet some of your students might make the same mistake. We (teachers) must care about that. So we need to explain much more detailed and/or better check the source of the students.
Thanks for another lesson Paul , I managed the homework with SOS fine, Still trying to perfect making videos with links back to the lesson. Paul Arduino IDE is asking me to upgrade to 2.3.0 I will resist till you say upgrade.
See you next week.
I am going to stay on the existing IDE until I see a compelling reason to upgrade.
Question, is it 8ma per arduino or 8ma per pin? If per arduino, is there an integrated function within the arduino that live reads the total amperage its sensing or is a multimeter needed for this?
Great video. I used a for loop to count the number of flashes for each letter. for(int i=0; I
Nice work!
I most certainly did not fold up like a Walmart lawn chair; I AM LEGEND! *chest pump* ; *chest pump*
kit not available in eu\italy :(
Hi Paul,
Have you tested the RTC on the R4? I have 2 of them.
It is so inaccurate that it is unusable. one is gaining 10 minutes in 4 hours and the other gained 6 minutes in 3 hours.
How can Arduino release this Uno R4 with such a flaw? a DS3231 keeps very accurate time like 1 Minute over an entire year.
Have not played with RTC. Sounds like a bug.
Waiting for mybandrino
Yup....Legend
LEGEND!
Here is my video: th-cam.com/video/my-gTQwPixs/w-d-xo.html Unfortunately the second program only works on an Arduino R3 and not an R4. Work in progress!!
Why would we need to use 4 digital pins ? (unless we want to control them independently ;-) ) ? One pin can do the trick as well. Great content and nice teaching approach, helps me explaining tech to my kids :-))
I want you to go back and think about lesson 2. How much current can an arduino pin provide? When we chose a current limiting resistor we designed it to draw how much current? If we connected 4 LED to one pin, how much current would we draw? Poof! Dont fry your arduino!
Isn’t the risk of frying the Arduino only matérialised if the resistors are in parallel ?if there’s only one resistor right after the 5 v pin , before setting up the led in parallel wouldn’t the current be limited ?
But the LEDs won't be as bright. The 1k resistor will be limiting the current from the pin to 8mA, but the LEDs will be sharing that 8mA, so they will be passing about 2mA each. (There is some tolerance in components, so they are unlikely to the 8mA share perfectly.)
@@martindasilva4358 Paul is trying to keep it simple and straightforward to teach basic concepts. Yes, there are variations to circuit design that may be successful with a particular strategy in mind, but those details are not in the scope of teaching the basics.
absolutely true. @@DrDave327
I am legend!
LEGEND!
Debugging is half the fun as long as it's not half the time it took you to program it
How many lessons can we expect in this new tutorial series?
Lots and lots. I already have the first 32 done, and release one lesson a week on Thursdays. Expect more than a year of lessons.
That is fabulous news. On Tuesday I will be 81 years old, so that may be a lifetime of lessons :). Keep up the good work@@paulmcwhorter
@@paulmcwhorter Great news sir... 🙏
Completed - th-cam.com/video/9P4dbSBYk-Y/w-d-xo.htmlsi=SHiQpuHUQhxpTBEy
LEGEND!
Was able to get it to work but I'm going to need another breadboard the slots in this one are too loose. Parts just drop into them without a tight connection
th-cam.com/video/PadTOT-Rofk/w-d-xo.htmlsi=lR5cJ14n7kL9SfOe
LEGEND! Nice neat build, well done.
I am legend
LEGEND!
My solution. th-cam.com/users/shorts7sQmzckePI8?si=L_qiq_Ed_27Z-wtt, I figured while awaiting more complicated circuits, i would play around with the coding. I didn't know HIGH/LOW could be handled as a boolean variable or the pin number as an integer.
Excellent!
I am a legand but I cheated a little as I did this 4yrs ago in your other class:) Why does digitalwrite or others turn red if its not spelled correctly??
Yes, that bothers me too. Really I hate IDE 2.X
i am legend. double chest pump
LEGEND!
I was successful in posting comments to the 4 year old Arduino thread and the new supplemental R4 thread posted last night. Will this comment stick? If it does, what changed?
Robert, your comments are getting posted. As I have said several times before, if you post a link with no other text, or post a link to an external, non-youtube site, or if you are running an ad blocker, your comments will be blocked by the system.
Homework for this lesson - th-cam.com/video/ilPnUfnKrq8/w-d-xo.html
LEGEND!
Late HW 2 and 3 Paul's LiveStream Built In display as a bonus. th-cam.com/video/7vrJ9IYaKRU/w-d-xo.html
LEGEND!
Homework #3 fresh off the griddle and it is piping hot! th-cam.com/video/2DZboIXjIKE/w-d-xo.htmlsi=s8wBsjhl4OMM3VSS
LEGEND!
And my homework for this lesson th-cam.com/video/DRwmwQ1gKZg/w-d-xo.html
Excellent!
Great lesson as usual, here is my lesson 3 homework :- th-cam.com/video/rMOXRHSLhMw/w-d-xo.html
LEGEND!
I am Legend !!! Double Chest Thump!!! My homework video is here: th-cam.com/video/ZY2t_dqyTe4/w-d-xo.html
LEGEND!
I was successful, but the video never appeared.
Not sure, sounds like a problem with youtube. If you are running an ad blocker on your browser, I have heard that can impact ability to post comments.
Got my HW done just before the Super Bowl Party will start! th-cam.com/video/dBCTf8My2-w/w-d-xo.html
Nice work!