Тёмный

Dimming The Undimmable Lights 

Leo's Bag of Tricks
Подписаться 32 тыс.
Просмотров 12 тыс.
50% 1

In this video, we explore a method of hacking common mains-powered LED fixtures by adding a small extra circuit. We are then able to convert these fixtures into DALI (Digital Addressable Lighting Interface) controllable lights that can be integrated into an awesome lighting system.
The Code, Schematics and other project files can be downloaded here:
www.fernekes.com/2021/02/dimmi...
Facebook: / leos.bag.of.tricks

Наука

Опубликовано:

 

15 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@marklewus5468
@marklewus5468 3 года назад
I am a retired EE. I really appreciate your level of expertise. Your videos are entertaining, informative, and I almost always leave them saying “I want to build that!”
@FPiorski
@FPiorski 3 года назад
Other people: It has almost nothing inside, they've skimped on parts, it must be crap. Leo: What a great, price-optimized feat of engineering, it does what it needs to do well at the lowest price point possible, hats off to the designers. It really shows you've designed more than your fair share of products. Anyway, great video, thanks for that! I have to say, I did not expect the synchronization issue at all!
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
The sync thing is really about perfectionism, I hate even the most subtle flickering!
@laszlokrekacs6545
@laszlokrekacs6545 3 года назад
@@leosbagoftricks3732 2:57-3:02 Is it flickering, or just some unfortunate editing? Or the room light is completely different?
@payloh_3328
@payloh_3328 Год назад
This is the best channel on RU-vid
@WR3slo
@WR3slo 3 года назад
You could also try and mess with current sense resistors. You can add another resistor in series with already soldered ones and bridge it with mosfet. you must set minimum current with that resistor, and there is no way to turn it completely off, but you should turn off power anyways. It works even better if IC has separate feedback pin, because you can inject current and make it analog dimmable. * Storage inductor may need to be higher value in some cases when lowering current.
@robkpark
@robkpark 3 года назад
Good explanation, good editing, good information = great stuff
@DavidSmith-zx7wz
@DavidSmith-zx7wz 3 года назад
It won't be long and you will be huge!! Great Stuff!
@avramitra
@avramitra 3 года назад
Can't wait to see your channel become famous (and I'll feel proud being an early subscriber 😅). With such amazingly high quality contents, you deserve it.
@nunamvseravno
@nunamvseravno 2 года назад
One of the best channels for this type of content. I also happen to build some of your circuits and they do work well!
@harms123
@harms123 Год назад
Huge fan of your engineering attitude. Your videos are not only well put together and entertaining but also very inspiring.
@AnthonyDeChiaro
@AnthonyDeChiaro 3 года назад
Great job here, you really went in-depth and covered a number of aspects (rather then just hacking a poor solution together). Learned quite a bit and looking forward to more, thanks!
@philippeversailles2170
@philippeversailles2170 3 года назад
Great video indeed. Very inspiring. What is fantastic is also to get the possibility to understand step by step the engineering process. So a big thanks for sharing
@alexstone691
@alexstone691 3 года назад
A great video yet again, you really invested effort into the design i love it
@fred-9929
@fred-9929 3 года назад
Awesome, as usual! And so well explained...
@In3xorable
@In3xorable Год назад
I am not sure how I found your channel. But I am subscribed and I will be watching you previous videos. Thank you for sharing your thoughts on these matters.
@nigeljohnson9820
@nigeljohnson9820 3 года назад
I really like your design philosophy. I too like elegant design.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
Thank you!
@rimmersbryggeri
@rimmersbryggeri Год назад
I really liked this and I will do my best to point people your way.
@PowerElectronic
@PowerElectronic Год назад
Your channel is extraordinary. I hope you grow.
@lunacyworks
@lunacyworks 2 года назад
Wow just the right project. I was doing exactly this project!
@leosbagoftricks3732
@leosbagoftricks3732 2 года назад
Share how it goes~
@boots7859
@boots7859 3 года назад
I really like you style of presenting, which is both technical and layman to move things along. Personally, the DALI thing is probably more of a deterrent for a lot of us who simply want to convert a non-dimmable LED to dimmable via a standard LED dimmer. Excellent work!
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
I understand your point- consider that there are many other ways to get the dimmer data into that micro. You could add a radio, an IR receiver, Bluetooth... etc.
@laszlokrekacs6545
@laszlokrekacs6545 3 года назад
@@leosbagoftricks3732 I kind of regret being too picky about the DALI protocol, so I came up with this sofware only solution: Set the dimmer value via morse code. Normal on-off switch switches on the last setting, and new brightness value can be added via multiple on-off switch cycles. Even an RTC can be spared (and the button cell too), the PIC16F1575 has 128byte eeprom, so the on time can be written (0.5s, 1s, 2sec, 5sec), so it knows how long was the previous ON time. I'm kind of impatient for the release, but even your specific led lighting model is unavailable here. I could not find the philips BN016C locally only BN013C, which is ~20USD, and I was not able to decipher the modell number of the round one. edit: maybe the philips meson line is a good alternative: www.lighting.philips.com.my/consumer/p/recessed-spot-light/5920431H1
@stephanc7192
@stephanc7192 3 года назад
Great video
@ramybrahim3188
@ramybrahim3188 Год назад
Thank you from Morocco
@danielignacio7799
@danielignacio7799 Год назад
Amazing HACK!!
@73Katerchen
@73Katerchen 6 месяцев назад
Awesome ❤😀👍👍
@ddiac53
@ddiac53 3 года назад
Which are DALI's accepted commands and in which format ( frame )? , otherwise, great job integrating the synchronization of the PWM into firmware of the PIC!! Quite great stuff!
@tiger12506
@tiger12506 3 года назад
Interesting idea to shunt the load in the buck circuit. For me the only solution would have been to replacing the buck ic with a roll-my-own.
@boots7859
@boots7859 3 года назад
@Joachim Shekelberg Cap droppers don't work everywhere.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
If the load current is high- the capacitors required become large and very expensive!
@MyProjectBoxChannel
@MyProjectBoxChannel Год назад
If you just need high/low setting for your dimmer, you can dim many non-dimmable LED bulbs with just a capacitor. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JH68wBXO5j0.html If your LED driver dies, on some light fixtures, you can replace the driver board with a simple capacitor dropper LED driver circuit. You can then switch out capacitors to control the brightness level. You can also change the value of the current sense resistor on the LED driver circuit, to control the LED brightness level.
@JCWren
@JCWren 3 года назад
It would be interesting to see how the 120VAC version of the LED power supply differs from the 230VAC version. Likely only a couple component changes, unless there are any regulatory issues that cause a larger change.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
Yes- I would imagine the main inductor is a smaller value, and maybe some parts are of a lower voltage rating? Save a few pennies?
@marcusamancio8302
@marcusamancio8302 Год назад
Hi, Leo. Thanks for the content. Do you think it would be worth it to build the whole driver from scratch to be dimmable ? It looks to me that, after including another power supply and a microcontroller, it would be easier to make the microcontroller control a current regulator directly, right? (Im a young engineer with little experience) =D
@mukundamodell
@mukundamodell 5 месяцев назад
A microcontroller and current regulator would be more expensive most likely.
@jfpsimon
@jfpsimon 4 месяца назад
Thank you for this excellent video! What's the purpose of R6 (510k) in the current source that drive the opto's LED?
@leosbagoftricks3732
@leosbagoftricks3732 4 месяца назад
Good question - the DALI circuitry is copied from an application note, I stared at it for a while, I don't know what R6 does either!
@gizmibob
@gizmibob 3 года назад
Thanks again ! It's a wonder video. I have very little knowledge about AC circuits so I will probably need to learn more before implementing it, but I definitely have flickering chinese LED strip that I'll try to fix once I understand more. Quick question : how this kind of display of schematics of big manufacturer plays with patents laws ? Is it okay as long as you don't reproduce the circuit and sell it ? I'm clueless.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
It's an interesting question, do I have the right to draw and publish schematics of a device I own? Who knows just how ridiculous this could get?
@hank44
@hank44 3 года назад
If it's patented, it's already public information and you can view and show the original patent, they are not secrets. You can't just produce and sell products that violate the patent. But simple little circuits like this are most likely not patented nor patentable, they're just basic electronic circuits (that's like trying to get a patent for a "table"). The circuit board design is (automatically) copyrighted, and that just means Leo can't copy their board design and produce and sell EXACT copies. If you're curious about intellectual property, there are lots of website to learn the basics.
@Ozzy3333333
@Ozzy3333333 Год назад
What about using a optocoupler to change the led linear regulator current sense resistor(s), then only one optocopler is needed per lamp if your controlling more than one? much less parts and rework? Thanks for sharing!
@leosbagoftricks3732
@leosbagoftricks3732 Год назад
Hmmm. Interesting idea. So you mean an analog current loop? That could work, the two problems I see would be linearity and poor dimming ratio. Hard to get large ratios of dimming with analog current control, and you also get color temperature shifts that you don't get with PWM.
@Ozzy3333333
@Ozzy3333333 Год назад
@@leosbagoftricks3732 I was thinking pwm the opto's input led (but analog may work also). It would take a little tuning on the resistors (I would use a resistor decade box to speed the tuning up), and pwm freq. It might not be 0 to 100% pwm, but maybe some other value like 15% to 100%. Again thanks for sharing your video.
@oracles-x1578
@oracles-x1578 3 года назад
Elegant design, can you tell me who manufacturers LED.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
The round one is made by LAMPTAN, the other is a PHILIPS product. There are many companies making mains-powered LED fixtures with the same basic topology.
@FredMiller
@FredMiller 2 года назад
I had to watch this twice but the "light went on" half way through the second view. Great hack...
@abulmagd3
@abulmagd3 Год назад
Can't we just modify RS1 and RS2 values to adjust the current?
@laszlokrekacs6545
@laszlokrekacs6545 3 года назад
The problem with DALI protocol, the switch also needs Line *AND* Neutral, which usually not the case (normally only the line is present at the switch). THEN it needs 2 more low voltage wires which you need to run separated from the high voltage. So a simple retrofit is almost never possible. To address this problem, I use the switch with an IKEA wireless dimmer (TRADFRI) which costs about 6USD. So I switch the light on-off, and I dimmer it independently if I want lower settings. Would love to see you also incorporating some kind of radio solution. Besides a matching DALI switch (just the switch itself, Berker 2858) costs about 92USD where I live. And I would also needs some remodelling for retrofit(getting Neutral to the switch and also low voltage wire routing), which is price prohibiting. One switch retrofitting would easily costs me about 1000USD at least. So a 6USD RF IKEA dimmer is a better way for my case and I think for most of the others too. What do you think?
@laszlokrekacs6545
@laszlokrekacs6545 3 года назад
@Joachim Shekelberg Everyone's case is different I suppose. For me it is a brick wall with concrete pillars with embedded plastic tubes (conduits), which is crazy expensive to extend it is basically "set in stone" (and for low voltage wires I need a new conduit which is a legal requirement here). Most of the costs comes of the many professions involved here, I need an electrician, there will be masonry work (brick and concrete involved) and also a painter at the end. I think I was a bit optimistic of the 1000 USD pricetag earlier. But if you have a drywall with fake plasterboard ceiling, the price will be most definietly lower, I agree. Still when you need to call workers from different domains(electrician and painters at the very least), it starts to add up pretty fast. Just my opinion though.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
I am building a new house from scratch, so it will be cheap and simple to wire this in my case. You are totally right that for retrofit applications the wiring is a pain. I am kind of allergic to all this IoT and wireless stuff, I love the simplicity and reliability of wired solutions.
@laszlokrekacs6545
@laszlokrekacs6545 3 года назад
@@leosbagoftricks3732 Well, I'm in the middle of building my house (7 years now, pretty big), I would be happy to chat about yours, feel free to drop me a DM. Speaking of the lighting, I gravitated towards the middle ground, on-off switching with regular switches, and brightness via RF. I have a friend how wired his whole building without any switches, each room is controlled via smartphone app. Which is kind of the other end of the spectrum maybe even the cheapest (manual labour is always expensive, each room got an ethernet connected relay box). Also the DALI switches are crazy expensives.
@boots7859
@boots7859 3 года назад
@Joachim Shekelberg What are you, ignorant? Most places in the world do not run AC in conduit. So many of your comments are so euro-centric...
@boots7859
@boots7859 3 года назад
@@laszlokrekacs6545 That sound interesting, and a big pain in real life. Decent wired connections for as much as possible is proven, and most likely going to cause far few problems in the years and decades to come... Personally, it while the DALI protocol seems nice, it also seems like a lot of work for those many locations that simply don't need it. If I were to find a really nice light/fixture, as shown, it seems like it would be simpler to simply rebuild the power circuit with PWM included to replace the stock one which can connect to a standard LED dimmer. However, this was a master class at re-engineering.
@jstro-hobbytech
@jstro-hobbytech 2 года назад
Where are you. People still watch your videos. I hope you're doing ok.
@christosmoutevelis4896
@christosmoutevelis4896 3 года назад
Nice hack , and very good documentation and presenting However , I think the dimming part is a little bit over engineering , considering the original control is done using this three pin KP1050A device . You already mentioned the original feedback resistor in the 3 pin dimming circuit . Wouldn't it be much easier to alter this resistance value instead of a new pwm circuit ? My idea is replacing the original current feedback resistor with lets say some other resistors and making a dimmer shorting accordingly these resistors . It may not have continuous dimming but for more people a few steps dimmer is more than enough. I think it would work OK and would be simpler . Considering the DALI interface needs extra wiring , a retrofit project would perhaps benefit more from a wireless interface , like a BLE controller .
@Ray-ej3jb
@Ray-ej3jb 3 года назад
I love your channel the ONLY criticism I have is that, as a novice, I feel you are too quick sometimes when explaining the electronics because it is so easy for you, you have forgotten us aged poor souls who need to slower explanation before they grasp a concept.
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
Noted! it's really hard to decide what level to aim for. I always want things to be just a bit over my head- if I understand everything then there is nothing to learn? Right?
@senorjp21
@senorjp21 2 года назад
First time seeing this kind of "sliced up solid pcb tinned" smt method. Maybe you could talk about that. Great videos - a chance to learn from a master.
@leosbagoftricks3732
@leosbagoftricks3732 2 года назад
This video covers the subject: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vq968AFgPhg.html
@GOWTHAMKRISHGowthamShanmugaraj
@GOWTHAMKRISHGowthamShanmugaraj 3 года назад
Why can't we just play with the CS pin?
@jamesbrown99991
@jamesbrown99991 3 года назад
How do you propose that?
@inotoff
@inotoff 3 года назад
@@jamesbrown99991 Generating an offset voltage based on a smoothed PWM (could be a µC or even a 555) and injecting it on CS via a resistive divider. Rcs can be calculated for the lowest brightness and the offset voltage will add to the control loop all the way to full brightness. However : "A disadvantage to analog dimming is that the color temperature of the emitted light can vary as a function of LED current. In situations where the color of the LEDs is critical, or the particular LED exhibits a large change in color temperature with changes in LED current, dimming the output of the LED by changing the LED current would be prohibitive." source : tinyurl.com/357dy56n
@leosbagoftricks3732
@leosbagoftricks3732 3 года назад
If you read the data sheet for the chip, the way it samples the sense resistor voltage is not straightforward, I don't think it would be that easy. Even if you could, the dynamic range of dimming would not be very large, and OFF is not an option.
@jamesbrown99991
@jamesbrown99991 3 года назад
​@@inotoff CS is not just a feedback pin; the full switch current comes out of this pin (i.e. 250mA). For this reason, you'd need a low impedance driver to inject your voltage. There's the added issue that the CS pin is used reference VCC; this means that the analog voltage you inject will just increase VCC by the same amount, and the current will therefore not be affected by the injected voltage. The combination of resistors will set the current, and because the resistor values are constant, so is the current. One approach that would work is switching in different resistors (e.g. 4 switched resistors could give 16 levels of brightness), but this uses more parts than Leo's version, and doesn't provide an OFF setting.
@sohailb108
@sohailb108 2 года назад
@@jamesbrown99991 Thank you for detailed reply. If changing the resistors work, what about adding a Mosfet parallel to the resistors to control the overall current flow out of CS? (leaving the OFF option out)
Далее
Every Component of a Switch Mode Power Supply Explained
23:10
WS2811 on Steroids
14:17
Просмотров 16 тыс.
Minecraft Pizza Mods
00:18
Просмотров 1,5 млн
The Inventors Paradox
12:06
Просмотров 20 тыс.
Building DIY LED lights
14:12
Просмотров 2,2 млн
Dimmable LED Lightbulb - INSANE Schematic!
11:10
Просмотров 88 тыс.
All Transistor Clock
21:52
Просмотров 37 тыс.
Decoupling Capacitors - And why they are important
7:39