That's a really creative idea, I like it! Two things to improve though: 'Laser' is an acronym and it's not spelled with a 'z'. You can refactor the redundant code by doing something like this: if(Val15 < 220){ //Check if it's nighttime digitalWrite(46, HIGH); //Turn on the lasers delay(2); int lights[14] = {32, 33, ect..}; int sensors[14] = {analogRead(A1), analogRead(A2), ect..}; //Read sensors after turning on the lasers for (int i=0; i
@dannybanks5180 Жыл бұрын
Good approach to this. I have done similar using individually addressable RGBW LED strips, IR instead of laser and only having all the sensors powered up if someone approaches the stairs. Once built there are so many cool things you can do with the code to get some pretty amazing effects. Would recommend this project to anyone interested in doing so.
@carrizzle95864 жыл бұрын
Great video!!! The intro was hilarious. 2 suggestions for simplifying the wiring though: 1) Using serial/addressable LED strips will reduce the amount of wire used. 2) Tilting the LASER at a slight angle and using a small mirror on the opposite side of the step to reflect the beam back to the photo-resistor board, that will be on the same side of the stair as the laser, will help reduce wiring as well.
@jim95204 жыл бұрын
Your are a man after my own heart.
@Cars0ndh6 жыл бұрын
looks pretty cool! Nice job putting this all together! code recommendations: use better variable names, e.g. DayNightSensor instead of Val15. It makes the code easier to read and edit when you need to. Another thing you could do is #define Stair1LEDs 32, #define Stair2LEDs 33, etc. so that in the code controlling them, it looks like this: digitalWrite(Stair2LEDs, HIGH); instead of the more ambiguous digitalWrite(33, HIGH); This also makes it easier to change if you need to change what pin controls which stairs. You just change it once in the #define and then everywhere that it's used it updated.
@BuildItnow6 жыл бұрын
Thank you for the tips! much appreciated!
@Triad3DStudio6 жыл бұрын
Great project! Would you be able to build a ceiling fan "fidget spinner", you know like the one's with the lights on them that you're able to program with a saying or images on it?
@BuildItnow6 жыл бұрын
Thank you!, yeah that sounds like a fun project.
@jonahswain6 жыл бұрын
Yeah a POV ceiling fan would be sick
@ARUN-bx2ic4 жыл бұрын
For what digital pin 47 is connected?
@karthikperiyasamy22994 жыл бұрын
Hi..I got new project as same in video..for 28 steps..for do this howmuch cost will come...and can u support us
@taragoodwin54116 жыл бұрын
10/10 knew you would use that song in the beginning
Might be a good idea to write the if statements as a function that takes 3 args
@konukuauleki3 жыл бұрын
I would like to do something similar but with flood lights around the house.
@angelvaca92323 жыл бұрын
amazing bro.. coul you share the instrucction and arduino code please
@NickGreenDC6 жыл бұрын
Awesome project!!!! Have you experimented with Laser Time of Flight sensors (TOF)? Might be able to get rid of the light sensor on each step and simplify the overall project. However, they are much more expensive than the laser / light diode approach. Also have you considered using WS2812B LED strips - individually addressable LED's that are RGB and run off 5v. They can make for some really cool animations!
@BuildItnow6 жыл бұрын
haven't heard of them but ill give them a google, sound promising, thanks!
@NickGreenDC6 жыл бұрын
To be clear, there would still be a sensor on each step, just no need to have a transmitter AND receiver on each.
@adityamanjrekartechguyproj51625 жыл бұрын
motion activated stairs using ultrasonic sensor video please
@bobmarley69706 жыл бұрын
You could have easily put all of the if statements into one big if statement that checks for day or night.
@miguelnogueira81804 жыл бұрын
The code if fine but it could be heavily optimised
4 жыл бұрын
Nice project. Ever heard of loops and functions though? 😂
@SSnoWHand6 жыл бұрын
Nice job!
@connor65056 жыл бұрын
This project looked like tons of fun! XD
@tom-stein6 жыл бұрын
What are you studying?
@BuildItnow6 жыл бұрын
im not, would like to study electrical engineering though
@Allan_aka_RocKITEman Жыл бұрын
@BuildItnow >>> Great video...👍
@hyped57236 жыл бұрын
For loop would play nice in here :)
@chapp20126 жыл бұрын
Might be easier on the eyes to have the lights fade on and off
@BuildItnow6 жыл бұрын
Very true, im going to add that in future features
@relaymatik59844 жыл бұрын
Nice
@narutoninjaleoloera56745 жыл бұрын
It's funny cause I watched dis and I don't even have stairs
@d4rp6456 жыл бұрын
why dont you just put down some stone pressure plates and some redstone lamps? xD
@BuildItnow6 жыл бұрын
Hmmm hadn't thought of that. Will defiantly do that in the next version