Tired of christmas lights? how about a ultra-bright, ultra-low-res display with your led strip? #1154
Replies: 2 comments
-
Posted at 2014-03-10 by @gfwilliams Hi - yes, I think that'd be really good. Even better if you can get some low-res images displayed :) You may find this helpful: http://www.espruino.com/File+Converter (until 1v56 you'll have to ignore the base64 version though) If you save an image file as a 5x5 pixel 8 bit RGB RAW file (maybe use ImageMagick and a command like You may also be able to create an 'ArrayBuffer' graphics instance without the callbacks. RGB123 works in pretty much exactly the same way (a zig-zag of WS2811s) so the Graphics library should handle it quite well: http://www.espruino.com/RGB123 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-10 by Loop Hi Gordon, So keep posted for the polished version as tutorial! bye |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-09 by Loop
I was in the situation described in the subject, and wired my 25 led strip as an array; I tried uploading an image but couldn't - use your fantasy, it's 5 one way and five the other and so on. I also installed a 10 μF capacitor in parallel with the strip +5v (I read it's a good idea to be sure your power supply doesn't fry the first led when being powered).
If you have a 3d printer you can probably do much better than me, but I don't... so I used duct tape to keep it in place!
Also, I did the error of assuming a cartesian coordinate system, so my 0,0 is bottom left - I could have chosen top left and made my life easier (actually, I believe the docs for Graphics don't say anything about coordinate system, maybe they should?). Anyway, I was able to use the Graphics class to write to my led strip; I was inspired by the Adafruit Neopixel library as well, but didn't really get that nice separation between the strip and the matrix part they have; So here's the code:
and you can use it like that:
Which is not ideal, but you get an idea.. just a check with a bi-colored cross:
Ah yes, you have to call flip() to actually send the thing via SPI.. on to something beefier: A tiny, unreadable, scrollable text that could be read from miles away (if it wasn't unreadable) because of display brigtness:
So there you go. Does anyone think that would be a good tutorial? if so I may polish it a bit and make it so, by having actual photos, and by fiddling with the code formatting (I can't get it to tab correctly), and also check if it works with other resolutions ( I only checked whith a 25 led strip, arranged as 5x5).
Bye!
Beta Was this translation helpful? Give feedback.
All reactions