RGB Christmas lights with universal programming

Status
Not open for further replies.

gres

Full Member level 4
Joined
Nov 30, 2009
Messages
210
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
4,573
To get satisfy effect I need to make independence steering for each light, not like in chinesse where lamps are in segments. Unfortunately to make control for each diode, I would need large cable net, especially that I wanted to used multicolor RGB. I decided to use digital transmission, each LED diode RGB consist own microcontroller. Power cable and signal cable goes to each, so summary 3 wires.

To control the leds I need possibly small microcontroller with at least 4 ports I/O and in possibility lowest price. I choose PIC 10F200. Microprocessor consist 4 in/outputs, one port could be only input, and 2 power pins. It has small size (SOT23-6 casing) and are very cheap. 256 word memory is enough to put communication protocol and controlling 3 colors.
I designed simple protocol to control leds. Because GP3 pin (input steering signal) is only an input, communication is only at one way. Protocol is based on Manchester code. It consist 2 bits of synchronization, 6 bits of address, 1 bit working mode and 3 color bits. When there is no transmission, at the line we have high level. Low level takes 100us means transmission beginning ( that is time that microcontroller need to realized that data is sent). Next is first bit of synchronization. Than is time for address bits, and again synchronization this time with logical one, and mode bit. Last three bits describe with color should flash or receiver work mode: demo , reset or test.
More information at : https://www.elektroda.pl/rtvforum/topic1520288.html



 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…