Blinkenschild: Unterschied zwischen den Versionen
KKeine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 47: | Zeile 47: | ||
And there are numerous reasons to bring the messages to the streets (with a blinky twist). | And there are numerous reasons to bring the messages to the streets (with a blinky twist). | ||
== Lessons learned == | |||
===Hardware=== | |||
The RGB-123 panels can be powered DIRECTLY from a LiPo cell between 3.7 and 4.2 volts. | |||
The WS2812 dtasheet says you need 5V signal levels, but the WS2811 datasheet states that the signal levels must be at least 70% of the VCC. | |||
As VCC is between 3.7 and 4.2V the 3.3V signal levels are well within that range. | |||
===Software=== | |||
Glediator is GREAT. It can do 12324 things, runs on all the platforms and performs really well. | |||
Unfortuneatly it is not open source. | |||
There are options to send data out over serial but not over IP and not directly into a file. | |||
But we are hackers around here so we can fix this in software. right? right. | |||
socat is the tool of choice. Lets create a virtual serial port and dump its output to a file :) | |||
The magic: | |||
'''socat -d -d -lf socat.out pty,raw,echo=0 - > $file''' | |||
'''java -Dgnu.io.rxtx.SerialPorts=$pty -jar Glediator.jar -d32''' | |||
Might not work depending on your librxtx.. you might want to symlink /dev/ttyACM0 to /dev/pty/? and start java as root. | |||