I recently purchased a microcontroller board (Pimoroni's Automation 2040 W) and I would like to control Neopixel-like LED strips (WS2815) which work with 12V. Since I am using a 3.3V microcontroller (RP2040) I wanted to use this board's sourcing outputs to control the data pin of the LEDs. This is the board's circuit with the current-sourcing outputs (I added the tag to show where I want to connect the LED strip, the rest is part of the board):
Where V+ is 12V.
Could you help me understand this circuit? Above all, I'd like to understand how this circuit behaves to improve my electronics knowledge.
From my limited experience, I have made the following assumptions, if you can please comment on any or all of these assumptions and and tell me which ones are wrong so I can learn:
I appreciate all the help you can give.
Additional info:
If I interpreted the LED datasheet correctly, it says that the LEDs need 70% of VDD to be a 1 and 30% of VDD to be a 0, so a logic 1 would need 8.4V and a logic 0 would be ok receiving 3.6V and it would still be a zero. Am I correct in this interpretation?
Where V+ is 12V.
Could you help me understand this circuit? Above all, I'd like to understand how this circuit behaves to improve my electronics knowledge.
From my limited experience, I have made the following assumptions, if you can please comment on any or all of these assumptions and and tell me which ones are wrong so I can learn:
- When the microcontroller sends a logic 1, the Mosfet Q7 connects V+, R22 and R23 to GND, causing the LED strip to... receive a 0?
- When the microcontroller sends a logic 0, the current flows through R22 to the gate of Q4 and thus a 1 to the LED strip.
- This circuit is called current sourcing because it keeps a constant current.
- Such constant current depends on the value of V+, varying this volatge will increase or decrease the current on the LED strip. It's gonna be 12V so how does this affect the LEDs and how long the strip can be?
- The Schottky diode D14 is there in case I connect a motor instead of LED strips, the board is protected against reverse currents.
- R23 is there to prevent the transistor's inrush current spikes when there's switching. Under this logic, shouldn't there also be a resistor in series at the gain of Q7?
- The resistor in series with LED18 is a pull-down resistor. Shouldn't this value be higher?
- The zener diode D13 is there to... clamp the voltage?
- The resistor R22 connects the gate and the drain so the mosfet Q4 is always active unless Q7 is activated by the uC. It is a resistor and not just a wire perhaps to draw current?
I appreciate all the help you can give.
Additional info:
If I interpreted the LED datasheet correctly, it says that the LEDs need 70% of VDD to be a 1 and 30% of VDD to be a 0, so a logic 1 would need 8.4V and a logic 0 would be ok receiving 3.6V and it would still be a zero. Am I correct in this interpretation?