RasPiLEDMeter is a project for the Raspberry Pi intended to provide a LED usage meter to the platform.
Current version : 1.1.1, August 14, 2012.
Software side of RasPiLEDMeter allows the Raspberry Pi to drive a LED usage meter. It contains a main application running in background and regularly launching script which get data needed to light on or light off LED. Of course, it's still possible to create your own scripts to fit your needs (more details available into “doc/README” file). Available sample scripts are:
You first have to install Python and the associated developer tools. With Debian / Raspbian, you have to execute as super-user the following command (you have to adapt it to the distribution you use):
$ apt-get install python python-dev
When the installation is done, you have to install a Python library in order to control the GPIO. It's RPi.GPIO (version 0.4.0a or newer), available here : http://pypi.python.org/pypi/RPi.GPIO. When you have downloaded the archive, you have to execute as super-user the following commands:
$ tar -xzf RPi.GPIO-0.4.0a.tar.gz
$ cd RPi.GPIO-0.4.0a$ python setup.py install
When library installation is done, you may delete previously downloaded archive (“RPi.GPIO-0.4.0a.tar.gz”) and untared folder (“RPi.GPIO-0.4.0a”).
330Ω resistors are used to protect LED (and GPIO). You may use 270Ω resistors if you want them to be brighter. Don't use to low value resistor, as you must not draw to much current from GPIO pins : no more than 16mA per pin, and no more than 51mA cumulated on all pins.
I used the Raspberry Pi Started Kit available at SK Pang, which provide a case for the Raspberry Pi and all needed components (I just had to buy another green LED).
|LED number||Color||Pin number on the GPIO header|
RasPiLEDMeter is distributed under the terms of the modified BSD license.
v1.1.1 (August 14, 2012)
v1.1 (August 13, 2012)
v1.0 (August 04, 2012)