CNID Completed
I finished my CNID yesterday evening. I did decide to stop back at Radioshack for a 3rd time to pick up some more solder and get ‘better’ LEDs for the green & red indicators. Now all of the LEDs are clear unless powered on, so I think it looks better than having those ugly red & green ’standard’ LEDs, plus the clear ones are considerably brighter than the coloured plastic.
I found another little bug in the code for portato, apparently the location for the collision indicator had moved in the /proc/net/dev file just like the TX indicator had between now and 1995.
I took an old 40 wire IDE cable and stripped it to the right size (2 sets of 16 wires), that worked well for the wiring aspect. Soldering LEDs to wires is an extreme pain in the ass, thus from now on, when possible, I think I’ll pay extra to get LEDs that are already tailed, or I’ll just solder them to little pieces of circuit board. Soldering the wires to the printer port connector was also an incredible pain in the ass, one of the connectors I warmed up too much and it melted the plastic holding it, whooops! So I think as far as the connectors, next time I’ll get the crimp-style, versus the soldering type.
It’s a pretty cool little device, but it did cost about $30 to make, mostly because I bought the LEDs at Radioshack… They horribly overcharge, the single white LED was $5! The blue one was $4, each red one was something like $1.50, etc. The project would have been much cheaper if I was buying LEDs in bulk online. The board that everything is wired to was about $1.50 and the two packs of 150 Ohm resistors were .99 each. So as you can see, the bulk of the cost was the LEDs. My first one of these, the 5 LED “blink-o-tron” was about $5 because I just bought a pack of “Assorted” LEDs, only problem is that there is no way to tell the voltages, milliamps (ma), brightness (millicandelas - mcd), etc.
I found some software that would be cool to use if this wasn’t being used as my CNID - comprehensive network indicator device, it basically operates the whole 8 LED device to ’scan’ one direction and reverse, very much like the Cylon ‘red eye’ thing or the Knightrider KIT car thing, heh, or hell, the thing at the bottom of the ST:TNG viewscreen. In a way using this for that sort of purpose is a bit dumb, because one can wire up timer circuits to the board so it does it like that.
I’m going to see if I can create something that will act as a harddrive indicator for the SIX harddrives in the fileserver or something similar. Either that or I’ll build something to just blink and be “cool” that perhaps can be attached to either a 5v or 12v power connector inside. I guess I found my new “hobby of the moment” now… ;)
The next step for the CNID is to actually attach it inside of the fileserver (after testing), which means drilling eight little holes for the LEDs, whee! I’d really prefer to be able to connect it all internally, but that isn’t particularly an option since there’s no internal printer header… so it’ll be going out the back to the printer port, bleh.
Here’s an image of the eight LEDs all nicely (hah) wraped in electrical tape to make sure the leads on the LEDs don’t touch each other. You can see how I colour-coded the wires so I wouldn’t screw up. One needs to be extra careful with these clear LEDs because there’s no way to tell which colour they are unless they’re powered on.
And here’s an image of the back of the device, I did a little better job soldering this time…
The ‘top’ of the device, you can see the mess of wires all interconnecting and the little resistors.
I wasn’t really sure which resistors I should use, because some of the documents detailed using 150ohm and some detailed using 470ohm resistors, but didn’t ever say what the voltage/ma requirements of the LEDs they used were. I used David’s multimeter and tested the first device and it gave a reading of about ~2.5v per LED which is about where it should be for most of them, perhaps a little too much for some others. The blue (3.7) & white (3.6) LEDs need slightly over 3.5v for optimal brightness, the rest are rated in the 1.7 (red) and 2.1v range (green and amber), but with maximums of 2.4 & 2.8 respectively, so since the device providedes about 2.5v per LED, that means blue & white are slightly starved for power and won’t lightup fully (but, hell, they’re SUPER INTENSE anyway, so that’s fine and in a sense better; the red is slightly overpowered, but since the red LEDs are for “collisions” on the network they should rarely be lit anyway, and the rest of the LEDs are comfortably within the safe range of power.
I thought long about how exactly to arrange the LEDs, and I decided to do it like this:
Red (eth0 collision) - Amber (eth0 transmit) - Green (eth0 receive) - Blue (total network activity) - Green (eth1 receive) - Amber (eth1 transmit) - Red (eth1 collision). That leaves the white LED which will be tenatively used for a CPU indicator, and it’ll be stuck off to the side slightly since it isn’t network related.