****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB
@heebakl2 жыл бұрын
I was wondering if the premium course accepts debit card payments or do I have to stick with credit card payment....
@alienc59204 жыл бұрын
The best explanation and ilustration of all. KZbinrs should learn fron this tutorial. Clear, professional and to the ponit without annoying background music. THANK YOU!!
@Artichoked12 жыл бұрын
*point
@walkswithmight90245 жыл бұрын
I must have spent 4 hours last night searching for the answer this and proper examples and instruction to figure this out, and you sir, are a genius! THANK YOU!
@programmingelectronics5 жыл бұрын
So great to hear it helped! Thanks for watching!
@richierich31354 жыл бұрын
SAME THING HAPPENED TO ME , THIS TUTORIAL SAVED ME , THANKS ALOT SIR.
@jimbarrett21523 жыл бұрын
Yes ! This tutorial certainly explains clearly a very useful and fascinating function that you can use / I wonder if it can be used as an ‘interrupt’? I will try. My interest is in LED Cubes / one led color or the RGB LED / just plain fascinating !!!!
@lutfilawijaya65884 жыл бұрын
Those randomSeed tutorials help me a lot, thanks !
@programmingelectronics4 жыл бұрын
Glad you like them!
@davisactual3 жыл бұрын
thorough but not verbose.. very good quality and the editing is def worth the time as it greatly helps the experience of the viewer!
@programmingelectronics3 жыл бұрын
Much appreciated! Thanks for the kind words!
@gordonyoud59757 жыл бұрын
So very clean concise tutorial on random number generation, thank you.
@ANAZ-RX7 Жыл бұрын
bro i love you and your way of explaining and teaching things, really you're the best.... with all my thanks to you❤❤
@programmingelectronics Жыл бұрын
Thank you so much Anas 😀!
@thedownhilla5 ай бұрын
Really helpful stuff! I like how you evolved the code step by step, with explanations en-route : )) I'm just starting with Arduino, aiming to light sci-fi model kits!
@programmingelectronics5 ай бұрын
Glad it was helpful!
@jameshenry80155 жыл бұрын
I did the same sort of thing on a Mega 2560 with 26 white LEDs in a row. I refined it to a short delay (10) with an analogRead random seed and the effect is somewhat mesmerizing. I call it Rain Dance because it reminds me of a rain storm hitting lit pavement at night. It runs 24/7 in my office and has been since December 23!
@christmasdreams110 жыл бұрын
Another terrific tut ! Random, I like ! Any regularity causes the brain's "Flight or Fight" response, which is strictly attuned only to "new events", to wander away once it has determined that no threat exists. Therefore, Random Events are better for holding viewers attention, (to a degree, of course, because blinking lights as a rule are not a 'danger' per se! ). keep up the great work!
@programmingelectronics10 жыл бұрын
Derrick Windsor Great point about maintaining attention - I had not thought about it from that angle.
@ArcanePath3609 жыл бұрын
Fantastic tutorial. Learned so much in a short space of time
@programmingelectronics9 жыл бұрын
+ArcanePath360 Awesome to hear! Thanks a ton for watching, I hope you find the other lessons helpful too.
@abishekjabez98533 жыл бұрын
7:25 '42' i see what you did there (Hitch hikers guide to the galaxy)
@Artichoked12 жыл бұрын
Ayyy I saw that too!
@MrEuphonious2 жыл бұрын
Thanks so much. I was getting all kinds of headaches with generating random numbers
@programmingelectronics2 жыл бұрын
So glad it helped Njei!!
@joshuapitong8992 жыл бұрын
Great help.🙌 Thank you.😊
@programmingelectronics2 жыл бұрын
Glad it helped! Thanks Joshua!!
@Cr3cked21 күн бұрын
THANK YOU! I Was Making A Game And Needed Buttons, But I Suck With Resistors. After Following YOUR Tutorial, I Made It! Thanks!
@programmingelectronics19 күн бұрын
Glad it helped with your game!
@thevastenigma24643 жыл бұрын
Great video, you are awesome!
@programmingelectronics3 жыл бұрын
Thanks a ton!
@MrOrnidoko5 жыл бұрын
awesome, i used half of your code to fix my issue! thanks alot
@programmingelectronics5 жыл бұрын
Great - glad it helped some!
@MrBanzoid4 жыл бұрын
Most interesting, thanks.
@kingshahzad785 жыл бұрын
nice explanation sir. Excellent presentation
@programmingelectronics5 жыл бұрын
Thanks Khurram!
@jamesb.83933 жыл бұрын
Your tutorial on the ‘random’ function and the ‘random seed’ function was excellent/ I would like to apply this bit of info to an 8x8x8 LED Cube / if I increased the number of Leds’ to 512 and sent out the A0 to 8 shift registers and at the same time to a layer ( 1 thru 8 ) ...........could that produce a random light in the cube at a specified delay . And yes , there is definitely one way to find out :-). Your thoughts?
@AioTranNhan9 жыл бұрын
thank you very much, my instructor asked us to do something like this without teaching and I was kinda overwhelming. thanks this help alot
@maurelius64638 жыл бұрын
Thanks for your classes! How can I combine this random blink sketch with a led fade sketch? I'm trying to have five LEDs fade in and out in a random pattern with overlapping phases. Kind of like a slow ebb and flow effect. Any tips? Keep up the great work!
@christopherchance48606 жыл бұрын
look into neo-pixels Adafruit has example code that will do that very thing
@arachnophillic97098 жыл бұрын
i used random number generators in my 6x6x6 rgb led cub to make color changing rain that starts at a random led each time with a random color.
@Ctairs3 жыл бұрын
how can i make it so that it only generates a number once?
@TomDcanada4 жыл бұрын
These tutorials are great . Could your delay be replaced with millis ? I have looked at your millis tutorials but can’t make the jump to replacing the delay in this tutorial . Any help would be appreciated .
@شيماءالملاح-ع3ب3 жыл бұрын
Thanks!
@willemnorval8768 жыл бұрын
I want to use a 4 or 5 digit random access number for each guest at a hotel. These numbers should be 'recognised' by Arduino and transcribed back to the one code that is actually the only true access code to allow access. How can that be done ?
@armaansharma10803 жыл бұрын
Thanks man!
@programmingelectronics3 жыл бұрын
Glad it was helpful! Are there any specific Arduino topics you would like covered?
@meande-man53516 жыл бұрын
Thats awesome! gotta love random
@candrasniper34043 жыл бұрын
How to catch random number to a variable in void loop that will not change before the syntax has finished, so we can call it. Example, I press the button, and random number is generated, we catch it to a variable, then I press the keypad to fulfill a number, then I press another button to compare my input number to the variable than contains the random number before.
@nyakoi4 жыл бұрын
Thank you!
@kartitamohsine80165 жыл бұрын
thank you,please i want to ask you how to turn led on after a random of time
@taranagnew4366 жыл бұрын
can you plz tell me where to get or what to type to get the labels you are using on your uno?
@DaRKeTaMiN9 жыл бұрын
Is there anyway to stop it repeating the same number twice in a row?
@programmingelectronics9 жыл бұрын
Chris Punton Great question! My first though would be to start looking around for some type of random number generator library that would give you more options other than the built in random function. But if that turned up nothing, you might be able to store the previous random generated value in a variable, and then compare it to the next value generated by the random function. If they match, than have if statement generate another random variable. Hope this helps some. Have a good one!
@programmingelectronics9 жыл бұрын
Just made a video answering this question Chris Punton . It will air on July 14th. Thanks for asking it!
@taranagnew4367 жыл бұрын
can you please post a link to the video, thank you
@hj08358 жыл бұрын
This works great, I increased it to 10 leds, which each led is in a model hotel room....Now how would I go about telling it to use random time also? If you could give me an idea where to start. Thanks and Thanks for all the other vid's you have done. I have learned alot from them.
@programmingelectronics8 жыл бұрын
Hi Jim - great question. Depending on how you have blinked your LED (I am assuming you are employing the delay function?), you could try using the random number generated to be the value used by delay(). i.e.... ...turn LED ON...then... myRandomNumber = random(100, 1000); delay(myRandomNumber); ...turn LED OFF...then... //another randomly timed delay Does this make sense? Have a good one.
@hj08358 жыл бұрын
Makes more than sense, thank you.
@GTX47478 жыл бұрын
awesome!
@tomguenthner24936 жыл бұрын
Once I get a random number I want to use it for display it . I only need one random number. How do I just get the one number? Thanks.
@jaredcohen95527 жыл бұрын
what happens if you use all of the analog pins? how would you use the random seed?
@tarikbenghannou90284 жыл бұрын
hi i need to give the value of number random to servomotor please help me to found a solution thank you
@goldstandard74064 жыл бұрын
Question. I have been trying to figure this out for a little while now. I want some leds to blink random for a delay controlled by a pot. My lights flash correctly for one sequence. Takes about 1.5 seconds. If the delay is 10 seconds, the last 8.5 stay solid on the last random color. I don't want to use mills because the arduino will have power for long periods of time. But the lights come on from a sensor input. Any help would be cool. Thanks for your time. I remember seeing a solution to this problem in one of your earlier tutorials. If you could just point me there I would be grateful
@gregenxelcreates6 жыл бұрын
I just followed this tutorial and my LED's are all blinking at the same time. They are doing the exact same thing. What could be the issue?
@arjayballester5206 жыл бұрын
Hello i'm already using the random seed, and it seems that no changes at all. will you help me ? thanks a lot
@Cr3cked26 күн бұрын
Can someone pls help me understand serial?
@programmingelectronics25 күн бұрын
Maybe this can help? www.programmingelectronics.com/serial-communication/ All the best!
@Cr3cked24 күн бұрын
@@programmingelectronics Thanks!
@pokednaful2 жыл бұрын
How to get highest number jn arduino? Example i get 2 sensor. Sensor 1 detected 100, and sensor 2 detected 80 I want to take the i highest number automaticly
@programmingelectronics2 жыл бұрын
In code, you could have an if statement that compares the two values.. something like... If(sensor_2 > sensor_1){ highestReading = sensor_2; } else { highestReading = sensor_1; }
@sagittariusblackerz43918 жыл бұрын
amazing men, please how can i to do time random ? i cant finding this information helpme what s millis ? thanks
@mohamadrafeekmaatouki38884 жыл бұрын
It helps me realy
@TheMusterionOfRock9 жыл бұрын
What if I need to use all 20 pins on the arduino, how would you generate a non repeating random number?
@programmingelectronics9 жыл бұрын
+The Musterion Of Rock, You could use the output of the millis() function to generate a random seed every time through the loop. This might do the trick.
@TheMusterionOfRock9 жыл бұрын
Open Source Hardware Group That's smart! Thanks :D