I wrote today an article on my blog about CPU load monitoring (using GPIO and leds) on Raspberry's. It is really simple (written in a little shell script), but I think it can be useful (for people who want to learn leds stuff on their R. Pi)
There are 5 leds turning on and off regarding the CPU load:
- CPU < 20%: 1 led
- CPU < 40%: 2 leds
- CPU < 60%: 3 leds
- CPU < 80%: 4 leds
- CPU < 90%: 5/5 leds
- CPU >= 90%: 5 leds flashing
Here is the article: it is written in French, but you can just watch the Youtube video and download the code at the bottom of the article.
http://www.chteuchteu.com/2012/10/26/ra ... e-au-gpio/
If you find any errors in the code, you can post a comment on the article. Thanks !