LED Control by Mega

Hello!

Can someone tell me what I'm messing up?

I'm using a 12V battery to power a 12V WS2811 addressable LED strip. I am breaking the GND line of the LED strip feed with a MOSFET. The MOSTET and the addressing of the LED strip is done with an Arduino Mega. The Mega would go broken at 12V, so a 5V voltage stabilizer adds stabilized 5V power.

It's works perfectly well by default. I can change the LED Strip color, brightness, etc. The problem starts when I turn it off. So I set the MOSTFET low, it turns off and breaks the GND line of the LED strip.

Unfortunately, the LED strip then starts to glow dimly, and I measure 6-7 V on the GND and VCC legs of the LED strip itself, so that the MOSFET has broken the GND leg of the power supply.

Since the GND is disconnected, the circuit can only close on the arduino's control output. it is leaking back there for some reason....

What am I doing wrong, how can I fix it?

Why?

Why?

  1. I have seen several examples on the net of GND being disconnected. I don't want the tape to be live, so I want to disconnect the inlet anyway.

  2. Just in case, I don't want to use the VCC leg.

The strip is using the Arduino output as ground. It happens because the strip has no other ground. The current flowing through the Arduino pin could easily damage it. So do not do this.

Why?

Why?

I think you are trying to solve a problem that exists only in your mind. With your solution, you have created a real problem.

Hi, @jan5650

Why don't you just make your 2811 LEDs go dark?
OR
Use HIGH SIDE switching.

Tom.... :smiley: :+1: :coffee: :australia:

Typically, you might be the kind of person who doesn't look for a solution, but why it can't be solved. :slightly_smiling_face:

I simply don't want the LED strip to be live when I'm not using it. I will think about using the VCC leg.

In the current setup, is there any way I can eliminate the LED not using the arduino leg as GND?

How can i make it? Simply swap input polarity? And re-solder LED strip power?
Need to change to antoher MOSFET?

Google, do some research.

High side LED switching

Tom.... :smiley: :+1: :coffee: :australia:

I'm am the kind of person who doesn't look for a solution to a problem that does not exist. There are enough real problems in the world to keep me occupied.

1 Like

I did it...Sadly i cannot read this kind of schematic:

i'm a complete layman, i only understand the wiring diagrams that i have drawn :smiley:

Hello,

You should consider either just turn the lights off (dark). The power consumption will be really really low, especially compared to the mega I guess that will continue working

Or else change the MOSFET you choose for a canal P instead of a canal N. This way you will be able to cut the power of the LED strip. This implies to change the schematics ofc.
It there a specific reason why you chose to cut the GND in the first place?

If you don't like working with transistor, a relay would work the same. You will juste have a 'click' at each comutation. Or you can use a SSR that doesn't make any noise. If you choose a SSR, careful to choose as DC-DC one. For the classic relay it doens't matter juste take car to choose a relay working in 5V and that can let through enough current

If you need to design a circuit... if you need to badger other people into designing a circuit... "simple" is not the right choice of words.

These people are gathering information, rather than suggesting a solution that you immediately dismiss because of some information you intentionally withheld to cause confrontation. The gathered information helps indicate solutions.

Use an ON/OFF switch. That works for 99.9% of the world. Very "simple."

Thank you for the replys!

High-Side switch not an option unfortunately. I would have to modify the drawing too much, or I don't know how to supply the 12V control to it. For Arduino, therefore, they usually do the GND low side switch.

The problem is caused, according to several people, by the circuit being complete on the arudino control cable because of the broken GND. So I would need to make that leg of the arduino to be output only. Maybe if I put a diode there?

It can be an option?

If this does not work either, the relay remains.

One way to know for sure is to remove the 330 ohm resistor and see what happens.

Not sure it's a good idea. A diode needs a minimal current to be stable. It can be a small current but the one flowing into the input on the led strip is reallyyyyy low.

In addition, the diode needs to be fast enough for the commutation (I don't know the frequency of the signal). Eventually, the diode will provoke a voltage drop, which could make the communication not working anymore

As suggested, you could remove the 330 Ohms (and then the 220 Ohms) resistor to be sure to understand where is going the current.

what happens if I remove the 330ohm resistor?
Should I measure how much voltage remains on the LED strip after switching off?

I am a layman on the subject unfortunately, sorry

You won't be able to control the LED strip, but it's just to check if it's still glowing or no

okey! I will try it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.