logo elektroda
logo elektroda
X
logo elektroda

LED control circuit WS2811, PC817, P-Mosfet - malfunction at 11.5V

krajech 954 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20732946
    krajech
    Level 17  
    I made a circuit based on WS2811 , PC817 optocoupler and P-Mosfet to control more leds. The schematic is for one 14led light element controlled from an ESP8266 based controller. All elements (10pcs) are connected with a 3-wire 3x1.5mm2 cable every 50cm. Individual elements flash correctly when connected close to the ESP8266 controller. When connected with a 3x15mm2 wire (approx. 5m) to all lighting elements and a power supply of approx. 14V is applied, it lights up relatively well. However, when reducing the voltage to 11.5V, the Christmas tree starts and all the elements light up as they wish. I have done tests on a shielded cable - it is even worse. On the DO wire from the WS2811 there is a 2kOhm resistor, because only at this resistance the other light elements light up. What could be wrong ?
    Schematic of a circuit with WS2811, PC817 optocoupler, and P-Mosfet for controlling LEDs. .
  • ADVERTISEMENT
  • #2 20732981
    viayner
    Level 43  
    Hello,
    as I understand it, the ESP8266 controller is about 5m away from the WS2811 and it doesn't work?
    Everything is fine, strange as if it works, the basics of transmitting digital signals bow,
    with curiosity, if you have an oscilloscope, see what you have at the beginning of the cable and after 5m.
    Greetings
  • ADVERTISEMENT
  • #3 20732986
    Andrzej42
    Level 31  
    You have the Q1 control strangely implemented: 0 logical is ground through a 20om resistor and 1 logical is +12 through 220k - strange that it works anyway. Look for an integrated driver or "on foot"
    Or vice versa....
  • ADVERTISEMENT
  • #4 20733046
    krajech
    Level 17  
    >>20732981
    Works at 5m but at 14V, at lower voltages below 12V it goes crazy.
  • #5 20733066
    viayner
    Level 43  
    Hi,
    Because you are close to the margin of error,
    Can you explain this "interesting" way of powering this WS2811 chip? He requires a 3.5-5.5V power supply and you are powering it with current, admittedly such a "fabrication" is in the datasheet?
    Greetings
  • #7 20733124
    HD-VIDEO
    Level 43  
    Overdrive

    Directly control N mosfet, +12V > CL2+LED+LED+LED >> D MOSFET, S to ground

    To OUT (WS2811) , resistor (not to exceed approx. 16mA) to +5V or +12V >> 10 ohm resistor to G MOSFET + to GND 10k

    For 5V, Logic Level, for 12V should be enough.

    It is necessary to reverse the logic because there it negates, so software or hardware


    How to be with the optocoupler:
    +12V (+5V) > resistor (16mA) >. LED (A) of optocoupler > LED (K) of optocoupler to OUT (WS2811).

    Transistor of optocoupler; +12V (+5V) >> Collector >> Emitter >> 10 ohm resistor to G MOSFET + to GND 10k

    +12V > CL2+LED+LED+LED >> D MOSFET, S to GND


    When 5V, Logic Level, when 12V should be enough.

    No negation needed
  • #8 20733905
    krajech
    Level 17  
    HD-VIDEO Is this how it should look like ?
    Electronic circuit diagram with components such as resistors, capacitors, diodes, and integrated circuits. .
  • ADVERTISEMENT
  • #9 21215621
    krajech
    Level 17  
    I have modified the diagram slightly. Everything works properly. The individual circuits are connected to each other by a 3-wire wire every metre. This gives the effect of a light hose. However, after some time (at least about a month), a single circuit in the cascade can fail. The WS2811 always fails. I have only one outB output used in the circuit . Can the other outputs " hang" without potential ?
    Electrical schematic with WS2811 chip and connected LEDs. .
  • #10 21215634
    viayner
    Level 43  
    Hello,
    I remember there was once a discussion somewhere that the "Chinese" were saving money on capacitors and adding them in the path of the WS supply reduced the risk of damage.
    Since you have long wires between the circuits, be aware that they can act as a coil, something can be induced in them or they can generate pins that can cause problems.
    Regards
  • #11 21215650
    krajech
    Level 17  
    Well there is 22uF and 100nF , do you think that is not enough ?
  • #12 21215657
    viayner
    Level 43  
    Hello,
    I don't remember exactly, but there was something about adding a resistor of about 33 ohms on the data lines and something on the power supply, I don't use these circuits, just read something once. You'll have to do some searching.
    Greetings

Topic summary

The discussion revolves around a malfunctioning LED control circuit utilizing WS2811, PC817 optocoupler, and P-Mosfet, specifically when powered at 11.5V. The circuit operates correctly at 14V but exhibits erratic behavior at lower voltages. Users suggest checking the signal integrity over long distances using an oscilloscope and highlight potential issues with the control implementation of the P-Mosfet. The WS2811 requires a power supply of 3.5-5.5V, raising concerns about the current setup. Recommendations include using integrated drivers, adding resistors on data lines, and ensuring adequate decoupling capacitors to mitigate issues caused by long wire runs. The conversation also touches on the reliability of the WS2811 chip over time and the importance of proper circuit design to prevent failures.
Summary generated by the language model.
ADVERTISEMENT