Ultra-flux RGB LED controller design and production - Power Circuit - Circuit Diagram

MOS power IC full range
Industrial Router Crystal 3.2*2.5mm 3225 26M (26.000MHZ) 12PF 10PPM 20PPM 30PPM
RF cable can be customized for other specifications
ESD TVS electrostatic protection tube 0201 package 3.3V ultra low capacitance ESD

Introduction

What is used in this project? Superfluid RGBLED common anode and PIC18F25K20 to produce a combination of colors. It has two functional modes, the automatically generated color sequence is stored in μC memory, and the manual mode can be selected in one of the seven possible colors.

Schematic

Power circuit

firmware

PWM (Pulse Modulation) controls the RGB LED. Since the PIC18F25K20 has only 2 PWM outputs (hardware), I also have 3 PWM output software. I use TIMER0, I use the manual mode PWM flat change interrupt.

Debounce

In this project, I use buttons to change between the two modes and change the color. However, if we use the buttons in the circuit (1) we have a problem. This configuration problem is due to the mechanical nature of any switch that may contain returning some action. To solve this problem, it can be done by hardware or software. We can do this with an RC delay circuit or with a Schmitt trigger, but both ways will increase the price. So, I am doing a software bounce.

Code example for doing a bounce:

Power circuit

It can be at different distances, but this way works for me.

Power Supplier

I used a 7812 regulator, the voltage is stable and kept in the RGB LED μC I used the LM317 voltage regulator. To calculate the output of the LM317, I use this formula:

Power circuit

LED RGB

I use a different resistance value for the RGB LED because its color has a different VF (forward voltage). I use these equations to calculate the resistance:

Power circuit

Power circuit

Submersible Motor Winding Wire

D TYPE

HENAN HUAYANG ELECTRICAL TECHNOLOGY GROUP CO.,LTD , https://www.huaonwire.com