His are genuinely far easier than other guys', go on unnecessary things, and are not even able to speak correct English. THANK YOU FOR THIS CONTENT KEEP IT UP!.
@cadillacescalade5428 Жыл бұрын
Hi how would I write this for a Alternatively flash ? I'm trying to create a night time traffic light
@Science.Buddies Жыл бұрын
If you just want the lights to flash and not fade, you just need the digitalWrite command, not analogWrite. Check out the other videos in our playlist and they should explain it.
@Cheech1576 ай бұрын
5:43
@YouDontKnowMe210tx11 ай бұрын
is this C or javascript, which should i learn and are there any books you suggest i should learn c ? im aware of freecode camp and w3schools but i really want to learn c
@Science.Buddies11 ай бұрын
Arduino is programmed in C/C++, not Javascript. We have our own tutorials (this is just one video in a playlist) but we can't really recommend one specific book or website over another.
@YouDontKnowMe210tx11 ай бұрын
Thank you@@Science.Buddies
@wynixcabantac74869 ай бұрын
How do i integrate this with a photoresistor so when light is face on the photoresistor it will fade?
@Science.Buddies9 ай бұрын
We have an entire tutorial series linked in the video description, including a photoresistor tutorial here: kzbin.info/www/bejne/jqitgn2kjpuci9Usi=5_8XT00xAJMNMMfd
@SnakePicks8 ай бұрын
Just found your channel and am now hooked on your videos. These are perfect for a beginner like myself.
@lukemanning3825 Жыл бұрын
thanks so much for this video, I was following another tutorial that used pin 9 without saying why and so not thinking the pin mattered had used pin 4 and couldn't work out why my LED was off half the time and on half the time. Really appreciate you actually explaining what you're doing so people like me can learn not just follow rote.
@Science.Buddies Жыл бұрын
Thanks, we're glad it was helpful! Be sure to check out the other videos in the playlist if you haven't already.
@helenavont29872 ай бұрын
I am looking for this effect, but with 4 lights preferrably at random. But i can not seem to find any instructions or code to make that work... does anyone know how i can do that?
@fraiertuck263Ай бұрын
chat gpt
@ProsperTeni3 ай бұрын
I couldnt help but notice this video didnt have a tinkercad version. I went on to try it on tinkercad but it didnt work, any reason for that?
@Science.Buddies3 ай бұрын
We just tried the Arduino "fade" example (File/Examples/Basics/Fade) in Tinkercad and it worked, but the fade can be a little hard to see in the animation. This video is almost two years old, but we probably skipped Tinkercad for this one because the fade is easier to see in real life.
@SilentEmilie Жыл бұрын
Thank you for these videos! I've just bought an Arduino and it's exactly what I need.
@Science.Buddies Жыл бұрын
Glad we could help! Check out our website (link in description) for cool projects you can do with an Arduino once you're comfortable with the basics.
@ingenierocivilizado7287 ай бұрын
This list of arduino videos is really useful and well explained. thank you very much!
@manu50415 Жыл бұрын
May I have your advice. Accoding to the LED fading code /* Fade This example shows how to fade an LED on pin 9 using the analogWrite() function. This example code is in the public domain. */ int led = 9; // the pin that the LED is attached to int brightness = 0; // how bright the LED is int fadeAmount = 5; // how many points to fade the LED by // the setup routine runs once when you press reset: void setup() { // declare pin 9 to be an output: pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { // set the brightness of pin 9: analogWrite(led, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeAmount; // reverse the direction of the fading at the ends of the fade: if (brightness == 0 || brightness == 255) { fadeAmount = -fadeAmount ; } // wait for 30 milliseconds to see the dimming effect delay(30); } From the code, the LED will fade up - down in 30 msec again and again. If I would like to have the loop like this >> fade up-down,30 msec---turn off 5 sec----fade up-down,30 msec again. How to modify the program? Thank you
@Science.Buddies Жыл бұрын
Hi - we're unable to provide advice on individual programming projects. Our tutorials are very hardware-focused, but if you search on KZbin you should be able to find other more programming-focused Arduino tutorials on things like delays and loops that will help you accomplish what you want.
@godlovesyou22434 ай бұрын
Thank you sk much this heloed alot
@StoicOptim2 ай бұрын
These are all so awesome to learn! Thanks!
@castelmichel867011 ай бұрын
Thank you for your tutorials, brilliantly explained. I noticed you add a space between certain values, is it a rule to follow or is it to keep things neat? Thanks
@Science.Buddies11 ай бұрын
Spaces don't affect the code, it's just to keep things neat visually (and a matter of personal preference to some extent).
@Cheech1576 ай бұрын
5:51
@angela.8586 Жыл бұрын
Thankyou!! But does this work with 6 led?
@Science.Buddies Жыл бұрын
Yes, the Arduino UNO has 14 digital I/O pins, so you can add more LEDs.