Monday 24 February 2020

RGB LED STRIP CONTROL UNIT


Nowadays, lighting with LED strips is very popular. The use of RGB LED strips is especially interesting, because it allows you to get the most diverse color of lighting.
This device is designed to control an RGB LED strip or three LED blocks with common anodes. The device provides 13 modes of operation of the LED strip:

 Off state.
 All LEDs are on.
 The red LEDs are on.
 The green LEDs are on.
 The blue LEDs are on.
 Red and green are included.
 Red and blue are included.
 Green and blue are included.
 Smooth color switching.
 Switching colors.
 Ripple red.
 Ripple green.
 Throbbing blue.
The choice of mode is carried out with a single button. After turning on the power or pressing it, a sequential enumeration of the modes begins. To stop at the desired mode, you must press the button continuously during its playback. After that, the selected mode will work.
The circuit is based on the low-cost microcontroller PIC12F629. To smoothly change the brightness of the LEDs, the pulse width modulation method is used. This microcontroller does not have a PWM block, so PWM is implemented in software here.
Fig. 1
This microcontroller has a small amount of memory, so I had to save it. As a result, it was decided to abandon the manual adjustment of the brightness of the glow, and use a low-frequency PWM with a frequency of 400 Hz.
After power-up, the microcontroller initializes its internal registers and peripheral devices and loads the last operating mode. Pins 5, 6, and 7 send signals to field effect transistors Q1, Q2, and Q3, which control the colors of the LED strip.
A 12-volt power supply is usually used to power an LED strip. Therefore, to provide power to the microcontroller, a 5 D voltage regulator is installed in the circuit on the A1 chip.
Installation is made on a small printed circuit board with one-sided arrangement of printed tracks.
Fig. 2
Transistors IRLU024N can be replaced with some analogs, for example, such - STD12NF06L, STD20NF06L, 2SK2229, 2SK2782, 2SK2926.
Button S1 - round miniature with leads for wires. On the board for its installation, the holes are made oval (two holes are nearby and dig out material between them).




Author: Gorchuk N.V.