Modul gonilnik RGB traku PWM
On board stm8s single chip microcomputer generates accurate PWM control signal
The on-board three-way MOS tube driving circuit controls RGB three-color LEDs respectively, which is suitable for driving single RGB lamp beads of common cathode type or RGB lamp strips with multiple lamp beads connected in parallel
On board power indicator and reset button
Power supply voltage: DC 3.3v-5v
Onboard TTL level UART communication interface, baud rate 9600 BPS
Description of control command:
(1) Each instruction is composed of four bytes of hex data. The meanings of each instruction are as follows: data (1) — Revelation identification (default: O) × 1F)
Data (2) — channel number (0x01: red, ox02: green, O) × 03: blue data (3) — brightness value (range: oxo0 — O) × 64, equivalent to decimal o-100) data (4) — check code (the sum of the first three bits of data)
(2) This module includes manual light adjustment and automatic flashing function of the system. The automatic flashing function can be started by sending 1F 00 00 1F
(3) Some manual dimming instructions are as follows: set the red light 1% brightness: 1f010121 set the red light 50% brightness: 1f0132 52 set the red light 99% brightness: 1f016383
Set green light 1% brightness: 1f020122 set green light 50% brightness: 1F 023253 set green light 99% brightness: 1F 02 63 84
Set 1% brightness of blue light: 1f030123 set 50% brightness of blue light: 1F 0332 54 set 99% brightness of blue light: 1F 036385
The setting rules of other colors and brightness are the same as the above. The basic steps are: start bit – > channel number – > convert the brightness value to hexadecimal – > add the first three digits:
For example: red light 0% brightness: 1f01 00 20
75% brightness of green light: 1f024b 6C 100% brightness of blue light: 1F 0364 86
Basic instructions:
The controller is suitable for controlling single RGB lamp beads of common cathode type or RGB lamp strips with multiple lamp beads connected in parallel. The current limiting resistance of LED lamps can be selected according to your own actual needs. The controller controls the color and brightness of the led by receiving the serial port command. The VCC, TX, RX and GND of the USB to TTL serial port module are connected to the VCC, TX, RX and GND of the RG controller respectively (if the command fails to respond, you can try to exchange TX and Rx). The R, G, B and GND of the output end are connected to the R.G, B and GND of the LED respectively. The power on defaults to the automatic flashing mode. The computer can manually adjust the light by turning on the serial port debugging software (such as scom32), The following figure is an example of driving a single rgb5050 lamp bead.