Тёмный

Arduino for kids: Random Blinking LEDs 

learnelectronics
Подписаться 167 тыс.
Просмотров 6 тыс.
50% 1

Arduino for kids: Random Blinking LEDs
Shopping list:
leds: amzn.to/2NaC7YC
potentiometer: amzn.to/2NaCKkW
Arduino uno: amzn.to/2IZmDRw
22AWG hookup wire: amzn.to/2FpgkG5
breadboard: amzn.to/2XuUn2u
1k resistors: amzn.to/2N01WKK
-------------------------------------------------------------
Yes!! I now have merch: teespring.com/stores/learnele... Electronics themed T-Shirts!
HEY YOU ABOUT TO POST SOMETHING STUPID:
Yes, I know my hands are large/fat. It's because of a heart condition I suffer from called Congestive Heart Failure. Here's a link to some information about CHF: cle.clinic/2TdS2Ux
One of the symptoms is that is causes fluid retention, mostly in the hands, feet/ankles, and face.
It will kill me one day. I'm doing ok right now, but someday...
--------------------------------------------------------------------------------------------------------------------
If you are shopping for electronic components, test gear or consumables please consider visiting my Amazon shop @ amazon.com/shop/learnelectronics
Please check out www.patreon.com/learnelectronics and pledge a dollar if you can. It will go a long way to keeping the channel alive. It costs a bit of money to buy all the items and produce these videos. You help is appreciated.
---------------------------------------------------------------------------------------------------------------------
Or....if you'd like to send a one-time donation you can use this link: paypal.me/learnelectronics
----------------------------------------------------------------------------------------------------------------------
Here is all the gear I currently use:
Oscilloscope: Micsig STO1104c amzn.to/2UPPZeg
Power Supply 1: TekPower TP3005N amzn.to/2TeQnxI
Power Supply 2: RUIDENG DP50V5A amzn.to/2sNicSe
Signal Generator: JS2800 ban.ggood.vip/d9vk
DMM1: Owon18B amzn.to/2SbIGLs
DMM2: Aneng 8008 amzn.to/2sNQncI
DMM3: Aneng 8009 amzn.to/2S5qeEp
DMM4: Uni-T UT801 amzn.to/2S89SuL
Soldering Station1: Zeny (Yihua)862D+ amzn.to/2S49z4e
Soldering Station2: KSGR T12 amzn.to/2Wk7Dn9
Light Meter Smart Sensor AS803 amzn.to/2B2gyRg

Наука

Опубликовано:

 

9 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@captainpugwash4100
@captainpugwash4100 5 лет назад
What do you mean? “For kids!” I love blinking LEDs!
@mikedelazzer6062
@mikedelazzer6062 5 лет назад
Love the idea of Arduino for kids. Learning this for the first time in my 60’s but want to do these projects with my grandchildren
@davidmoran4471
@davidmoran4471 5 лет назад
I am currently building a busy board for my youngest grandchild. Switches, doors, locks, latches...... This one is all manual, he is only 5 months old, but his bed is a police car coming in 2 days, I want to add a light and quiet siren to it for him.
@gapadad2
@gapadad2 5 лет назад
Nice, I never played around with random numbers with an arduino. I hooked up the circuit and noticed the last led never lit. I had to change this line... int myLed = random(2, 10); you have it set (2, 9). Nice videos Ive been a long time subscriber but don't comment much.
@RepTalez
@RepTalez 5 лет назад
This 51 year old kid loves blinking lights, and learning how to make them blink. Great video!
@PawOfRizzo
@PawOfRizzo 5 лет назад
Got my learningelectronics stickers the other day! Highly recommend! Great quality. Good for laptops, toolbox, etc! Got my "Types of Logic" tshirt on the way....Probably cut the sleeves off to drive the ladies wild all Summer when they see me in it!
@MrMr999Mr
@MrMr999Mr 5 лет назад
Love the video! One minor correction to your code. The "max" parameter in the random function is exclusive, meaning your code will only light up pins 2 to 8. To include pins 2 to 9 you must put: int myLed = random(2,10);
@certified-forklifter
@certified-forklifter 5 лет назад
yes, your right! but the video is great!
@keithking1985
@keithking1985 5 лет назад
Wow. Thanks for luv Paul. Love your vids.
@wreckless_-jl6uu
@wreckless_-jl6uu 5 лет назад
*Always like your videos!!!! Cool man!*
@georgechambers3197
@georgechambers3197 5 лет назад
Great stuff. It didn't look like the last LED ever blinked? Blinking LEDs are very cool though. Thanks for the video!
@learnelectronics
@learnelectronics 5 лет назад
yep, I think it was an issue with my code.
@brendanhawthorne7837
@brendanhawthorne7837 4 года назад
Thank you!! Helped me with a project I’m working on :)
@milosgagic4820
@milosgagic4820 5 лет назад
Great video! Thanks!
@timwsac
@timwsac 5 лет назад
great video paul just right for a newbee like me thanks
@DonGoddardAllAboutPaint
@DonGoddardAllAboutPaint 5 лет назад
Great video! I'd like to see more of these. My daughter (14) and I kind of got into Arduino together. But she gets bored with it easily. I could show her this and give her the parts and let her put it together. And then have her integrate it into a design for her room that we could 3D print.
@learnelectronics
@learnelectronics 5 лет назад
I have a whole playlist of these.
@DonGoddardAllAboutPaint
@DonGoddardAllAboutPaint 5 лет назад
@@learnelectronics Go figure. I guess I should go check out that section, eh? LOL I'm old... don't judge me.
@haroldpalmer3245
@haroldpalmer3245 5 лет назад
Very cool !
@MCsCreations
@MCsCreations 5 лет назад
Pretty interesting, dude!!! 😃
@keithmiller5042
@keithmiller5042 5 лет назад
That is such a clear explanation even I could follow it ! Also it is exactly what I need for a little project we are playing with - thank you Paul. A few others have mentioned the possibility of using just one common resistor: As the LEDs can only light one at a time, why have a separate resistor for each one? Am I missing something fundamental?
@learnelectronics
@learnelectronics 5 лет назад
You could use one resistor, no problem.
@keithmiller5042
@keithmiller5042 5 лет назад
@@learnelectronics Thanks Paul. Just got your sketch to compile OK, so looking forward to sorting out the breadboard when I get back tonight. Just a 75 year old kid, looking forward to more like this!
@MEATHEADBooYA
@MEATHEADBooYA 4 года назад
Hey, I was wondering if you could help me. I am using the standard LED Blink Example, however, I want it to blink randomly between a certain time frame. For instance I can click my mouse 3 times a second however, this changes a lot. My goal is to activate the random LED Blink to do around 2-7 blinks per second then say the second after that do 4 - 6 blinks a second. Is there much to being able to do this? Thanks
@bblod4896
@bblod4896 5 лет назад
That was nice. Perhaps I should get one of those little computers and try that out. By the way, I did not see the green LED on the far right blink even once. Thanks for the video.
@keithking1985
@keithking1985 5 лет назад
Your right... perhaps he forgot to add that pin when programming the board!!
@albertbradfield2311
@albertbradfield2311 5 лет назад
The reason is that in the random(2, 9) expression, the last number is exclusive, so for the whole 8 leds to light up, it should have been random(2, 10).
@keithking1985
@keithking1985 5 лет назад
Ok got that Albert. But could you use a resistor to replace the last LED instead if you wanted to?? Or something else.
@augustograton8958
@augustograton8958 5 лет назад
Thank you very much !!! (Muito Obrigado !!!)
@keithking1985
@keithking1985 5 лет назад
For kids.... for me more like it. Cool video....
@MichaelAMalone
@MichaelAMalone 5 лет назад
Using individual 222ohm resistors I was wondering about connecting other led cathodes to the same resistor.... is that cool? would I need a different value?
@keithking1985
@keithking1985 5 лет назад
It might leave them dimmer cos they will be sharing the current. I think.
@bipolarchemist
@bipolarchemist 5 лет назад
You did a great job walking through the code and explaining each line. Not bad for someone who claims to not be all that great with the coding aspect of things. One thing that I caught when you were talking about analogWrite is that you mentioned it has a 10-bit range. While true for analogRead, the input for analogWrite is 8-bit. I know, it makes no sense, but there you have it. It will accept numbers higher than 255, but I believe they wrap around and you may end up with odd results. And for the more advanced kiddos out there, you can declare myDelay as static in the main loop. It will retain the last value between each call of loop and removes the chance that some errant function outside of the loop accidentally changing the value. Not a huge issue here, but it could offer a chance to explain some more advanced topics and why it might possibly be bad for something outside of the main loop to change the variable.
@learnelectronics
@learnelectronics 5 лет назад
Thank you so much for sharing that info. That's what makes this a great community. I love it when folks have great information to add, it helps everyone. Me included!!
@theteenengineer7589
@theteenengineer7589 4 года назад
good video!
@sewaerla
@sewaerla 7 месяцев назад
for what do i need the capacitator. Worked also without?
@learnelectronics
@learnelectronics 7 месяцев назад
Well then I guess you didnt. It's a reservoir cap. Keeps the voltage smooth.
@hobbyrob313
@hobbyrob313 5 лет назад
nice video BUT why not started with BLINK!? is much simpler to understand ( I think! ) friendly greetings from The Netherlands Rob.
@bobking6119
@bobking6119 3 года назад
Hi, as a beginner that was a good explanation, thankyou. I am creating a new game and was hoping that you would let me know if it is possible to have a random time between flashes of between 2 to 10 seconds.
@nid274
@nid274 5 лет назад
doesn't those leds need current limiting resistors?
@keithking1985
@keithking1985 5 лет назад
He has them on the SIP resistor. It's got nine resistors in one package with a common pin. Their space savers.
@learnelectronics
@learnelectronics 5 лет назад
Watch video @ 1:09 mark.
@nid274
@nid274 5 лет назад
I see, some how I missed that part
@minhle4658
@minhle4658 2 года назад
Hi. You can share code now?
@karlporath8904
@karlporath8904 5 лет назад
Perfect place to get 2032 button cells is dollar tree. A 2 pack is $1 !!!
@aaaricmondroofing1703
@aaaricmondroofing1703 5 лет назад
Love you brother but Jesus Christ loves you more and first. Thanks you this is one I can do thanks again Jesus Christ first again
Далее
How to Charlieplex LEDs with an Arduino
10:07
Просмотров 8 тыс.
MOSFET or BJT?  Which is better to use with Arduino
16:00
ДВЕ МЕДИЦИНЫ В ОДНОЙ СТРАНЕ
43:03
Good dad 🥰 #demariki
00:17
Просмотров 1,4 млн
How does an incremental mechanical rotary encoder work
11:17
Top 5 Arduino Tips for Beginners
12:16
Просмотров 134 тыс.
Common Circuits You Should Know: The Current Mirror
8:41
3 LED Randomly Blinking with Arduino
13:55
Просмотров 574
Arduino based toggle with debouncing
11:21
Просмотров 4,5 тыс.