4

I purchased a USB powered (5 volts) LED lamp that included a controller with (from bottom to top in the picture):

  1. power switch
  2. brightness decrease
  3. warmth selector
  4. brightness increase.

I am attempting to put an in-line toggle switch to control the power to the lamp, but I'm facing an unexpected result.

I wired the toggle switch in between the power supply and the controller so it would be the open/close point for the circuit, but what I am seeing when I plug it in is that the power switch on the controller (#1) takes precedence and is 'reset' each time the toggle is flipped. I know this because the controller has an led indicator when it is receiving power. So, if the lamp is on, I can turn it off with the toggle, but when I flip the toggle again, only the LED indicator illuminates indicating the controller has power but the lamp does not turn on. I have to press the power button on the controller to turn on the lamp.

How can I override/bypass/circumvent the power switch on the controller/board? I want the toggle to control the circuit closing and opening (the lamp being on or off). I'm hopeful its a simple as moving the toggle switch 'after' the controller, between the controller and the lamp, and not messing with the white (data) wire, just cut into the power (red and black) wires. Any advice is appreciated as I'm sure my description of the problem reveals my novice skill and ability.

enter image description here
(click to enlarge image)

2
  • 1
    Uf, that wiring at the switch is wrong! With the switch off its like the switch isn't in the system, with the switch on it is a short circuit! Switch one one wire only
    – Ack
    Commented Mar 17, 2020 at 20:36
  • The switch wiring looks suspect. Is it shorting out the power supply when the switch is on? Commented Mar 18, 2020 at 14:57

3 Answers 3

7

Yeah, this is a "throw parts at the problem and hook stuff up randomly" type deal. There is a significant knowledge gap here. Not least you did not notice the circuit is on with the switch off, that shoulda been a giveaway that you had it wrong, and you should've stopped right there and done more research.

The way a switch works is it either shorts out its two terminals, or it does not.

With the switch on, you are shorting out all four black and red wires to each other. This is creating a dead short to the power supply, forcing it to crowbar, because it's a smart supply with protective circuits. Had it been an old style transformer, you would now have a transformer glowing cherry red-hot.

With the switch off, you are using the two terminals of the switch to carry power from the 5V supply onward to the LED controller. Which is then functioning normally, but, 24x7.

Experiment... since it's only 5 volts DC

So let's keep using the switch as a splice block for now, so we can learn stuff. Try unplugging the power supply, then remove one of the red wires from the switch. Keep the switch off!!! Plug the power supply back in, what happens? Ah, the light is off! Don't throw the switch!

Now, take the loose red wire, and short it to the terminal that has the other red wire. What happens? Ah, the LED system turns back on!! (or at least, is now turnable on).

So if black and black are connected, shorting red to red causes the system to power up, and separating red from red causes the system to power down. Gee, now if only we had some sort of gadget that would selectively short or separate the red wires! Where could we come up with such a gadget???? Think think think....

Of course, you'd have to stop using it to splice the black wires, then, wouldn't you. You'd have to come up with another way to join those.

The better way to do that

Of course, once you have the switch wired correctly, which I trust you will figure out, you notice something still. Everytime you shut off the switch, the LED controller forgets where it was. It forgets last brightness and color. That's because it's not designed to be turned off at a physical switch, it has a soft switch (#1).

So if you want it to stop forgetting, you must power it 24x7. So how do you physically turn off the lights? You can use the "switch to interrupt a wire" method on the common wire for the LEDs. As it happens, I can read the PCB traces and I see the red wire (on the top side of the board) is the common wire. That is typical; red is conventional for + voltage, and LEDs are positive common.

So if you install the switch to interrupt the red wire (of the 3 wires), then the LED controller will continue to remember and output what you last set, but the switch will prevent the LEDs from actually lighting.

1
  • "glowing cherry red" = "red-hot", for those who haven't heard of "cherry red" before. Commented Mar 18, 2020 at 14:58
3

You can try to switch one of the wires on the other side of the control board, but you might end up in the same situation. The circuit that powers the control logic might depend on the any or all three of those wires going to the lights. If that's the case, trying to switch any of the wires might also cut power to the logic control.

Since you don't know much about the electronics that control the light (and neither do we at this point), the quickest thing to do is try to switch the other wires and see what happens. You might be able to bypass the controller - just be prepared to get the same results as you have now.

3

Move the switch from between the controller and power to between the controller and light on the ground, which is usually black. This way, you can set the brightness by the buttons, but still use the switch for on/off. It also keeps power to the controller to remember the light level setting.

Without ground, both data and power will present to the controller as disconnected, ensuring you don't get leakage from the data line causing faint blips when off. It's a one-way communication, controller to led, so the leds won't be missed.

ot: it doesn't look like that switch is wired correctly, you only want to switch one wire. It looks like it turns on and off because on it's invisible to the circuit and off it short-circuits the supply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.