Ledstatus is a small program that reads the CPU load by reading the /proc file system and then sends the data to 8 leds connected to the parallel port.
It uses 7 leds to show the CPU load and 1 acts like a "heart beat" so you can know it's running.
What do I need to make the circuit with the leds? Is that difficult or expensive to do?
No, it isn't difficult. You only need a paralell port male connector, 8 leds, 8 470ohm resistances and something to put the circuit on (like one universal card).
The data pins of the parallel port (D0 - D7) are conected to the resistances which are connected to the leds, like this:
- Código: Selecionar todos
pin 20 (ground)
|
470ohm LED |
pin 2 (D0) ----/\/\/------|> |-----+
|
pin 3 (D1) ----/\/\/------|> |-----+
|
pin 4 (D2) ----/\/\/------|> |-----+
[...]
|
pin 9 (D7) ----/\/\/------|> |-----+
This is an image of the female paralell port with all the pins numbered. Remember you only need all the "D" ones and one from the green ones for the leds ground.
Here is everything done (this image is not mine, I found it in google and as you can see it has more leds, but for this circuit we can't do that, it's just descriptive)
I made the circuit, now what?
You can download and install this addon to make it work from here:
http://www.brazilfw.com.br/users/pump/ledstatus/ledstatus.tgz
(9.6 kb)
It is my first add-on, I hope you like it. Any question or doubt you have just ask. ;-)
PS: I don't know if this topic is posted in the right section, if it isn't please move it.