PDA

View Full Version : Christmas lights using led pixels (totally off topic)



Jerson
- 23rd December 2012, 04:32
I got some led pixels from China recently to satisfy an inner urge to play with them. I was very happy to get the new toy. Being more Psoc oriented these days, I took some code written by Mike Tsao (sowbug on github) and ported it to the Cypress Psoc. I was done quite quickly and just in time for putting up my decoration. Reason for using psoc - I needed a device with at least 200 bytes of RAM to hold the information for the 50 pixels + 5V operation. PICs I had in stock were of a lower capacity RAM.

Here is a video showing the working and effects of the lights.

http://youtu.be/8hgLQ2a8kB0

Merry Christmas all.

Regards
Jerson

rsocor01
- 23rd December 2012, 21:44
Very nice!!! Thank you for posting. These LED pixels are new to me, so now I've got to play with them :cool:.

Since all you need to do is to send 24 bits serially per bit, why do you need 200 bytes of RAM? You can hold the bytes information in EEPROM memory or in the program memory.

Robert

Jerson
- 24th December 2012, 01:42
50 pixels * 4 bytes (long variable 1byte is not used)=200bytes of Ram. The reason I need the ram is because most of the patterns which scroll use memory move commands on the RAM. Of course, you could do similar stuff out of Rom as well, but, I had to get this finished quickly with what I had at hand. I bought the pixels here http://www.aliexpress.com/item/Free-shipping-promotion-12mm-RGB-full-LED-pixel-module-DC5V-input-50pcs-a-string-IP68-led/635065030.html

mackrackit
- 24th December 2012, 02:50
That is cool!!!
Now another to to play with.

Ioannis
- 25th December 2012, 15:00
Jerson, that is very cool!

Well done. It open my appetite for new led effects.

Ioannis

Jerson
- 26th December 2012, 05:00
Thanks Robert, Ioannis. These lights excited me a lot before Christmas, so I decided to get them. Now, I found there are some suited to billboard displays too. They are in the 5050 SMD format, are addressable and come in flexible strips. I haven't been able to locate a source for these yet. Might be interesting work to do a small display using these strips.