Users Examples

Forums:

Please post any examples you would like to share with other LedBorg owners here :)

piborg's picture

b1nary has kindly shared the standard examples written for Ruby:
https://gist.github.com/f576d42067cc16d2684d

thanks b1nary!

I done something similar: very simple class & examples:
https://github.com/solyaris/ledborg

giorgio
giorgiorobino.com

Timothy Freeburn's picture

Ross Taylor's blog has a great use for the LedBorg and some code for Vala to do this with.

http://themightyug.blogspot.co.uk/2012/12/raspberry-pi-ledborg-vala-network.html

swinders's picture

I have been playing with a Home Energy Monitor that I've had laying about for a few years and connected it up to my Raspberry Pi. Now I can used the LedBorg to give an indication of how much electricity we are using. I have written up how I achieved this on my blog (RaspberryPi Home Energy Monitor) giving a simple three level indicator but have now implemented a graduated scale that runs on boot up. Hope you find it interesting.

I made a little Perl script using only the standard /sys/class/gpio interface to make the ledborg gently glow on and off.
http://blog.bloemsaat.com/2013/01/27/glowing-leds-on-the-raspberry-pi-gp...

TiPunK's picture

I shared the standard examples written for PHP:
https://gist.github.com/atierant/5346791

A small rpc http service to control the LedBorg written in Go.
https://github.com/tofa84/goled

piborg's picture

Marco Tonoli has posted an example of turning LedBorg into a basic clock here
piborg's picture

Fotosyn (@fotosynimaging, http://www.fotosyn.com) has made an App for iOS together with a Python server on the Raspberry Pi allowing you full control of your LedBorg from iOS:

View on vimeo

See the full blog here for more details.
Source is available here.

My first project involving a LedBorg was to integrate it with a Airplay reciever for streaming music.
Whenever i start to play music the LedBorg will start to pulse in random colors. This is actually my first Python project ever. AirDisco will run as a Daemon and can be started,stopped or restarted from the cli.

For more information see:

How to setup Airplay on your Raspberry Pi: http://lifehacker.com/5978594/turn-a-raspberry-pi-into-an-airplay-receiv...

For code with Ledborg see Github at: https://github.com/uhellstr/AirDisco.git

Kyle's picture

Simple configurable leborg clock (using Python and crontab)

This clock is based on the Striking Clock and Westminster Quarters systems used by church clocks.

First a sequence will flash showing the quarter hour time.
1 x = quarter past hour.
2 x = half past hour.
3 x = quarter to the hour
4 x = on the hour

And then the hour number 1 - 12 will flash.

All colours, sequences and timings are easily configurable.

Installation
1: Make a directory in your /home/pi directory:
mkdir ledborg_clock

2: Move into the directory:
cd ledborg_clock

3: Download the zip file:
wget http://cathalstewart.co.uk/ledborg_clock.zip

4: Extract contents to this directory:
unzip ledborg_clock.zip

5: Chmod the python file:
chmod +x ledborg_clock.py

6: Open crontab for editing:
crontab -e

7: Add line to bottom of crontab:
*/15 * * * * python /home/pi/ledborg_clock/ledborg_clock.py

8: Save and exit:
Ctrl+X then press Y and Enter

Subscribe to Comments for "Users Examples"