How to Blink an LED with Arduino (Lesson #2)

  Переглядів 68,891

Science Buddies

Science Buddies

День тому

Science Buddies Electronics Kit for Arduino: www.homesciencetools.com/prod...
Learn how to blink an external LED connected to an Arduino digital I/O pin using the digitalWrite command. See our complete playlist of Arduino tutorials here: • How to Use an Arduino and the Science Buddies website for cool science projects you can do with an Arduino: www.sciencebuddies.org/search....
0:00 intro
0:10 materials
0:22 how does a breadboard work?
2:28 build the circuit
6:13 write the code
9:13 upload and test
9:28 add another LED
9:50 using the breadboard's buses
13:06 edit the code for two LEDs
14:24 blink the LEDs out of sync
15:18 what's next?
Science Buddies also hosts a library of instructions for over 1,500 other hands-on science projects, lesson plans, and fun activities for K-12 parents, students, and teachers! Visit us at www.sciencebuddies.org to learn more.
#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:
TWITTER: / sciencebuddies
FACEBOOK: / sciencebuddies
INSTAGRAM: / scibuddy
PINTEREST: / sciencebuddies

КОМЕНТАРІ: 49
@user-mw2vg5wz2n
@user-mw2vg5wz2n 7 місяців тому
I purchased a kit through a workshop at my school and this one helped me a lot to do it in the comfort of my house. 🤩Thank you!
@williamt.6990
@williamt.6990 3 місяці тому
This series has really helped me to learn how arduinos worked straightforward and simple thank you
@Nine_883
@Nine_883 3 місяці тому
This is the best beginner series I have seen so far. Thanks for breaking this down. It's still very confusing to me (the code), but I am just going to follow from the very beginning. That Tinkercad program is outstanding for this! I struggle to see the holes and numbers on the boards breadboard in real life! I am always putting my wire in the wrong hole! The Tinkercad program is awesome. And no wires! Hahaha. No mess!
@tedbastwock3810
@tedbastwock3810 28 днів тому
GREAT breadboard demo. Love this series
@Bloxo_co
@Bloxo_co 3 місяці тому
Thank you for this awesome tutorial, as a beginner this tutorial series is gold. Please continue making such great tutorials.
@Science.Buddies
@Science.Buddies 3 місяці тому
Thanks - we just published one and have another one coming shortly - stay tuned!
@chaklecharcoal2748
@chaklecharcoal2748 Рік тому
Great tutorial man I like it ❤💯
@CCHRIS001
@CCHRIS001 4 місяці тому
thanks man this helped alot and now i have made 5 lights with it
@joandemello
@joandemello 17 днів тому
Chanced on your channel and must say , excellent explanation. Thanks
@aniAxiu
@aniAxiu 4 місяці тому
Im a student learning arduino & tinkercad ! ! Thank you so much for your explanations, they surely help!❤
@Science.Buddies
@Science.Buddies 4 місяці тому
You're welcome! This is an entire playlist so make sure you check out the rest of the videos too.
@NehemiasNolasco
@NehemiasNolasco 8 місяців тому
Thank you so much for teaching me, this was my very first project
@ShopIronFitness
@ShopIronFitness 2 місяці тому
Awesome video, keep going bro, this helped me learn how to use Arduino
@junaidkhateeb
@junaidkhateeb 5 місяців тому
Wonderfully explained...simple and clear. Thank you
@kabandajamir9844
@kabandajamir9844 13 днів тому
The world's best teacher thanks
@roeepearl7897
@roeepearl7897 4 місяці тому
great tutorial, Thank you❤
@picknikbasket
@picknikbasket Рік тому
These Arduino tuts are great!
@Science.Buddies
@Science.Buddies Рік тому
Thanks - stay tuned, we have more coming!
@Electraboy01
@Electraboy01 Місяць тому
Works well thx ❤
@danielevan4564
@danielevan4564 6 місяців тому
“ you might’ve built your circuit like this” Ey yo mine don’t look like that 😂 but it worked! The code first try had them blinking separate fixed it
@oveschleisner-meyer8139
@oveschleisner-meyer8139 26 днів тому
Thank you for this video. Since I'm new to the Arduino world i have a question.... How do you get the program you have made on the Arduino UNO board into a microcontroller used and placed on your project on another PCB...?
@Science.Buddies
@Science.Buddies 25 днів тому
Hi - this is a bit more than we can explain in a UKposts comment, we recommend asking on the official Arduino forums. Very long story short, we don't have our own tutorial on it, but the Arduino board contains a extra circuitry that handles USB communication with your computer and makes uploading code very easy. If you just want to buy the bare microcontroller chip and put it on another PCB, you then need to handle that part (flashing the code to the chip) yourself. There are other things the Arduino board includes, like voltage regulation so you can power it with a 9V battery or wall adapter, that aren't included in the bare microcontroller chip, which you would need to account for when designing a separate PCB. Again we don't have our own tutorial but you should be able to find instructions online.
@oveschleisner-meyer8139
@oveschleisner-meyer8139 25 днів тому
@@Science.Buddies Thank you so much for your answer. I understand what you mean and I will find a Arduino forum...
@castelmichel8670
@castelmichel8670 6 місяців тому
Thanks for not assuming that we already know the basics. what if I want to use a device that requires more current than the Arduino can provide? Thanks
@Science.Buddies
@Science.Buddies 6 місяців тому
Check out our full playlist, particularly #16 about controlling motors and #19 about power: ukposts.info/slow/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=opGDZTZlbl7VYF6t
@axiskj8555
@axiskj8555 2 місяці тому
how much time it takes ?bcuz in using a ATMega328PB is it okay ?
@TheW00tguy
@TheW00tguy 5 місяців тому
For two LED's could we just connect the two LED's with one resistor so that the resistor is in series with the LED's in parallel? Or is that different?
@Science.Buddies
@Science.Buddies 4 місяці тому
The answer is a little too complicated to explain in a UKposts comment. We just added an entire playlist about the math behind LED circuit design, we recommend you check that out: ukposts.info/slow/PLlBVuTSjOrclaUU1nI3afV1jp8vj4iQUf&si=FPnWpc1Hkfmyjcfk
@kyriakoskovsenoglou3502
@kyriakoskovsenoglou3502 6 місяців тому
Hello!! Great job!! I am rookey and I have a question. I have Arduino Nano. Where can I put the Red cable? Because nano is smaller than Uno and does not have the Arduino 12 port(pinMode12) .
@Science.Buddies
@Science.Buddies 6 місяців тому
Hi - all our tutorials are for the UNO, so you may have better luck getting answers to your questions on the official Arduino forums.
@aksvinss
@aksvinss 6 місяців тому
u can change the port 12 to some other port (must be digital) and change the port number in the code, so that all places with 12 are the other port you are using
@kyriakoskovsenoglou3502
@kyriakoskovsenoglou3502 6 місяців тому
​@@aksvinssthank you! It works!
@yulianvutov3357
@yulianvutov3357 6 місяців тому
Hi there, I purchased a kit from AliExpress, and I built the circuit correctly. The LED does blink every 1 second but sometimes it ''jumps'' (goes off earlier or stays on longer). I tought the problem may be in the end of my program as it is a loop, but I wrote the exact same program you did.. Any idea why does that happen?
@Science.Buddies
@Science.Buddies 6 місяців тому
Hi - we haven't heard of that problem before. The only thing I can think of is a loose or intermittent connection with part of the breadboard. The amount of time it takes the code to execute a loop should not change from one loop to the next. There's also a chance of a faulty I/O pin, you could try switching to a different pin and see if it's more consistent.
@immortalwolve6431
@immortalwolve6431 11 місяців тому
Hey I didn't connect it like you expected in the question but I still got it to work. What do I do?
@Science.Buddies
@Science.Buddies 11 місяців тому
Hi - that's OK, there is frequently more than one "correct" way to wire the circuit.
@immortalwolve6431
@immortalwolve6431 11 місяців тому
@@Science.Buddies okay. Thank you for a great video
@timkuldayev8857
@timkuldayev8857 5 місяців тому
Hello! What is the resistor that you used here?
@Science.Buddies
@Science.Buddies 5 місяців тому
That is a 220 ohm resistor. We have an upcoming video series about choosing the proper resistors for LEDs, stay tuned!
@shortstuffnay1733
@shortstuffnay1733 6 місяців тому
I know this video old but I’m using Arduino right now and I got all my led working but 2 of them won’t blink on and off and I been stuck on what could be wrong that only one light will blink btw I’m doing a traffic light project
@Science.Buddies
@Science.Buddies 6 місяців тому
Hi - we can't necessarily help with your exact circuit, but our troubleshooting video might help you identify problems: ukposts.info/have/v-deo/cXd9lYtkeXl2soE.htmlsi=sb0o-Ncuy2_XZL76
@aniAxiu
@aniAxiu 4 місяці тому
Same! We just did a manual traffic light!😮
@CentralBaby-tm7vq
@CentralBaby-tm7vq 25 днів тому
do for me pixel5
@kresakkornel9671
@kresakkornel9671 5 місяців тому
How did you make the red led that bright? When i tried this it was very dim
@vitorperissotoindustrial
@vitorperissotoindustrial 5 місяців тому
Your resistor may be a higher value. Also LEDs can vary on their brightness specs
@Science.Buddies
@Science.Buddies 5 місяців тому
The LED's apparent brightness can change depending on the camera settings, but like @vito8625 said, it depends on the resistor value and the amount of current through the LED. We have a new video series coming out about choosing the resistor value, so stay tuned!
@kresakkornel9671
@kresakkornel9671 5 місяців тому
Thanks!
@kresakkornel9671
@kresakkornel9671 5 місяців тому
I used a 220 ohm resistor so i'll try with a lower resistance resistor
@roeepearl7897
@roeepearl7897 4 місяці тому
great tutorial, Thank you❤
How to Debug a Circuit (Lesson #3)
5:33
Science Buddies
Переглядів 16 тис.
How to Use a Button with an Arduino (Lesson #5)
20:57
Science Buddies
Переглядів 54 тис.
How to use a BreadBoard - Electronics Basics 10
7:22
Simply Electronics
Переглядів 804 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 365 тис.
Arduino Ultrasonic Motion Sensor: Motion Sensor and LED project
17:20
10 Incredible Arduino projects of the year 2022!
8:15
ToP Projects Compilation
Переглядів 668 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
How to Use a Breadboard
0:58
Science Buddies
Переглядів 158 тис.
Arduino Tutorial: LED Sequential Control- Beginner Project
3:53
Drone How
Переглядів 1,3 млн
Chernobyl Nuclear Fallout Is Still In Our Food
8:02
The Action Lab
Переглядів 24 тис.