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

  Переглядів 220,252

GreatScott!

GreatScott!

День тому

Cheaper PCB layout Service at JLCPCB: design.jlcpcb.com/
6 Layers PCBs for $2(Free ENIG): jlcpcb.com/AAA
Get 6 layers PCB coupon: / jlcpcb
Components list: (partly affiliate links)
3.3V Regulator: www.mouser.com/ProductDetail/...
5V Regulator: www.mouser.com/ProductDetail/...
ATtiny402: s.click.aliexpress.com/e/_DDt...
VCNL4200: www.mouser.com/ProductDetail/...
AL8860: s.click.aliexpress.com/e/_DlT...
0805 Resistor Kit: s.click.aliexpress.com/e/_DBe...
0805 Capacitor Kit: s.click.aliexpress.com/e/_DmF...
3015 47uH Coil: s.click.aliexpress.com/e/_DFh...
LEDs: www.lcsc.com/product-detail/L...
SI2301 MOSFET: www.mouser.com/ProductDetail/...
FDLL1418 Diode: www.mouser.com/ProductDetail/...
Project files: (Schematic/PCB Design/Code): oshwlab.com/greatscott/stairl...
The ATtiny Programming tutorial I used:
www.electronics-lab.com/proje...
Previous video: • "Salt" Batteries are F...
Facebook: / greatscottlab
Twitter: / greatscottlab
Instagram: / great.scott.lab
TikTok: / greatscottlab
Discord: / discord
Support me for more videos: www.patreon.com/GreatScott?ty=h
In this big project video, I basically tried to revolutionize LED lights. That means I wanted to create an awesome led light for my staircase that only reacts when a human passes by and when it is dark. At the beginning everything worked just fine the mechanical mounting as well as the electrical design with uC, LED driver and distance sensor. After the programming and final assembly, everything fell apart. Check it out ;-)
Websites that were used/shown during the video:
4donline.ihs.com/images/VipMa...
github.com/SpenceKonde/megaTi...
github.com/ElTangas/jtag2updi
www.electronics-lab.com/proje...
github.com/ktsai69/Vishay_VCN...
www.mouser.de/pdfdocs/Vishay_...
www.amazon.com/dp/B075MB414D/...
www.aliexpress.com/item/10050...
Thanks to JLCPCB for sponsoring this video.
Visit jlcpcb.com to get professional PCBs for low prices.
0:00 My Staircase problem
1:34 Intro
2:39 Mechanical Enclosure
4:20 Initial Plan for the Electronics
6:08 Testing the Distance Sensor
7:05 Creating the final Schematic & PCB Design
8:51 First Assembly & Test
9:48 ATtiny Programming & Finished Prototype
10:41 Final Assembly
11:24 PROBLEMS & TROUBLESHOOTING
12:43 Verdict

КОМЕНТАРІ: 1 300
@greatscottlab
@greatscottlab Місяць тому
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 Місяць тому
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 Місяць тому
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 Місяць тому
​@@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 Місяць тому
@greatscottlab shared your video with our guys at Vishay. Hope they get in touch with you soon 😉.
@lasserasinen7174
@lasserasinen7174 Місяць тому
Put a wood texture on the silkscreen so the PCBs blend in
@foamyrocks665
@foamyrocks665 Місяць тому
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 Місяць тому
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 Місяць тому
Yeah it really shows how to do something and how not to do something at the same time
@michaelstuben6999
@michaelstuben6999 Місяць тому
The truth about development. Sometimes, it just goes wrong. Thanks for sharing.
@Speeder84XL
@Speeder84XL Місяць тому
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 Місяць тому
it's a good way to get feedback on a complicated projects
@KnightsWithoutATable
@KnightsWithoutATable Місяць тому
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 Місяць тому
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 Місяць тому
@@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 28 днів тому
How does someone get this level of understanding
@KnightsWithoutATable
@KnightsWithoutATable 28 днів тому
@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 28 днів тому
@@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.
@tommythebiker3081
@tommythebiker3081 Місяць тому
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 Місяць тому
I can certainly try to do that when I get back to the project.
@ManpreetSingh-fq4jn
@ManpreetSingh-fq4jn Місяць тому
I was thinking the same while watching the video!😄
@AnnaVannieuwenhuyse
@AnnaVannieuwenhuyse Місяць тому
@@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 Місяць тому
Or just use a small section of the clear one where the sensor is, while the rest can be diffused.
@conorstewart2214
@conorstewart2214 Місяць тому
Another solution is to use the clear cover and scuff up the rest with sandpaper except from where the sensor is.
@SmithyScotland
@SmithyScotland Місяць тому
Perhaps use a white Pcb next time? Might blend in a bit more. Canny help debug unfortunately.
@dhansukhjaladi6155
@dhansukhjaladi6155 Місяць тому
how did u comment on 3-4-24 , 4 days ago.when video is out one hr ago
@johboh
@johboh Місяць тому
​@@dhansukhjaladi6155 Paetron/UKposts members get early access to (unlisted) videos.
@root266
@root266 Місяць тому
We found a Time Traveler!!!
@stevebabiak6997
@stevebabiak6997 Місяць тому
@@dhansukhjaladi6155 - Patreon supporters get early access.
@Adam.Netuddmeg
@Adam.Netuddmeg Місяць тому
@@dhansukhjaladi6155 probably he is a patreon supporter and can access the videos earlier
@YarianZy
@YarianZy Місяць тому
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 Місяць тому
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 Місяць тому
@@jdl3408 could be as simple as adding a diode where the boards connect together.
@woofy1988
@woofy1988 Місяць тому
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 Місяць тому
@@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 Місяць тому
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 Місяць тому
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 Місяць тому
I like that. I should really do that.
@brandonstews238
@brandonstews238 Місяць тому
@@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 Місяць тому
@greatscottlab maybe with pogo pins
@fritzlb
@fritzlb Місяць тому
@@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 Місяць тому
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.
@witchofengineering
@witchofengineering Місяць тому
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.
@eugenes9751
@eugenes9751 Місяць тому
It's legit more enjoyable to watch the fail videos than the success videos. The fails are where you REALLY learn something new.
@Elberto71
@Elberto71 Місяць тому
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 Місяць тому
Maybe using addressable LEDs would be easier.....
@rizen3467
@rizen3467 Місяць тому
Do the pir sensors also give a distamce reading or just digital signal?
@jdl3408
@jdl3408 Місяць тому
@@rizen3467He shows them giving distance readings.
@drjubierre
@drjubierre Місяць тому
​@@rizen3467 I do not think you need the distance, but only the signal true/false
@Csupi007
@Csupi007 Місяць тому
This could also work with a mmWave radar presence sensor which measures distance.
@Fight2Survive559
@Fight2Survive559 29 днів тому
@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 25 днів тому
Thank you for sharing this golden knowledge
@abhijeetbyte
@abhijeetbyte 29 днів тому
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 29 днів тому
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 26 днів тому
But he wants to turn on the LED in front of him before do the step
@vgamesx1
@vgamesx1 26 днів тому
@@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 25 днів тому
@@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 24 дні тому
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.
@AmateurSuperFan
@AmateurSuperFan Місяць тому
i don't know why your impression of your girlfriend was so funny to me
@greatscottlab
@greatscottlab Місяць тому
Haha she also liked it ;-)
@manithkk6551
@manithkk6551 Місяць тому
True
@Fabian3331234333
@Fabian3331234333 Місяць тому
Impression?
@isaiahhiggins
@isaiahhiggins Місяць тому
me too 😂
@murraymadness4674
@murraymadness4674 Місяць тому
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.
@TheHellis
@TheHellis Місяць тому
Nice to have pictures of yourself everywhere on the walls. 😂
@greatscottlab
@greatscottlab Місяць тому
Another reason why I made the LED lights. So that I could see those pictures better ;-)
@manithkk6551
@manithkk6551 Місяць тому
True
@gabest4
@gabest4 Місяць тому
Next project idea. Have the eyes on the pictures follow you.
@alejandroalzatesanchez
@alejandroalzatesanchez Місяць тому
I had to check twice XD
@kubikaugustyn
@kubikaugustyn Місяць тому
Aren't those just for the video?
@MikaTheAboveAverageDog
@MikaTheAboveAverageDog Місяць тому
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!
@willjackson6407
@willjackson6407 Місяць тому
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 Місяць тому
Great attempt for a sleek solution, good luck for v2 when you'll get back to the project 🤞🏻
@greatscottlab
@greatscottlab Місяць тому
Fingers crossed! Thanks :-)
@cobaltdragon_5678
@cobaltdragon_5678 Місяць тому
@@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 🫶🏻
@RonTheelen472
@RonTheelen472 Місяць тому
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 Місяць тому
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 Місяць тому
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 Місяць тому
No. I checked most sensors while all were operating. They do their job just fine.
@Henrix1998
@Henrix1998 Місяць тому
The IR led has only +-25 degree cone and the sensor drops to 50% at +-30 degrees, it probably isn't a problem
@edwardmendoza7327
@edwardmendoza7327 Місяць тому
Custom cut pieces of clear acrylic to be placed atop the sensor. The rest can be diffused.
@smichels5117
@smichels5117 Місяць тому
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! 👍😊👍
@Goose____
@Goose____ Місяць тому
it's actually really nice that you share the files and a list of the used components for the projects you do, kodus:)
@SlimyRedstone
@SlimyRedstone Місяць тому
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 Місяць тому
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 Місяць тому
@@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 Місяць тому
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 Місяць тому
​ @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 Місяць тому
@@someguy4915 disco stairs got my vote !
@wrathofsocrus
@wrathofsocrus Місяць тому
Modifying things as soon as we get them is how we operate.
@greatscottlab
@greatscottlab Місяць тому
Haha nice
@markdog3355
@markdog3355 Місяць тому
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 29 днів тому
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.
@Moonlight0551
@Moonlight0551 28 днів тому
What a great project. Well thought out and implemented (almost). I look forward to the next episode. As always, keep up the good work.
@computerjantje
@computerjantje Місяць тому
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 29 днів тому
0:51 We definitely also need the baby's opinion about the lighting
@supercurioTube
@supercurioTube Місяць тому
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.
@ericp.5533
@ericp.5533 Місяць тому
This is a pretty nice project. Happy you made it available to everyone!
@the_smart_home_maker
@the_smart_home_maker Місяць тому
Great project! Thanks for honestly sharing that not everything worked as expected!! Super helpful for the listeners to learn as well!
@Leinad762
@Leinad762 Місяць тому
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 Місяць тому
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.
@Buciasda33
@Buciasda33 Місяць тому
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
@danixz77
@danixz77 Місяць тому
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.
@raymondslootweg7514
@raymondslootweg7514 28 днів тому
Great project! And nice to see you working on a solution! I hope you will get it working!
@rklauco
@rklauco Місяць тому
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 Місяць тому
I think this is a much better and simpler solution than the one presented.
@joostdenboer5689
@joostdenboer5689 Місяць тому
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 Місяць тому
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 Місяць тому
@@greatscottlab Consider the CN5711 led driver, it doesn't require an inductor.
@chrismayer8990
@chrismayer8990 Місяць тому
Nice project! Thank you for sharing your experiences!
@fenmoveification
@fenmoveification Місяць тому
Loved the video! That is a really interesting project and an original idea on how to tackle this
@robertcoulthard7461
@robertcoulthard7461 Місяць тому
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 Місяць тому
would be good to know whether the code responds to *changes* in the distance above just the baseline.
@JohnSmits010
@JohnSmits010 Місяць тому
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 Місяць тому
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 Місяць тому
That would be the easy way. But it's like 100x cooler to only lit up the individual stairs currently being used.
@bitsRboolean
@bitsRboolean Місяць тому
Thanks for posting this! I am looking to do some diy stair lighting also and I learned a lot
@curtkeisler7623
@curtkeisler7623 Місяць тому
Thank you for sharing this and your frustrations. I recently pushed myself really hard on a very large project and kept running into roadblocks over and over again that were very difficult like these and it was incredibly difficult to keep pushing myself forward but I finally did and I finally worked through them all and finally figured it all out. Hang in there you got this you will eventually figure it out it's probably just a silly piece of code that you didn't realize because you were going so fast
@dtibor5903
@dtibor5903 Місяць тому
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 Місяць тому
I checked most sensors though while all were operating. And they did their job just fine.
@vlcekmlcek3393
@vlcekmlcek3393 Місяць тому
​@@greatscottlabBut you didn't on the staircase. The stairs itself are probably interfering that.
@forrest2851
@forrest2851 Місяць тому
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 Місяць тому
@@vlcekmlcek3393he did. the boards are the staircase for the rest of the time, and he probably brought the laptop to the stairs
@realdragon
@realdragon Місяць тому
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
@puigalejandro24
@puigalejandro24 Місяць тому
Great project, you will make an amazing second version down the road. In the meantime taking a break sounds like a good idea it can get pretty frustrating at times. Great work as always!
@Kaliumcyanidful
@Kaliumcyanidful 28 днів тому
Thank you for the video, i really like it when you show that failure is Part of the process
@macTijn
@macTijn Місяць тому
Wouldn't the ground and/or VCC planes act as a rather large antenna like this?
@greatscottlab
@greatscottlab Місяць тому
Kind of. That is why I will probably have to add some filter at every input/output.
@macTijn
@macTijn Місяць тому
@@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 Місяць тому
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.
@alejandroalzatesanchez
@alejandroalzatesanchez Місяць тому
Scott imitating his wife was gold.
@kizz.Commented
@kizz.Commented Місяць тому
This looks like an excellent project. Well done for taking a break. When you pick it up again I bet that you find a solution. Good video as allways.
@asankakarawita3500
@asankakarawita3500 Місяць тому
One of the cleanest projects of yours.craftsmenship is great.👍👍
@mudassiramin236
@mudassiramin236 Місяць тому
Love the part where he tries his best to sound like his girlfriend.
@BigWhoopZH
@BigWhoopZH Місяць тому
Was this the first appearance of the angry girlfriend? 😂
@greatscottlab
@greatscottlab Місяць тому
Actually the third. She also played a role in my vacuum cleaner story ;-)
@shantilkhadatkar1195
@shantilkhadatkar1195 Місяць тому
Face reveal when?
@omerfidan892
@omerfidan892 Місяць тому
yeah he destroyed a vacuum. thats why she is angry
@BigWhoopZH
@BigWhoopZH Місяць тому
@@omerfidan892 😁
@timotheegros
@timotheegros Місяць тому
You should do a crossover with @stuffmadehere wife ! Most ironic wife on youtube.
@TediumGenius
@TediumGenius 29 днів тому
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!
@pusnirizda5481
@pusnirizda5481 Місяць тому
Finally the content im expecting from this channel. Great idea with good approach about ho to solve it. Not matter failed or not.
@user-mz1uh4ju1n
@user-mz1uh4ju1n Місяць тому
Your girlfriend is very strict 💀
@Dread0-0
@Dread0-0 Місяць тому
idk seems reasonable to not want to ruin brand new stairs
@greatscottlab
@greatscottlab Місяць тому
Well, maybe I exaggerated her line in the video a bit. Usually she is very reasonable ;-)
@kitcarlson6033
@kitcarlson6033 Місяць тому
Not strict enough!
@user-mz1uh4ju1n
@user-mz1uh4ju1n Місяць тому
@@greatscottlab I mean, makes sense to not ruin new stairs but you are a good and clean working guy so idk what’s the problem
@pfabiszewski
@pfabiszewski Місяць тому
@@greatscottlabwe all know you wrote this response, only because she will probably read it :D
@a6dulsalam511
@a6dulsalam511 Місяць тому
Why just use Fiber Optics instead, just distribute the optics on each step.
@greatscottlab
@greatscottlab Місяць тому
For communication? Or for the lights? Or am I stupid here?
@a6dulsalam511
@a6dulsalam511 Місяць тому
​@@greatscottlab For lighting of course.
@jack8blue
@jack8blue 28 днів тому
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.
@WA4NDR
@WA4NDR 26 днів тому
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!
@InUnmarkedBills
@InUnmarkedBills Місяць тому
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!
@sergimaurimoreno3298
@sergimaurimoreno3298 Місяць тому
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!! 👍
@Tomyboy96
@Tomyboy96 24 дні тому
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 27 днів тому
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. 👍🏻
@PhG1961
@PhG1961 Місяць тому
Great ingenuity! Awesome video, as usual.
@robby091000
@robby091000 Місяць тому
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!!!
@stehfun85
@stehfun85 29 днів тому
Awesome project (-idea). I hope you get it working soon! 👍
@lebasson
@lebasson 26 днів тому
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!)
@HummyGG
@HummyGG 27 днів тому
Im really looking forward to see finished product
@kareca18
@kareca18 Місяць тому
Really nice project! I gotta be honest, kinda felt good to see others having unexpected noise problems ruining their projects ^^' You definitely have to make a video about the solution (whenever you get back to this). Can't imagine to work involved in make these videos, but it's really nice to see the development and debugging process done by others. Great video and good job!💪
@IAmOrion
@IAmOrion 25 днів тому
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
@simoncee9011
@simoncee9011 Місяць тому
Great idea, I hope you get it working soon.
@princebanini
@princebanini Місяць тому
brilliant idea..nice execution as well
@zaidhussain5206
@zaidhussain5206 Місяць тому
Thank you Scott for sharing this video
@leonarperro
@leonarperro Місяць тому
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.
@robboinc1
@robboinc1 Місяць тому
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 Місяць тому
Go for it!
@Simon-jt7ee
@Simon-jt7ee 29 днів тому
I love this kind of video! I recomend you a lot of times in my classroom :P
@amriteshkr8
@amriteshkr8 29 днів тому
looks like my advice for micro-controller worked. Happy to see that.
@pjosephlthewonder5082
@pjosephlthewonder5082 Місяць тому
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
@battlecoder
@battlecoder Місяць тому
Thanks for sharing the failures and not only the successes. It's very educational and shows how making projects normally go. It's never pure success. One though I had during the video; I guess you can still use a diffused LED cover as long as you cut or drill "windows" where the sensors are.
@paulsengupta971
@paulsengupta971 27 днів тому
This is great. Sounds like the start of a series! :-)
@Chriss120
@Chriss120 Місяць тому
This is a cool concept, we were thinking about upgrading the lights in our staircase soon, maybe something similar would work nicely.
@TheDarkelvenangel
@TheDarkelvenangel Місяць тому
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 Місяць тому
But IR has a hard time going trough any plastics, so a hole in it would work better in this regard.
@lint2023
@lint2023 Місяць тому
Fun project and especially when you get it resolved. It reminds me of a stair case in the Science Museum of Minnesota. Each step triggers a tone and as you go up, the tones trigger and get higher with each. Reverse when going down. Quite fun.
@ThePlumbeus
@ThePlumbeus Місяць тому
I love the idea and design. As I am a software guy I sadly lack the tools to tackle such a project and my last soldering was 15 years ago at university. For aesthetic I would recommend you testing again with the diffusor and some drilled sensor holes, maybe even with a clear plug as dust cover.
@martinhengesbach1332
@martinhengesbach1332 Місяць тому
I love your idea and execution... Was thinking about a project like this before but sadly I'm not smart enough to get it happening like you... Respect I appreciate each and every of your videos for the knowledgeable content... Weiter so...
@xoddopaul
@xoddopaul 28 днів тому
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.
@akrizzs
@akrizzs Місяць тому
Thanks for sharing the fails as well!
@Gagootron
@Gagootron Місяць тому
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 Місяць тому
The sensors do not interfere with one another. And maybe I can do something with the aluminum profile.
@TheRealStructurer
@TheRealStructurer Місяць тому
I like honest content creators that admit their mistakes 👍🏻 I like the idea with a sensor for each step. Ideally it should light up the next step as well, making it more complicated 😉
@sumit2k
@sumit2k Місяць тому
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.
@DrHouse-zs9eb
@DrHouse-zs9eb Місяць тому
Its nice to see pros like you failing sometimes. I curently have a similar project wich makes trouble over and over again.
@marian20012
@marian20012 Місяць тому
great project I have never heard about, but I would never get idea to do such project since I never had issue to walk on stairs during total dark.
@olafschermann1592
@olafschermann1592 Місяць тому
Awesome idea! What i always was looking for
@BlueJay137
@BlueJay137 Місяць тому
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.
@jorgealzate4124
@jorgealzate4124 29 днів тому
I love this project in particular. One thing that I could try if I was you is to try to optically isolate the sensors in a sort of rectangular tube, because it seems to me that the sensors are receiving bouncing IR from each one as you move into the stairs. Happy debugging!
@JerryEricsson
@JerryEricsson 15 днів тому
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)
@farkasroman
@farkasroman 22 дні тому
super nápad. veľa sťatia v pokračovaní
@jarno30jarno
@jarno30jarno Місяць тому
I like the concept and would like to think along to solve some problems. My first though is to only have one board with the IC and and voltage regulators. This should adress some of the noise issues, but then the question becomes how do you operate the sensors and LEDs. For the LED you can go with the addressable kind. And since the sensors are I2C it could work on a single data bus. All of this would reduce the overall cost of the build since less ICs would be needed.
@maximus6884
@maximus6884 24 дні тому
Please share more " I failed" videos. These help us so so much. Thank you.
@fatc4t
@fatc4t 28 днів тому
Geiles Projekt! An sowas hatte ich auch schon gedacht :D
@forty7min
@forty7min 28 днів тому
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! ;)
@CNC-Time-Lapse
@CNC-Time-Lapse Місяць тому
We learn more from our failures than our successes. Thanks for being honest and sharing with us the failures. I learned a few things just from seeing you solve possible problems. :)
@orange_district
@orange_district Місяць тому
A really cool idea! 💡 Hope you find a solution for the issues soon.
@biniman7054
@biniman7054 Місяць тому
I like the way you never give up no matter how many times you fail to succeed your goal
Your Components are probably FAKE! Soooo is that BAD?
9:32
GreatScott!
Переглядів 651 тис.
I made a precision gearbox - with NO GEARS.
30:09
Not An Engineer
Переглядів 1,1 млн
Піхотинець - про рутину на фронті
00:46
Суспільне Новини
Переглядів 273 тис.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 20 млн
I Made An LED Cube The Weird Way
10:02
David Fricke
Переглядів 11 тис.
I tried 4 Future Tech Boards! (That can do Awesome Things)
14:39
GreatScott!
Переглядів 284 тис.
Vortex Cannon vs Drone
20:44
Mark Rober
Переглядів 12 млн
Your Door NEEDS this Upgrade! DIY $40 Fingerprint Lock!
10:28
GreatScott!
Переглядів 214 тис.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Переглядів 226 тис.
I Made Real-life Airsoft AIM-ASSIST: Aimbot V3
25:19
Excessive Overkill
Переглядів 714 тис.
Smart Stairs Now Exist...But Should They?
18:37
I Like To Make Stuff
Переглядів 1,1 млн
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Переглядів 2,5 млн
I wish I knew this When Istarted Programming #school #software  #codingtips
0:34
Claude Ams - Programming Guru 💻
Переглядів 13 млн
Samsung or iPhone
0:19
rishton_vines😇
Переглядів 2,4 млн