EvilGenius
Member
Objective: This circuit converts a 12V common anode biased RGB (or single color) module to a smart node with simple and low cost components.
Interface allows color control of individual RGB modules and control of many pixels via common WS2811 based controllers. (512 colors)
The 4-wire RGB+ system can still be utilized to accommodate the required +12,Data,Gnd wires. The 4th wire (extra) can be used as a power injection to boost the power.
The heart of the circuit is the beloved WS2811 chip that allows SPI communications. Data comes in processed and passed on to the next chip. For details please refer to datasheet of WS2811. Once data is received by WS2811 and latched, outputs of the chip go into action reflecting the color code on its output in the form of current sinking PWM. These outputs are then fed into a pnp transistor to be inverted and then fed into an npn transistor to be amplified and inverted once again. The need for two transistors serves two purposes. 1) Lower the voltage across the load transistor (Vce of NPN) as close to zero as possible 2) Allow inversion of logic to accommodate the Common Anode RGB module. The system is designed to push Vce down close to 0.2v. The lower the Vce, the brighter the LED and the less power dissipation by load transistor. Rset is utilized to set the base current of NPN which in turn controls the LED current.
The formula below calculates the value of Rset vs desired LED current. Where possible it is recommended to utilize the calculated resistor value to set the current accurately. If such resistor value is not easily available, use the Rounded DOWN closest available value.
Rset=507.76/(LED Current)
The SMD version with dimensions of 0.5 x 1.0 inches allows for inline use! Simply disconnect the 4-wires from old controller, connect the new SPI controller, and connect the interface to the newly labeled wires and you are good to go. Connect plus, ground, data out of first module to plus, ground, data in of the second module and keep going.
Interface allows color control of individual RGB modules and control of many pixels via common WS2811 based controllers. (512 colors)
The 4-wire RGB+ system can still be utilized to accommodate the required +12,Data,Gnd wires. The 4th wire (extra) can be used as a power injection to boost the power.
The heart of the circuit is the beloved WS2811 chip that allows SPI communications. Data comes in processed and passed on to the next chip. For details please refer to datasheet of WS2811. Once data is received by WS2811 and latched, outputs of the chip go into action reflecting the color code on its output in the form of current sinking PWM. These outputs are then fed into a pnp transistor to be inverted and then fed into an npn transistor to be amplified and inverted once again. The need for two transistors serves two purposes. 1) Lower the voltage across the load transistor (Vce of NPN) as close to zero as possible 2) Allow inversion of logic to accommodate the Common Anode RGB module. The system is designed to push Vce down close to 0.2v. The lower the Vce, the brighter the LED and the less power dissipation by load transistor. Rset is utilized to set the base current of NPN which in turn controls the LED current.
The formula below calculates the value of Rset vs desired LED current. Where possible it is recommended to utilize the calculated resistor value to set the current accurately. If such resistor value is not easily available, use the Rounded DOWN closest available value.
Rset=507.76/(LED Current)
The SMD version with dimensions of 0.5 x 1.0 inches allows for inline use! Simply disconnect the 4-wires from old controller, connect the new SPI controller, and connect the interface to the newly labeled wires and you are good to go. Connect plus, ground, data out of first module to plus, ground, data in of the second module and keep going.
Attachments
Last edited: