Personal tools



From NiftyWiki
Jump to: navigation, search
Home Documentation Download Support Showroom Links

7seg.jpg A friend showed me Markus' 7-segment RGB hack. Since we liked it so much, I decided to hack together 2 digits. I had an old red 7-segment module and a RGB 4x4 matrix module. Using that, the setup was put together in a few hours.


The 7-segment hacking part pretty much went place like markus described it despite that I used 3mm SMD RGB LEDs.


Shrinking tube was used to group the wires.


After all LEDs were removed from the 4x4 module, wires were soldered to the PCB. All the wires give quite some stability. Surely enough for a quick test:



A PC running Ledcat has been used to send single frames to the LEDs at 50 fps. Normally one would probably use professional video-effect/syntheziser/editor software to generate a fancy 7-segment animation but I wanted to use ImageMagick with some python scripts to just quickly generate a nice animation, so I used a very small 8x5 pixel image format:

7seg-map-1.jpg - each white pixel represents one of the 7 segments + the dot from 2 digits.

According to the way the LEDs were soldered to the PCB (basically random, or "best-fit"), the tile-configuration looked like this:

        <tile x="0" y="0" width="8" height="5">
            <chain ledcount="48" pixel_format="RGB u8">
                <!-- red -->
                <led x="2" y="1" gain="0" component="0"/>
                <led x="0" y="1" gain="0" component="0"/>
                <led x="1" y="2" gain="0" component="0"/>
                <led x="0" y="3" gain="0" component="0"/>
                <led x="1" y="4" gain="0" component="0"/>
                <led x="2" y="3" gain="0" component="0"/>
                <led x="3" y="4" gain="0" component="0"/>
                <led x="4" y="3" gain="0" component="0"/>
                <led x="5" y="4" gain="0" component="0"/>
                <led x="7" y="4" gain="0" component="0"/>
                <led x="5" y="2" gain="0" component="0"/>
                <led x="6" y="3" gain="0" component="0"/>
                <led x="6" y="1" gain="0" component="0"/>
                <led x="4" y="1" gain="0" component="0"/>
                <led x="5" y="0" gain="0" component="0"/>
                <led x="1" y="0" gain="0" component="0"/>
                <!-- green -->
                <led x="2" y="1" gain="0" component="1"/>
                <led x="0" y="1" gain="0" component="1"/>
                <led x="1" y="2" gain="0" component="1"/>
                <led x="0" y="3" gain="0" component="1"/>
                <led x="1" y="4" gain="0" component="1"/>
                <led x="2" y="3" gain="0" component="1"/>
                <led x="3" y="4" gain="0" component="1"/>
                <led x="4" y="3" gain="0" component="1"/>
                <led x="5" y="4" gain="0" component="1"/>
                <led x="7" y="4" gain="0" component="1"/>
                <led x="5" y="2" gain="0" component="1"/>
                <led x="6" y="3" gain="0" component="1"/>
                <led x="6" y="1" gain="0" component="1"/>
                <led x="4" y="1" gain="0" component="1"/>
                <led x="5" y="0" gain="0" component="1"/>
                <led x="1" y="0" gain="0" component="1"/>

                <!-- blue -->
                <led x="2" y="1" gain="0" component="2"/>
                <led x="0" y="1" gain="0" component="2"/>
                <led x="1" y="2" gain="0" component="2"/>
                <led x="0" y="3" gain="0" component="2"/>
                <led x="1" y="4" gain="0" component="2"/>
                <led x="2" y="3" gain="0" component="2"/>
                <led x="3" y="4" gain="0" component="2"/>
                <led x="4" y="3" gain="0" component="2"/>
                <led x="5" y="4" gain="0" component="2"/>
                <led x="7" y="4" gain="0" component="2"/>
                <led x="5" y="2" gain="0" component="2"/>
                <led x="6" y="3" gain="0" component="2"/>
                <led x="6" y="1" gain="0" component="2"/>
                <led x="4" y="1" gain="0" component="2"/>
                <led x="5" y="0" gain="0" component="2"/>
                <led x="1" y="0" gain="0" component="2"/>


7-seg 00.jpg 7-seg 01.jpg 7-seg 02.jpg 7-seg 03.jpg 7-seg 04.jpg 7-seg 05.jpg 7-seg 06.jpg 7-seg 07.jpg 7-seg 08.jpg 7-seg 09.jpg 7-seg 10.jpg 7-seg 11.jpg 7-seg 12.jpg 7-seg 13.jpg 7-seg 14.jpg 7-seg 15.jpg 7-seg 16.jpg 7-seg 17.jpg 7-seg 18.jpg 7-seg 19.jpg 7-seg 20.jpg 7-seg 21.jpg 7-seg 22.jpg


Animation single frames: