No video

I tried to Revolutionize LED Lights!.....And FAILED?

  Рет қаралды 233,675

GreatScott!

GreatScott!

Күн бұрын

Пікірлер: 1 300
@greatscottlab
@greatscottlab 4 ай бұрын
The comments/feedback is crazy!! Thank you all for your awesome ideas, suggestions, tips, tricks and whatnot. Really awesome to hear so many advices, opinions. I think part 2 of this project will be a "community" video in which I will partly test your ideas. Will be lots of fun. But it will certainly take a while until I get to that. So stay tuned ;-)
@philosoaper
@philosoaper 4 ай бұрын
I don't understand why you didn't mount the lights under each step and put pressure sensors in the floor at the top and bottom... it's what I did at least.
@markvroman507
@markvroman507 4 ай бұрын
Can't wait for the video. Wanted something like this on my stairs. Maybe ad the possebility to add this to Home Assistant.
@macTijn
@macTijn 4 ай бұрын
​@@philosoaperit would indeed be the easiest, but that would probably add a bunch of wiring that you can't really hide unless you start drilling and/or creating some slots.
@kevinc.6042
@kevinc.6042 4 ай бұрын
@greatscottlab shared your video with our guys at Vishay. Hope they get in touch with you soon 😉.
@lasserasinen7174
@lasserasinen7174 4 ай бұрын
Put a wood texture on the silkscreen so the PCBs blend in
@foamyrocks665
@foamyrocks665 4 ай бұрын
I appreciate more the "I failed" videos than the "here how do to X perfectly". This is the best way to learn something and understand a project.
@Kalvinjj
@Kalvinjj 4 ай бұрын
Specially since a considerable part of those end up being debunked as just not showing the tons of fixes behind the scenes, or downright faked to work.
@realdragon
@realdragon 4 ай бұрын
Yeah it really shows how to do something and how not to do something at the same time
@AndreasStuben
@AndreasStuben 4 ай бұрын
The truth about development. Sometimes, it just goes wrong. Thanks for sharing.
@Speeder84XL
@Speeder84XL 4 ай бұрын
The reason more channels don't show all their failed attempts, is probably mostly about to saving time. As we know - it takes quite a bit of luck for a project to work right away. Troubleshoting and possibly redesigning a few times is usually a part of designing something - which often takes quite a bit of time on it's own. Now if making video documenting each step, redraw scematics to show of every change then edit all those video shorts, the project may take "forever" to get done, as more time will often be spent making the video, than on the project it self. It's just so much easier to just wait with the filmning and editing, until everything is already finished and tested - then make a detailed video how it works with scematics and how to build. But yes, it can still be of interest those who take their time to even show the failed attempts and for those new to electronics, it can be very useful
@deathbg1
@deathbg1 4 ай бұрын
it's a good way to get feedback on a complicated projects
@KnightsWithoutATable
@KnightsWithoutATable 4 ай бұрын
I found where you have the problem!!!! I also double checked with a electronics technician that has 50+ years in component level troubleshooting and high frequency circuit design who just happens to be my father that my suspicions where correct. He was able to give a solution and explain why it was happening along with why you were getting that specific frequency. Your driver circuit for the LED needs a second filter on the other side of the coil (U6) but before the diode (D3). In the current configuration, with the PWM being fed into there, you are pumping a RLC circuit in a single direction that has no where to release its energy other than ground and the power monitoring pin of the micro-controller (pin PA6 of part U3). Since it is going though a series of diodes, it is reflecting off of them and this is causing a doubling of the frequency. If you run a RLC calculation f = 1 / [2π × √(L × C)], you get 7.341 kHz for with the ideal component values and 14.682 kHz for the doubled, which is within 95% of the ideal component values, so accounting for the variance in the parts and the sub-harmonics we are seeing on the oscilloscope, this is pretty good proof that the hypothesis is correct. To test it further, removing a single unit for testing would be advisable and then replacing filter capacitor C10 with a different value or adding one in parallel to change the value and then checking with an oscilloscope might be a possible way to check for it. It is also possible that the oscillating circuit is internal to the LED driver IC, so adding this cap may do nothing, but adding the filter at the location that I specify as the solution is going to still work as that is the correct filter location in the circuit. You are going to need to put rejection filters between U6 and D3 that only pass DC and the fundamental frequency for your PWM signal. You could also get away with a low pass filter if the fundamental frequency for the PWM is low enough. I would suggest changing the PWM frequency to a lower value so that you can just use the low pass filter as high frequency noise is easiest to filter out. The datasheet for the micro-controller shows how to do this. As long as the resulting frequency is at least 10% below 7 kHz it should get rid of the noise. Assuming you are on the default settings for it, you should be well below that, but double check. Now as to the why on why this was causing so many problems with the micro-controller. The default clock speed of the micro controller might be set to 16 kHz (+/- 3% over voltage range and +/- 2% over temp. range) by default, so, if you have a signal on the other end of the PWM output pin that is close to that and really noisy while being unstable, like you have, and that pin isn't optically isolated (which this micro-controller doesn't have optical isolation on its I/O pins and problems like this are why you want optically isolated I/O pins) the interference can be feeding back through the circuit and causing problems with the PWM circuit. 97% of 16 kHz is 15.52 kHz, which is close enough for some signal coupling, so it can feed back into the circuit and cause the clock for the PWM to start having errors that the processor will have to correct, which will cause all sorts of strange behavior. I would change the internal clock that the PWM is using to the 20 kHz mode that the micro-controller has the option of using to just completely take it out of using a similar frequency. Make sure that the fundamental frequency that gets produced by the PWM still stays below the 7 kHz range using the equations given in the datasheet for how resolution and clock selection and clock type result in the output PWM signal's fundamental frequency. Just putting the filter in will probably fix most of the noise, but lowest noise possible is the best thing to do when dealing with micro-controllers. I would suggest in future only using micro-controllers with optically isolated outputs and always make sure that if you have a cap and coil in series in an oscillating circuit with diodes that you have a filter for both directions that the coil can discharge unless you are trying to make it oscillate or build a higher voltage.
@teardowndan5364
@teardowndan5364 4 ай бұрын
U1 is the LED driver at 7:30. The circuit he used is exactly the same as Diode's reference design, it is just drawn a bit weird. The chip itself is a bit weird for using high-side sensing instead of low-side. Aside from that, it is a completely ordinary buck regulator. The only thing "missing" is an optional filter capacitor across the LEDs at the regulator, which may help with EMI when the LED current loop is taking a ~35cm trip around the board.
@KnightsWithoutATable
@KnightsWithoutATable 4 ай бұрын
@@teardowndan5364 I know it is buck converter and it is going to have a ring to it there unless you add a filter where I said to put it, they all do and that is the frequency of that specific circuit's oscillation. The problem he is getting is that the frequency it is ringing at is really close to the clock source the PWM circuit is using in the micro-controller. This is a problem because the micro controller doesn't have optically isolated I/O pins, so any high frequency signal that gets on one of those pins that is close to one of the frequencies the controller IC uses, it will propagate into it and start causing errors intermittently. He might be able to get away with just changing the clock value in the controller from 16 kHz to 20 kHz. If not, he needs to filter off that noise. A buck converter circuit is noisy. Connecting it to a digital circuit or a circuit with active components can result in weird behaviors since you are going to get noise from the buck converter that is in the kHz to MHz range, both of which are in the RF range where they start treating everything as active components, even the case of the circuit, so when it gets into an IC, things get weird. I would use a different power source for driving the LEDs in this application next time or isolate the power supply from the micro controller, like with optical isolation.
@coolmonkey619
@coolmonkey619 4 ай бұрын
How does someone get this level of understanding
@KnightsWithoutATable
@KnightsWithoutATable 4 ай бұрын
@coolmonkey619 2 year degree at a technical college will do it. A BS or BA in electrical engineering will also cover it. You are probably going to need a 3.0 or higher GPA or at least paying attention to the topics of power supply supplies, digital circuits, and high-frequency circuits. Just for this problem, having a basic understanding of IC internal design and clock generating is also needed for this as well. Then you also need to understand micro controllers along with microprocessor error correction to see why the problem was so weird. I only confirmed my suspension about the problem with my father, who is a retired microwave telecom tech and designer because I could find the multiplier in the circuit that was giving the 15 kHz, but that is mainly because I would never have ran across this problem since my instructors warned me about the pitfalls of noisy power supplies and digital circuits along with micro-controllers needing the optical isolation or you can risk noise backfeeding into the I/Os or a transient coming in and frying the micro-controller.
@teardowndan5364
@teardowndan5364 4 ай бұрын
@@KnightsWithoutATable If Diodes doesn't include any additional filtering, I am pretty sure it is because its engineers who work on this stuff full-time have done every analysis prescribed by best practices and have concluded that it is perfectly fine as-is for the IC's intended application and following applicable layout guidelines, which usually includes keeping all high-frequency stuff tightly packed, which it isn't when you have two LEDs in series spaced ~15cm apart and the traces in-between acting as an antenna. Just had a look at his PCB layout. The LED trace routing is an EMI disaster. The current return trace needs to be parallel with the source trace like a differential pair, not routed along opposite board edges! And those power traces are also running parallel to the data traces on the other board layer. Maximum EMI.
@Elberto71
@Elberto71 4 ай бұрын
I did this using an addressable strip, arduino and 2 pir sensors for top and bottom, it's been working great for around 7 years now
@greatscottlab
@greatscottlab 4 ай бұрын
Maybe using addressable LEDs would be easier.....
@rizen3467
@rizen3467 4 ай бұрын
Do the pir sensors also give a distamce reading or just digital signal?
@jdl3408
@jdl3408 4 ай бұрын
@@rizen3467He shows them giving distance readings.
@drjubierre
@drjubierre 4 ай бұрын
​@@rizen3467 I do not think you need the distance, but only the signal true/false
@Csupi007
@Csupi007 4 ай бұрын
This could also work with a mmWave radar presence sensor which measures distance.
@tommythebiker3081
@tommythebiker3081 4 ай бұрын
6:50 you can use a diffuser cover and drill tiny (1mm diameter should suffice) holes right in front of the IR sensor.
@greatscottlab
@greatscottlab 4 ай бұрын
I can certainly try to do that when I get back to the project.
@ManpreetSingh-fq4jn
@ManpreetSingh-fq4jn 4 ай бұрын
I was thinking the same while watching the video!😄
@AnnaVannieuwenhuyse
@AnnaVannieuwenhuyse 4 ай бұрын
@@greatscottlab a tube of acrylic may help with channeling the emitting side of the diode, which can then be shielded with heatshrink. A 3D printed bracket to hold this in place sounds perfect. 🙂Perhaps the V2 PCB's could have some holes in them to allow for locating and/or installing these brackets or features, if only for those who need it getting the inspiration.
@DashCamSerbia
@DashCamSerbia 4 ай бұрын
Or just use a small section of the clear one where the sensor is, while the rest can be diffused.
@conorstewart2214
@conorstewart2214 4 ай бұрын
Another solution is to use the clear cover and scuff up the rest with sandpaper except from where the sensor is.
@SmithyScotland
@SmithyScotland 4 ай бұрын
Perhaps use a white Pcb next time? Might blend in a bit more. Canny help debug unfortunately.
@dhansukhjaladi6155
@dhansukhjaladi6155 4 ай бұрын
how did u comment on 3-4-24 , 4 days ago.when video is out one hr ago
@johboh
@johboh 4 ай бұрын
​@@dhansukhjaladi6155 Paetron/KZbin members get early access to (unlisted) videos.
@root266
@root266 4 ай бұрын
We found a Time Traveler!!!
@stevebabiak6997
@stevebabiak6997 4 ай бұрын
@@dhansukhjaladi6155 - Patreon supporters get early access.
@Adam.Netuddmeg
@Adam.Netuddmeg 4 ай бұрын
@@dhansukhjaladi6155 probably he is a patreon supporter and can access the videos earlier
@witchofengineering
@witchofengineering 4 ай бұрын
To be honest this was one of the most eye-opening of your videos to me. Seeing such a theoretically simple and trivial project experience issues due to noise and other things.
@YarianZy
@YarianZy 4 ай бұрын
The design of the data lines won't work as indended as described at 5:12, there should be one diode for each OUT pad, not one for both. In your current design, every other board is commoned together via the OUT-Line of the board in between: Board A In2↔Board B OUT1/OUT2 ↔Board C IN1/IN2 ↔Board D OUT1/OUT2↔Board E IN1/IN2... Most likely that's why all the boards were lit in most of your initial trouble shooting. The boards at the top of the stair (which later you found missbehaving) pulled all the other inputs low, until you introduced smaller pull-ups until the voltage drop was enougth to be registered as low.
@jdl3408
@jdl3408 4 ай бұрын
I can’t quite get a good picture of the PCB design, but it looks like this would be a pretty easy modification to the existing boards. Right?
@conorstewart2214
@conorstewart2214 4 ай бұрын
@@jdl3408 could be as simple as adding a diode where the boards connect together.
@woofy1988
@woofy1988 4 ай бұрын
I noticed that too. His outputs are connecting to outputs and his inputs are connecting to inputs in his drawing. If it's the same on the actual PCB, then that would explain a lot
@YarianZy
@YarianZy 4 ай бұрын
@@conorstewart2214 Oh that's an nice and easy way to fix that :D Great idea! Just bridge D1 and use diodes to bridge the boards together 👍
@mikemesec
@mikemesec 4 ай бұрын
I was trying to understand how he was gonna make that work in my head when he said that. Maybe a bunch of diodes or something
@brandonstews238
@brandonstews238 4 ай бұрын
If you redesign the boards, it might be easier to use connectors to slide them together, soldering them all together will have to many failure points and you cant take it apart to diag and repair.
@greatscottlab
@greatscottlab 4 ай бұрын
I like that. I should really do that.
@brandonstews238
@brandonstews238 4 ай бұрын
@@greatscottlab I was thinking a surface mount, right angle, pin header like M22-5330405 (found on digikey) for low profile easy connections. I’m sure you can find something like it cheaper and quicker on JLCPCB, but their connector page wouldn’t load for me.
@karmanyaahm
@karmanyaahm 4 ай бұрын
@greatscottlab maybe with pogo pins
@fritzlb
@fritzlb 4 ай бұрын
@@greatscottlab also make them so that you can disconnect them without sliding out everything, maybe even make them 2mm smaller and glue them into place so that you can take them out easily
@JustaGuy316
@JustaGuy316 4 ай бұрын
Honestly I think that idea could be commercialized pretty easily. If they are snap together all-in-one units that a do-it-yourselfer could easily accomplish... that would be a great selling product.
@Fight2Survive559
@Fight2Survive559 4 ай бұрын
@greatscottlab LED Lighting Electronics Engineer here. I reviewed your project files and a few things: 1) put 0.1uF and 10uF cap on the input and output of your LED switcher. You actually need a high freq cap and lower freq cap to cover the freq range for input and output ripple 2) I like the 4-layer idea, but do 2 internal layers of ground, and only route on top and bottom. Also, make sure to sink a ground via right next to every signal line via (this will help the signal keep good ground reference and force the inductive coupling on the internal layers to follow a set path. Try to reduce the number of vias per net as much as possible (don't want added inductance) 3) Make sure to look at the recommended switcher layouts and make your switching nets small, and DO NOT let them go onto other layers (don't want to have inductive coupling between layers). Also, try and get ground between traces so you don't get cross talk. At the lengths of your PCBs, I'd expect you could get Volts worth of cross talk, even at sub 100MHz freq. 4) I'd add a common mode choke to the input of every PCB and a Pi-Filter too. It may be overkill, but for a few extra bucks you grantee each board isn't getting noise on the input. Make sure to route this all on the same layer as the connection between boards (so top layer for you). The shear length of the boards all ganged together is working against you and stray fields from surrounding power lines and appliances/electronics could get onto the boards and cause some weird behavior. Better to go all out and find you you don't need it then to find out you do need it haha. I highly recommend "philslab" on youtube as has some great videos giving best practices. The whole FEDEVEL group is very helpful for PCB design for EMI / EMC. Wish you the best of luck man! I love your videos and love the idea ;) Keep it up man!
@SandwichMitGurke
@SandwichMitGurke 4 ай бұрын
Thank you for sharing this golden knowledge
@eugenes9751
@eugenes9751 4 ай бұрын
It's legit more enjoyable to watch the fail videos than the success videos. The fails are where you REALLY learn something new.
@MikaTheAboveAverageDog
@MikaTheAboveAverageDog 4 ай бұрын
When I made some under cabinet led tape lights integrate with doors and mains power about five years ago, I had a similar story. A "weekend project" spiraled into about 8 work days of effort and required a one year break for "finishing touches". I could not be happier with the results, even thought it needs another minor touch up. Your project is so much more ambitious and I cant wait to see how it turns out!
@TheHellis
@TheHellis 4 ай бұрын
Nice to have pictures of yourself everywhere on the walls. 😂
@greatscottlab
@greatscottlab 4 ай бұрын
Another reason why I made the LED lights. So that I could see those pictures better ;-)
@manithkk6551
@manithkk6551 4 ай бұрын
True
@gabest4
@gabest4 4 ай бұрын
Next project idea. Have the eyes on the pictures follow you.
@alejandroalzatesanchez
@alejandroalzatesanchez 4 ай бұрын
I had to check twice XD
@kubikaugustyn
@kubikaugustyn 4 ай бұрын
Aren't those just for the video?
@AmateurSuperFan
@AmateurSuperFan 4 ай бұрын
i don't know why your impression of your girlfriend was so funny to me
@greatscottlab
@greatscottlab 4 ай бұрын
Haha she also liked it ;-)
@manithkk6551
@manithkk6551 4 ай бұрын
True
@Fabian3331234333
@Fabian3331234333 4 ай бұрын
Impression?
@isaiahhiggins
@isaiahhiggins 4 ай бұрын
me too 😂
@murraymadness4674
@murraymadness4674 4 ай бұрын
lol, it was quite funny. just like my wife, 'you are not going to put a solar light up here'. Our porch needed a motion light, and she insisted it not be visible, so I had to hide it all.
@abhijeetbyte
@abhijeetbyte 4 ай бұрын
Frugal Engineer : This can be done with two proximity sensors, the 1st at the beginning of the staircase and the 2nd at the end. Keep the entire LED strip on until you pass the ladder. Use reliable MCU and LED drivers. As per my understanding, you don't want to manually turn on/off the house lights, and you don't want big bulbs to be lit
@Ed19601
@Ed19601 4 ай бұрын
that's how i do it. I use neopixels though, just for a sleek effect to have the leds roll on, out in front of me. GF loves it
@albertoandrescuevashiguera4304
@albertoandrescuevashiguera4304 4 ай бұрын
But he wants to turn on the LED in front of him before do the step
@vgamesx1
@vgamesx1 4 ай бұрын
@@albertoandrescuevashiguera4304 We understand what he wants and that would make for a rather cool effect but seriously there's no need to overcomplicate lights in this way, especially when they're only going to be active for about a minute once or twice per night, I mean it's just for lighting stairs just leave them on all night at the lowest visible brightness...
@abhijeetbyte
@abhijeetbyte 4 ай бұрын
@@albertoandrescuevashiguera4304 ​Doesn't make any difference, it serves the purpose, that's the only thing that should matter logically. Keep the LEDs on until you're done, not just the steps, but the entire staircase.
@jurgennicht4626
@jurgennicht4626 4 ай бұрын
There is a concept humans have they call "aesthetics". A little weird to us, but it mainly means they like things just from their look and feel. More than that: This can differ in every one of them! To us it has a logical benefit, though: It covers the case where someone turns around on the stairs or two people go. Which would be no issue if both sides just trigger a timer, though.
@markdog3355
@markdog3355 4 ай бұрын
I was going to make animated lights on my staircase but decided a simple "all on", when a person is detected, was safer. I used a multivibrator circuit to turn on the lights for 30 seconds, and re-trigger whenever motion is detected. Fancy lighting effects look cool, but are distracting and dangerous IMHO. I love your method for mounting the LEDs. I chose to do the massive wiring to each LED approach, lol.
@diogocardoso1948
@diogocardoso1948 4 ай бұрын
Yea that's the I way. A local shop to me installed one of those sequencial stairs that was sequential in both the steps and the sides (not shure if it makes sense), and I found it super distracting going up those stairs until I sort of memorised them and got to go up without caring about the light.
@willjackson6407
@willjackson6407 4 ай бұрын
I appreciate you sharing this even though it didn’t go to plan. Being able to see how other people investigate and solve faults is incredibly useful 😊
@cobaltdragon_5678
@cobaltdragon_5678 4 ай бұрын
Great attempt for a sleek solution, good luck for v2 when you'll get back to the project 🤞🏻
@greatscottlab
@greatscottlab 4 ай бұрын
Fingers crossed! Thanks :-)
@cobaltdragon_5678
@cobaltdragon_5678 4 ай бұрын
@@greatscottlab omg the legend himself! Love your channel, it was a big inspiration for the last 8 years with my studies in electronics. Thank you 🫶🏻
@Goose____
@Goose____ 4 ай бұрын
it's actually really nice that you share the files and a list of the used components for the projects you do, kodus:)
@supercurioTube
@supercurioTube 4 ай бұрын
I love that you show what didn't work. I'm still at the beginning and my first thought would be to illuminate the whole staircase dimly with a few presence detectors (including beginning & end) or use buttons for simplicity and use a timer to turn it off after a suitable amount of time. Illuminating each few steps individually seems like an anti-feature feature because we literally lookahead to plan our steps in advance.
@SlimyRedstone
@SlimyRedstone 4 ай бұрын
You could use the WS2811 IC, it's the one that is in the neopixel, just replace the RGB LEDs with white LEDs, like that you can control 3 white LEDs with one data line. That way removes the need to have a constant-current source (or sink) to drive the LEDs with a PWM (or any switching power regulation), and then also removes the high frequency noise that could be induced in the circuit.
@greatscottlab
@greatscottlab 4 ай бұрын
Hmmmm not a bad idea. I mean the WS2811 is an IC/LED that have been around for a while and it works just fine. I will consider it.
@someguy4915
@someguy4915 4 ай бұрын
@@greatscottlab I'd just put in the WS2812/13 LEDs that have the IC built in, saves component cost and you can build in a april fools version where the stairs turns itself into a disco just 'because you can' :P
@3zuli
@3zuli 4 ай бұрын
Or use a SK6812 addressable RGB + warm white strip. Then you can easily control the white LEDs and also have the optional RGB disco mode :)
@SlimyRedstone
@SlimyRedstone 4 ай бұрын
​ @3zuli ​ @someguy4915 These options would also work, it will also allow to have red night light but I was supposing that @greatscottlab didn't want to have/use RGB LEDs and wanted better white LEDs.
@vincentdesjardins1354
@vincentdesjardins1354 4 ай бұрын
@@someguy4915 disco stairs got my vote !
@RonTheelen472
@RonTheelen472 4 ай бұрын
Maybe the IR distace sensors are interfering with each other. Try to place a narrow tube infront of the sensor to narrow it's field of view.
@grishnkrj
@grishnkrj 4 ай бұрын
maybe if he tried it with light diffusion material with narrow holes just for the sensor's diodes, I think its small enough to disappear when looking from a distance.
@Simon_Rafferty
@Simon_Rafferty 4 ай бұрын
That's what I was thinking too - however a tube may not solve the issue as there may still be light reflected from other surfaces / feet. It might be an option, since you have comms between the boards, to activate the sensors one at a time so it effectively scans the stairs. Then each sensor will only receive it's own light.
@greatscottlab
@greatscottlab 4 ай бұрын
No. I checked most sensors while all were operating. They do their job just fine.
@Henrix1998
@Henrix1998 4 ай бұрын
The IR led has only +-25 degree cone and the sensor drops to 50% at +-30 degrees, it probably isn't a problem
@Green-Eagle-13
@Green-Eagle-13 4 ай бұрын
Custom cut pieces of clear acrylic to be placed atop the sensor. The rest can be diffused.
@guy-francknakach488
@guy-francknakach488 3 ай бұрын
I came accross this brilliant video a couple of weeks ago and absolutely loved it, including the issues and how you try to deal with them. All of a sudden, I don't feel alone anymore :). I found the idea very good, so I had to try it and sourced a few components and knoked up a few boards on the micro cnc and wired everything > I modified ever so slightly the schematic and the code to address some logic issue with the pin In and Out. On one board everything works, but as soon as you connect several boards they start firing up randomly. Like you I spent a bit of time trying to figure out what happened. My conclusion was that it was nothing to do with the noise on the in/out line. In fact the issue is the variance in the response from the VCNL4200 sensor from one unit to the next and also within the same unit!. So I finally got it to work by measuring a "reference threshold" in the setup of the code (so I might have different value for each sensor) and also by taking the average of 11 samples for each reading of the proxy sensor. That completely fixed my issue! (I think ;) ) If you are interrested in the code or schematic I can of course share it. Thanks again for your great work!
@marco98766
@marco98766 4 ай бұрын
For the noise problem coming from the switching power supply, I suggest you to use shielded inductors. And maybe, you can also try to connect to ground the aluminium bar. It can act as a shield. I also suggest you to use some sort of connectors between the modules, instead of soldering them together, so if a module need to be replaced, you can do it easily.
@wrathofsocrus
@wrathofsocrus 4 ай бұрын
Modifying things as soon as we get them is how we operate.
@greatscottlab
@greatscottlab 4 ай бұрын
Haha nice
@computerjantje
@computerjantje 4 ай бұрын
Oh man I LOVE the "we just got this staircase, you will not damage it in any way". Any tech man needs a woman like this to keep things sane. My girl does the same. You girl is a keeper :)
@vbinsider
@vbinsider 4 ай бұрын
0:51 We definitely also need the baby's opinion about the lighting
@smichels5117
@smichels5117 4 ай бұрын
I feel your pain, my friend… we all have those frustrating project experiences. Thank you, for sharing yours. I’ll look at the files and think about this and send any thoughts later. Great video, as always! 👍😊👍
@Buciasda33
@Buciasda33 4 ай бұрын
You have noise on the Input Pin (PA7) Add a 100nF capacitor between PA7 and GND. Place the capacitor close to the ATtiny402. When using long wires, in your case long traces, you made a Antenna. All input pins should have Capacitors on them, but the higher the capacitance, the lower the switching speed, so you'll have a lower transmission rate
@Leinad762
@Leinad762 4 ай бұрын
Can you maybe do a video about "Choosing the right microcontroller for your project"? Or generally explain how you search for a suitable microcontroller
@HerbaMachina
@HerbaMachina 4 ай бұрын
It pretty much breaks down to the following: 1. Do you already own the expensive programmer for a particular brand of micro controller. (start looking here and use one unless there are litterally none that meet the other following requirements) 2. Consider the number of general I/O pins you need and if you need any special features like a DAC or audio peripherals (essentially anything you want built into the microcontroller and would rather not have it on a seperate IC) 3. Is the microcontroller fast enough / has enough flash memory for your program. If you're using Arduino consider a micro controller with at least 8KB of Flash so you have a good amount of room for your actual program. Also make sure it's fast enough to do what you need it to do if you're using an ISR for example to do something. Those are pretty much the basics for choosing a micro controller for a project.
@rklauco
@rklauco 4 ай бұрын
My solution: Up and down is one HLK-LD2410, both connected to ESP8266. The bottom one has one pin connected to LED strip with WS2812 LEDs on the whole path of the stairs. Once motion is detected near the bottom one, the LEDs will light up from bottom to top. Once the motion is detected on the top one, it sends the signal to the bottom one and the stairs will light from top to bottom in "usual" walking pace. Works great, keeps the light on for next 5 seconds, to allow kids to, for example, find the entrance to bathroom, or to the next staircase, then the lights "go out" in the same way the came in. Works great, the whole solution costed less than $30, if I do not include the aluminum LED channels - those were the most expensive part of the project in the end :) And as this is radar, I have no problem with transparency of the plastic ;)
@rahulhari9908
@rahulhari9908 4 ай бұрын
I think this is a much better and simpler solution than the one presented.
@BlueJay137
@BlueJay137 4 ай бұрын
Thanks for sharing your problems so others don't "fall" into the them. Engineering is all about iterating so no shame in prototyping. Can I suggest having LIN bus or another com line among all the sections so not only will they light up where you step but where you are going to step. The LIN bus would also help you debug so you only have to talk the primary chip to debug the entire strip.
@maximus6884
@maximus6884 4 ай бұрын
Please share more " I failed" videos. These help us so so much. Thank you.
@alejandroalzatesanchez
@alejandroalzatesanchez 4 ай бұрын
Scott imitating his wife was gold.
@joostdenboer5689
@joostdenboer5689 4 ай бұрын
Great that you’re also sharing failures! Do you really think the noise on the VCC is causing this and not a coding issue?
@greatscottlab
@greatscottlab 4 ай бұрын
Well, I spent so much time on this project that I kind of had to make it into a video. And no, coding is not the problem because everything worked fine when testing with less units. I think EMC is the big problem here.
@4bSix86f61
@4bSix86f61 4 ай бұрын
@@greatscottlab Consider the CN5711 led driver, it doesn't require an inductor.
@JerryEricsson
@JerryEricsson 4 ай бұрын
You are indeed making me feel my age. When I was young, from birth to age 12, we lived on what was called the "home place' an old house built by grandfather in 1910. While REA came through and put a high line pole in our yard, nobody bothered to run a wire to the house or for that matter wire the house for power. So it was, when we went to bed in the 2 rooms that were "upstairs" we climbed the steps which were painted white but have a black mat on each step so there was pretty much no light other then that small flickering lamp that mom had lite in the kitchen below, that being a kerosene lamp. We would go up-stairs using all 4 limbs, hands on the step above and feet on those below till we reached the top which had no landing to speak of, just turn and you were in the first upstairs room, there was a drop down door that we had to lower once we were up there to keep the heat in for the downstairs, In the second room were two beds, one large for my sisters, and one small for me. That room had a lover that could be opened to allow heat from the coal space heater in the living room where my folks slept in winter to stay warm. The upstairs had no finish on the walls or ceiling, in the winter the shingle nails on the roof would have heavy frost on them, and when we woke up it was common to see your breath in the morning light that came from the one window that faced the East. It was a good life though, we all grew up to be successful, and all of us were very creative, you see you had to be because there were no televisions, phones just a battery pack radio that was high enough that we could not reach it to turn it on without a stool to stand on (batteries were expensive in the 50's)
@xoddopaul
@xoddopaul 4 ай бұрын
I love the I tried it this way and it failed, and tried it another way and it failed over and over relentlessly. the break is going to help you piece together all those moments and you're probably going to discover the cause: whether it's some frequency, heavy pulldown, floating grounds etc. Kudos "Great Scott" for the endeavours.
@robertcoulthard7461
@robertcoulthard7461 4 ай бұрын
Is the prox sensor seeing the stair itself and activating? I noticed in the video it appeared that your knee was activating the stair above.
@AnnaVannieuwenhuyse
@AnnaVannieuwenhuyse 4 ай бұрын
would be good to know whether the code responds to *changes* in the distance above just the baseline.
@JohnSmits010
@JohnSmits010 4 ай бұрын
An addressable led strip with a ESP32 with WLED and two IR sensors (one on top of the staircase and one at the bottom) could do the trick relatively easy (even change the effect/brightness at certain times of day). Maybe even coupled with home assistent to intergrade in the smart home.
@gentlemanbirdlake
@gentlemanbirdlake 4 ай бұрын
this is my setup and the sensors also turn off the led power supply when not illuminated with the animated staircase user mod
@ParodieHecker-mobile
@ParodieHecker-mobile 4 ай бұрын
That would be the easy way. But it's like 100x cooler to only lit up the individual stairs currently being used.
@alanphillips5853
@alanphillips5853 Ай бұрын
THANK YOU SO MUCH for sharing your entire process - it is so refreshing to see setbacks and someone holding their hands up - too many people think experts know everything -crazily - this is the EXACT thing ive been thinking about doing - I'm so glad its not just me that gets stuck and frustrated so much you have to just walk away and come back with a fresh mind later. Thank you for sharing this - I would be VERY interested in the solution you come to when you do.
@WA4NDR
@WA4NDR 4 ай бұрын
This reminds me of a project I built back when I first started tinkering with electronics: A motion sensor based light controller with a PIR motion sensor. It worked beautifully most of the time, but whenever someone would flip on the light in the next room over, it would trigger the motion sensor resulting in the lights coming on in the middle of the night. I suspect I had similar issues with the input voltage fluctuating too much and confusing the sensor. Thank you for the great video, keep up the good work and don't give up!
@dtibor5903
@dtibor5903 4 ай бұрын
You simply should enable only 1 distance sensor at a time, not all at once. Distance sensors are interfering with each other when they are simultaneously firing . Also most probably the distance sensors are the ones that create the noise.
@greatscottlab
@greatscottlab 4 ай бұрын
I checked most sensors though while all were operating. And they did their job just fine.
@vlcekmlcek3393
@vlcekmlcek3393 4 ай бұрын
​@@greatscottlabBut you didn't on the staircase. The stairs itself are probably interfering that.
@forrest2851
@forrest2851 4 ай бұрын
We would need to know how long the IR pulse is and how often he is doing a measurement to know how big of an effect this would have…
@jerrymk6846
@jerrymk6846 4 ай бұрын
@@vlcekmlcek3393he did. the boards are the staircase for the rest of the time, and he probably brought the laptop to the stairs
@realdragon
@realdragon 4 ай бұрын
But how do you activate only 1 at the time? To know if person is standing on the step you need for distance sensor to be turned on at all time and you have no idea from which direction up or down someone will go
@IAmOrion
@IAmOrion 4 ай бұрын
100% need the next iteration of these and update video! Been wanting to something like this for a long time. I did a much "older" variant using lasers and LDRs on each step as well as some ultrasonic stuff -- this is a much nicer solution once the bugs get ironed out
@Doyle69
@Doyle69 4 ай бұрын
WS2812b wled with custom PCB is what you need, has staircase mode now also.
@macTijn
@macTijn 4 ай бұрын
Wouldn't the ground and/or VCC planes act as a rather large antenna like this?
@greatscottlab
@greatscottlab 4 ай бұрын
Kind of. That is why I will probably have to add some filter at every input/output.
@macTijn
@macTijn 4 ай бұрын
@@greatscottlab perhaps it might help to reduce the size of them, and for the ground plane to only really extend under the attiny and the LED controller IC. It might also help to run VCC and ground over an external (twisted?) wire pair, but that would somewhat defeat the purpose.
@jdw-designs
@jdw-designs 4 ай бұрын
If not already done, it can be beneficial to connect the aluminum profile to GND and/or protective earth. This can reduce the "noise" fields by giving those a decent path to "conduct" to.
@mudassiramin236
@mudassiramin236 4 ай бұрын
Love the part where he tries his best to sound like his girlfriend.
@danixz77
@danixz77 4 ай бұрын
Great project. I love the fact that you take us all through the design, build and problem solving and not just "look I build X and it's working". I can't wait to see how V2 gonna be.
@forty7min
@forty7min 4 ай бұрын
A bunch of sensors can mess with each other. I went with radar (Doppler GHz) at top and bottom, they are far enough to not see each other. Then you can turn on all the LEDs in sequence (away from motion) and control them all from nice microcontroller. Giving you tad more time to move past them. Then shut them down again in sequence. And those radar sensors are so awesome!! Oh, addressable LED’s could share power and data. And I agree, we love learning along side you. My projects go the same way! ;)
@BigWhoopZH
@BigWhoopZH 4 ай бұрын
Was this the first appearance of the angry girlfriend? 😂
@greatscottlab
@greatscottlab 4 ай бұрын
Actually the third. She also played a role in my vacuum cleaner story ;-)
@shantilkhadatkar1195
@shantilkhadatkar1195 4 ай бұрын
Face reveal when?
@omerfidan892
@omerfidan892 4 ай бұрын
yeah he destroyed a vacuum. thats why she is angry
@BigWhoopZH
@BigWhoopZH 4 ай бұрын
@@omerfidan892 😁
@timotheegros
@timotheegros 4 ай бұрын
You should do a crossover with @stuffmadehere wife ! Most ironic wife on youtube.
@a6dulsalam511
@a6dulsalam511 4 ай бұрын
Why just use Fiber Optics instead, just distribute the optics on each step.
@greatscottlab
@greatscottlab 4 ай бұрын
For communication? Or for the lights? Or am I stupid here?
@a6dulsalam511
@a6dulsalam511 4 ай бұрын
​@@greatscottlab For lighting of course.
@OmVerma-jg7ev
@OmVerma-jg7ev 4 ай бұрын
I think you should use higher voltage such as 12 volt with an optocoupler as low voltage is easily get affected by noise, and also use a 555 timer ic for PWM and time delay which can be triggered by a normal IR sensor. No need for a attiny. But all and all It was a very nice video for me because it gave me a chance to think.
@tomtechies
@tomtechies 4 ай бұрын
Love the project! Me and my brother has been thinking about a similar solution for his stairs! Not sure I can help too much but really nice work! 🎉
@keithminchin1817
@keithminchin1817 4 ай бұрын
I’ve learnt 1000 times more from projects that don’t work as expected than ones that do. I love the concept it looks fantastic. 👍🏻
@andrew051968
@andrew051968 2 ай бұрын
I’m watching this with great interest, I’ve been planning a very similar project for a while now!
@johnnylopezpt
@johnnylopezpt 4 ай бұрын
I'd recommend using the table saw to open the groove in the wood. Even without a wide blade (dado blade, not available in Europe), doing multiple cuts will be far faster and easier than using the router
@christianramsvik77
@christianramsvik77 Ай бұрын
And this is especially a good way to get the outer cuts straight. Alternatively a super simple router table could be made using a plate ans some scrap wood (if one have a router but no table saw).
@sumit2k
@sumit2k 4 ай бұрын
VL53L1x is a Lidar sensor from ST. it worked well and came cheap at cost. Program the sensor to turn LEDs "ON" position for the next two LEDs. I learned many things from you.
@kenengel620
@kenengel620 4 ай бұрын
On a similar project that I worked on; we needed to send a signal across interconnected PCBs without limiting the number of boards that could be connected. We used a buffer IC to refresh the signal from board to board so no significant voltage would be lost if the user wanted to connect several boards together.
@TomSaw_de
@TomSaw_de 4 ай бұрын
My spontaneous low tech contribution. Stay Analog: Replace the sensors with strain gauges under the stairs. Use some OPV signal conditioning (low pass + gain + some integration) and trigger the LEDs from that. You would send a dampened variant of the signal to the neighboring stripes and mix to their signal conditioner for the "light Aura" effect. Attaching strain gauges below the stairs increases the unwanted glue-on-the-furniture, but damn, this thing would be cheap and work forever due to its simplicity! It even distinguishes pets from human, if you trim the gain stage. Pets tend to have better eyes than the median tech-nerd!
@leeroyjenkins7915
@leeroyjenkins7915 4 ай бұрын
when the location is less important than the detection, you could add two sensors, one at the front of the PCB and one at the back, and add an AND or an OR gate for the signal (depending on the noise and/or functionality you want). That also solves one issue your current setup has: your lights switch on when you technically already stepped forward instead of "leading the way".
@lebasson
@lebasson 4 ай бұрын
It's immensely relieving for me to see that I'm not the only one who doesn't get it right immediately. Thank you GreatScott! And: would love to hear how you'll fix this (and I know you will!)
@danielpas368
@danielpas368 4 ай бұрын
It's good to see a failed/incomplete project as most hobbyists will struggle through similar things. Looking forward to part 2. Thinking outside the box, It's possible you could control the LED driver with a voltage signal instead of PMW which might lower your noise? Another thing, which may not matter, the capacitors on the power regulators inputs are all in parallel. The led driver chip could be replaced with a mosfet driving the LED and the Atiny could control dimming, this would then remove the need for a 12v>5V just run the whole strip on 5 & 3.3V
@biniman7054
@biniman7054 4 ай бұрын
I like the way you never give up no matter how many times you fail to succeed your goal
@Samuel-km5yf
@Samuel-km5yf 4 ай бұрын
This has got to be a frustrating project. It takes humility to admit you have failed. I look forward to the sequel video where you finally solve the problem and provide a valuable lesson learned to the rest of us plebes.
@TheDarkelvenangel
@TheDarkelvenangel 4 ай бұрын
You could use your clear covers and add defusion to them and leave the area in front of the sensor clear so they still work as intended. Projects like this rearly work right off so it's nice to see a realistic expectation here where it doesn't work right the first time. I like your solution for mounting the light strips and not attaching to the staircase itself you even got a good colour match, well done.
@DANGERTIM112
@DANGERTIM112 4 ай бұрын
But IR has a hard time going trough any plastics, so a hole in it would work better in this regard.
@jack8blue
@jack8blue 4 ай бұрын
Had very similar idea back in 2021 while building my stairs. Wanted to do all just using analog discrete parts. Never actually got to it. Good luck with your project and thanks a lot for the kick I probably needed to get back to this project.
@pjosephlthewonder5082
@pjosephlthewonder5082 4 ай бұрын
It took me three weeks four different tries with the programing (worse than you in that area). Finally went to a friend about the code he showed me that using a state machine was the best case and it mostly works. The issues on the board like noise and signal integrity were mostly the board layout and lack of proper filtering. I have built this in two different places, and for the most part they are still working. Had an LED go out on one about a year back. Mine are made to react to the step before being on or off state. Also had to angle the motion sensor up at a thirty five degree angle to keep the cats from playing with the lights. Peace
@TediumGenius
@TediumGenius 4 ай бұрын
That is such an excellent project! I see where you were headed with it, (and kudos for working as a carpenter for a bit- THAT can be quite frustrating if it's not something you do all the time!) I learned some things, and JLCPCB pricing info... I can't wait to get home so I can work on some original design boards to try them out! Don't feel bad, that try, fail, retry, walk away loop happens to all of us!
@mandrakejake
@mandrakejake 4 ай бұрын
Use the diffused cover but drill a small hole above each sensor! You could glue some clear plastic on the rear to seal the hole
@RafaGmod
@RafaGmod 4 ай бұрын
I had a project like this but in the end i used a commom led strip, cut it in the minor lenght (3 LEDS) per step, fixed it in the handrail facing downward and used a PIR sensor to turn on the hole stair case. Also its integrated in Homeassistant so it can serve as indirect light for the living room. It's not that fancy indeed, but helps a lot
@sergimaurimoreno3298
@sergimaurimoreno3298 4 ай бұрын
I love it, amazing project. No matter if it was a fail. Thank you for show us that sometimes something could be wrong. I enjoyed a lot with the concept, process and the creation. My wife also sit next to me often and say to me: Do it but don't broke it 😅 I'm looking forward for the V2 and probably you should consider to sell it! Could you consider to use a white cover for the Ledstrips and a small transparent section for the sensors. Great job!! 👍
@the_smart_home_maker
@the_smart_home_maker 4 ай бұрын
Great project! Thanks for honestly sharing that not everything worked as expected!! Super helpful for the listeners to learn as well!
@gentleclash
@gentleclash 4 ай бұрын
I think I have a few suggestions for this, (A note before we begin, I'm not any working professional and have no experience. Just some interest in electronics) 1. Add some heavy capacitors(~100-1000 mF) directly to LEDs and a way so limited current flows(resistor .5-5k) to them LEDs and capacitors. That way, whenever led turns on or off, they happen smoothly. 2. Add 5 pins, 2 big on the sides for power and 1 in centre for programming the microcontroller(as used in the video), all at once. 3. For the remaining 2 pins, they'll be 'in' and 'out' data pins located between the centre and power pins. Use them for Daisy chaining.It'll be like this: (+)-------------------------------------------------------(+) (in)-------------through the MC------------(out) (prog.)---------------------------------------------------() (out)----------through the MC---------------(in) (-)-------------------------------------------------------(-) i. When a board senses something in the proximity, it'll obviously turn on but also send the signal to both ends(1 for on, 0 for off). ii. When a board receives the signal from either end, it'll turn on the led but won't pass the signal to output pins. This way you can stand on any step and the next one will be ready for you to see and it's simple to implement even without the microcontroller. If you want multiple steps to light up, use frequency/data method. In this method, board with proximity will generate and pass a certain frequency to both ends and receiving board will turn on but will pass on a different frequency to both ends and so on upto the frequency that it won't be passed anymore by the receiving board. Now you can light up n number of stairs with n number of frequencies. Easier said than done, this frequency/data method will have few problems of its own like calibration, noise, input-output loop, etc. Edit: A new method came to my mind, remove those 2 in and out pins and add a common frequency rail where each MC will generate their own frequency, and also they will always monitor the frequencies and know exactly on which step you are and respond accordingly by turning on. This method is quiet power inefficient so add a sleep/low power mode where it won't monitor frequencies if there's already a certain amount of light on stairs. It's getting long to explain so I'll stop here. One more thing, you don't need boards that long, it can be fitted in 2-4 inch length. You can use wires to chain them. I came across the ad of such products a few months back but like you said I also didn't find them good enough for my liking (idk what's their state now). Hope to see you come back to this soon, take care. 😉
@alvesvaren
@alvesvaren 4 ай бұрын
The IR sensors might break eachother if they power at the same time, you should probably do some multiplexing to make it cycle through the sensors (or at least not power the ones directly besides them all the time
@robby091000
@robby091000 4 ай бұрын
I LOVE THIS PROJECT!!! I know you feel frustrated by it but you definitely when through all the troubles and troubleshooting problems someone would have gone through when developing a small project and i love it!!!
@maneeshs3876
@maneeshs3876 4 ай бұрын
Addressable / Zoning (with few staircase steps), based on dimensions e.g 1-5 steps ~ Zone 1, 6-10 ~ Zone 2 and so on, this will provide fault tolerance too, not all LED strips will go bad at any given point in time and thus some visibility will always be there to prevent a fall from staircase.
@Thepajonk
@Thepajonk 4 ай бұрын
I made similar lights. However, I took another approach. I use PIR sensors (trimmed physically to a narrow slot) as start and stop gates at the bottom and top of the stairs then I time the stair animation based on the average pass between these points. Yes I don't detect individual steps but you'll notice that in exception of running, each staircase has a very consistent traversing speed. I was able to easily pick the speed of the lights switching ahead of me with me early overtaking the strip. Best bit? I used £20 worth of components for 11 steps.
@robboinc1
@robboinc1 4 ай бұрын
Great idea, seems like most electronics projects i take on, always hidden problems, would love to play with your design, singularly they work well.
@greatscottlab
@greatscottlab 4 ай бұрын
Go for it!
@leonarperro
@leonarperro 4 ай бұрын
This is great, Scott! As other comments mentioned, I would consider using addressable led strips, but also taking advantage of the different colors you can turn on. At night, the blue light is the one you should avoid, so you might turn on the leds on yellow color.
@Focusfanatic242
@Focusfanatic242 4 ай бұрын
It sounds like you will be needing new PCBs for this project. Since you cannot use the diffuser lenses, maybe consider getting your new PCBs made in white with only the LEDs facing the stairs and all other SMCs on the wall side of the PCBs. The LEDs will blend into the white PCBs better and the strip would have more of a diffused look when the LEDs are off. Great job so far. Looking forward to the final product!
@eugeniusz7144
@eugeniusz7144 4 ай бұрын
Just one thing... You have an IR sensor there and LEDs which tend to heat up pretty quickly.... Combine the two to get a perfect recipe for a disaster. P.S. I would definitely go with an ultrasonic distance sensor. Waaaaaaaaaaaay more reliable thing.
@johnjordan3126
@johnjordan3126 4 ай бұрын
Now that I've seen your results, I'd probably add communications between adjacent strips. Then one board could tip off the neighboring board to go into low light mode for a bit, or enable a timed cascading On/Off sequence for a more appealing presentation and integrated design. I'm eager to see the final design!
@0x9066
@0x9066 4 ай бұрын
Long time ago I've made similar thing, but I've used CNY70 sensors bought on aliexpress for like €0.1/pcs + attiny13. Program was straightforward: pulse LED and check, if there's hi/lo signal on output. I remember I had problems with ambient light and also with other modules around, but that was easy to fix with sync in/out signal + some simple fir filter implemented.
@mrxllone
@mrxllone 4 ай бұрын
Since the PCB is visible through the transparent cover of the profiles, you could consider ordering them with white soldermask finish. I think it would improve the look drastically making it more "clean" - the green is quite an *interesting* contrast to the wood in my opinion... :)
@mfeldheim
@mfeldheim 4 ай бұрын
when producing the fixed PCBs I'd choose a more neutral color. white or black. The effect is awesome.
@Gagootron
@Gagootron 4 ай бұрын
Cool Project! Two ideas i got: Maybe the sensors see each others signals and get confused? and you could use the aluminum profile as a ground, by having exposed ground pads along the edges of the pcb
@greatscottlab
@greatscottlab 4 ай бұрын
The sensors do not interfere with one another. And maybe I can do something with the aluminum profile.
@mitchellstrobbe7779
@mitchellstrobbe7779 4 ай бұрын
Using multiple values of decoupling capacitors for instance 100pf, 10pf, and 1pf may help filter the noise as pwm will generate noise over a lot of different frequencies
@mathmagics8212
@mathmagics8212 4 ай бұрын
It is a great idea, use pressure sensor/push buton beneath with mechanism for steps which turns the respective led light of that stair step
@McTroyd
@McTroyd 4 ай бұрын
Perhaps use your communication lines to interlock the operation, based on whether the top or bottom step is detected first, then selectively enable LED strips as you walk up, while disabling strips after they're passed. So, for 14 steps, only step 1 and step 14 would be actively watching, with not more than one adjoining step standing by: 1. When proximity is detected at 14, step 1 is disabled, and step 13 enabled for proximity detection. 2. When proximity is detected at 13, step 12 is enabled for proximity detection. 3. When proximity is detected at step 12, step 11 is enabled, but step 14 is disabled and the lights are allowed to time out. 4. Go back to step 3, decrementing numbers down the steps, until the bottom is reached. 5. When the stairwell is clear, go back to watching just step 1 and 14. Of course, this doesn't allow for the possibility of someone coming up the stairs at the same time, or anyone who likes to skip stairs. I'd expect neither is typical of your nighttime use case, though.
@InUnmarkedBills
@InUnmarkedBills 4 ай бұрын
I did a similar project with a lightstrip and two movement sensors, one at the top and one at the bottom. This way you can program the lightstrip to light up gradually starting at the sensor which was activated. Looks pretty smooth. And quite easy to implement!
@medivalone
@medivalone 4 ай бұрын
I've been wanting to do something similar, and my plan is to use an addressable LED strip mounted under the handrail and a mmWave radar to get the distance of someone on the stairs and mash those together to only light the stairs in that area.
@arifqurbanov2159
@arifqurbanov2159 4 ай бұрын
bro belive it or not but i just finished my new home heavy construction and today i put my pover cables inside of wall for stairs led lights. Come home for searching about it and first video was yours. Its not a first that you hellping me almost instantly. Thanks, love from Azerbaijan
@mikefrachel8292
@mikefrachel8292 4 ай бұрын
I have that same tiny hotplate. I cut a couple of blocks out of wood the same height as the hotplate to help support larger boards. It's a lot safer to use!
@NicholasIzzo-yq2me
@NicholasIzzo-yq2me 3 ай бұрын
Try using the RCWL-0516 microwave motion sensors. They work incredibly well and can be used behind solid objects so using your frosted diffuser would be no problem. The distance can be adjusted with small variable resistors to fine tune. Additionally you could add some wifi (esp8266? Or similar) and connect to home assistant to get motion alerts or trigger lights to blink in your bedroom or office so as to notify you when someone is coming up the stairs.
@yashrajshinde1085
@yashrajshinde1085 4 ай бұрын
What if you change the whole design! Here is what I think, Make a led strip that can turn on Led one by one simultaneously with your average walking speed on the stairs. AND to trigger this you can place a capacitive button on the wall near stairs. OR place the capacitive button on - Idk the exact word (where you place your hand while walking up). Doing this will reduce all the unnecessary work which attiny doing(read sensor values all the time!), I think doing this is more efficient - cosidering your purpose. But you can't run on stairs.😂 But if you want to run on stairs anyways, Programm the capacitive button on the wall such that if you press twice the speed of led strip will be double. And so on...
@GauravSharma-uv7co
@GauravSharma-uv7co 4 ай бұрын
You can easily make this circuit with using only 3 transistors as a switch, One transistor for onboard sensor, and the other two for previous and next sensor signal and can be easily Daisy chained. Transistors will turn the lights on and off. And dimming can be controlled by using led driver. Hence, no need for microcontroller
@Allazander
@Allazander 4 ай бұрын
I'd like some lights like this for my sailboat's companionway. Just to light up the ladder for entry/exit. Having them light up with human presence would save on battery usage and give the perfect amount of light without destroying night vision. I'm going to be living aboard so lights like this would be very handy for the companionway and possibly in the head as well. Thanks for the great idea that's giving me some good inspiration!
@DundeeFSK
@DundeeFSK 4 ай бұрын
You can use the diffused covers and drill small holes at the sensor places :)
@ohnoitsalobo
@ohnoitsalobo 4 ай бұрын
You could use the frosted cover for the LEDs. Just cut out a small section immediately above the distance sensor.
@phizicks
@phizicks 4 ай бұрын
yeah I have the same problem with see through stairs. I had other ideas but seems we may move out potentially, so we'll see 6:50 just drill 2 small holes. makes it very directional and not false trigger
@deadall127
@deadall127 4 ай бұрын
Using a linear regulator to power the LED would be a good idea because it's not a linear dipole. Since their voltage is roughly constant in most the the upper part of the current supply that means that the regulator won't get much voltage until the current gets quite low. And since P=U.I and you either have low voltage or low current going on your regulator, it will be relatively efficient.
@kenmore01
@kenmore01 4 ай бұрын
You may be getting some stray light pickup especially near the top of the stairs. Anyway, the concept is awesome. What a fun project (except for the frustration of course.)
Don't Fast Charge your Phone before Watching this Video!
12:22
GreatScott!
Рет қаралды 548 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 9 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 46 МЛН
I tried OVERPOWERING my WiFi!
11:24
GreatScott!
Рет қаралды 259 М.
Smart Stairs Now Exist...But Should They?
18:37
I Like To Make Stuff
Рет қаралды 1,1 МЛН
I tried finding Hidden Gems on AliExpress AGAIN AGAIN!
13:01
GreatScott!
Рет қаралды 973 М.
Pushing a "legal" Mini Solar System to its LIMIT!
12:36
GreatScott!
Рет қаралды 282 М.
DIY Gravity Battery: Unexpected Results!
23:02
engineericly
Рет қаралды 513 М.
A Small, Cheap Micro-Spectrometer - Review [Pt 1]
30:51
Project 326
Рет қаралды 81 М.
A Viewer Remade my Old Project! So is it any Good?
11:24
GreatScott!
Рет қаралды 273 М.
The lamps you're not allowed to have.  Exploring the Dubai lamps
32:17
bigclivedotcom
Рет қаралды 6 МЛН
Exposing the FAKEST Project....and making it REAL?!
11:05
GreatScott!
Рет қаралды 1,1 МЛН
How TINY Can I go? The BEST Power Board is here!
11:55
GreatScott!
Рет қаралды 279 М.