1

Is it possible to make a simple dimmer thats operated just with the flick of the regular wall switch on and off? just like what Philips sceneswitch bulb does?

My requirement is 100%, 50% and 10% brightness settings. These have to cycle each time I flick the switch on and off. There is no need for a time limit ( eg: like flick the switch withing 3 seconds to change the brightness mode). Also there is no need for memory to remember the brightness next time I turn the light on.

The light in question is a 12v 500mA Led panel. It uses an AC to DC driver so I guess I can install the dimmer between the DC out of that driver and the DC in of the led panel.

What all components will I need for this and how can I do it?

Thanks in advance.

Edit- Modes I want are going to be like this -Switch on -> 100% brightness -Switch off -Switch on -> 50% brightness -Switch off -Switch on -> 10% brightness -Switch off -process repeats

By 'memory' I meant that the dimmer doesn't have to remember my brightness preference each time I turn the light back on. Instead the dimmer can simply switch to the next mode.

Kokachi
  • 668
  • 9
  • 23
  • Are you looking for a stepped soft-starter? `switch-on`->`10% for x seconds`->`50% for y seconds`->`100% forever`? I'm not familiar with the Philips sceneswitch at all, and I suspect that a lot of other folks aren't either. – AaronD Jun 29 '17 at 04:01
  • 1
    @AaronD Not exactly. I want it like this- switch on ->100% , switch off , switch on ->50%, switch off , switch on ->10%, and this process repeats. No time limit and No memory. Thanks – Kokachi Jun 29 '17 at 04:12
  • @AaronD [Philips sceneswitch video](https://www.youtube.com/watch?v=Fu5oDC3wTWE) – Kokachi Jun 29 '17 at 04:15
  • 1
    Okay, I think I get it now. But I don't think your goal is possible. Physically, you need some kind of memory to tell which option you want next. (or now, even) This could be the mechanical position of something, or an amount of charge sitting somewhere, or whatever. Maybe you could clarify what you mean by "memory". – AaronD Jun 29 '17 at 04:18
  • 1
    @AaronD Sorry, when I meant memory I meant smart memory like when the light is at for example at 50% and I turn it off and after a few days I turn it back on I don't necessarily want it to remember my brightness preference and turn it back on at 50% itself. it can simply go to the next mode or start over again from the beginning. – Kokachi Jun 29 '17 at 04:22
  • Alright, got it. Maybe you can edit your clarifications into the question while I give you a starter answer. It's going to take a series of specific questions to cover everything that's required to do this. – AaronD Jun 29 '17 at 04:31
  • @AaronD Sure, will do just that. – Kokachi Jun 29 '17 at 04:34
  • By the way, when I said it was going to take a series of specific questions, I meant that you need to open a separate question for each part of this project that you don't understand, not that I was going to grill you in the comments. – AaronD Jun 29 '17 at 09:08
  • "It uses an AC to DC driver so I guess I can install the dimmer between the DC out of that driver and the DC in of the led panel." If the driver has 0-10V dimming wires, that would be the way to go instead of manipulating the DC output. – DigitalNinja Jun 29 '17 at 22:20

1 Answers1

1

There are lots of different ways to do this, and once you get the basic functionality, the rest that Philips does with it is almost free, which is probably why they did.


Looking at hardware, you'll probably end up with:

  • Some kind of microcontroller (uC), which has it own requirements of:
    • A compiler or assembler, depending on what programming language you like.
    • A programmer.
    • Some way to test incremental parts of the software.
    • Knowledge of how to use all of these tools.
  • Some kind of power supply that is uC-friendly.
    • Read the uC's datasheet to see what it needs.
    • This will most likely be designed specifically as part of the overall project. It could be bought off-the-shelf, but probably not.
  • Some way to amplify the uC's output signals, that are controlled by your software, into what your chosen light emitting device requires.
    • More circuit-design, yay!
  • Some way to keep muggles' fingers away from live electrical stuff, including yours when you're not paying attention.

Each of these points is easily worth its own separate question.


Looking at software, you'll have:

  • Some non-volatile memory that stores either the previous setting or the next one.
    • You typically get at least a few bytes of this with most uC's in the form of either EEPROM or self-programmable code space. In case of the latter, just be sure to not clobber the program!
  • A startup routine that sets up the uC for the normal-running code and manages that non-volatile memory.
  • Some normal-running code that does whatever it needs to convert the chosen setting into your desired effect.

There are at least two separate questions involved with that; probably more.


Given that this almost certainly requires software, and that software is easily changed to fix bugs and add features, it's no wonder that we see so many features in what would otherwise appear to be a "simple" device.

AaronD
  • 5,596
  • 10
  • 36
  • So I guess an arduino can do the job? – Kokachi Jun 29 '17 at 05:23
  • @Kokachi Yes, but like most 'duino projects, it's probably a bit bulky for more than a handful of copies. If that's all you want, or for initial development, it's great; but for much more than that, you'll want a purpose-designed circuit with a uC chip soldered directly into it. – AaronD Jun 29 '17 at 05:27
  • @Kokachi Also note that a 'duino still needs some kind of amplifier between it and the load. This could be as simple as a logic-level FET transistor, but you do need something. That's a separate question. – AaronD Jun 29 '17 at 05:31
  • how about L293D – Kokachi Jun 29 '17 at 05:33
  • @Kokachi Does it have a datasheet? – AaronD Jun 29 '17 at 05:37
  • yes, here's the [datasheet](http://www.ti.com/lit/ds/symlink/l293.pdf) – Kokachi Jun 29 '17 at 08:55
  • @Kokachi Yeah, that's what I thought it was, from a basic google search of the part number. (can't always trust those; too many similar ones) Whether that specific part will work or not really needs to be a separate question with a [well-drawn schematic](https://electronics.stackexchange.com/a/28255/53375) of how you think it should go. – AaronD Jun 29 '17 at 09:02