As shown below all the electronic parts can be fixed inside a cheap and elegant IKEA RIBBA photo frame.
The whole project is based on the full color RGB led panel made by the Chinese company Linsn.
It is composed by 1024 rgb led ordered in 32 rows of 32 leds each and mounted with a lot of logic on a black PCB 19x19 cm size. Everything in enclosed in a plastic frame with a set on placement for M3 screws to use for mounting.
The cost of creating a panel like this for an European company could be around 200 eur just for manufacturing and components so the best thing to do is to buy it :-)
The datasheet of this panel with a correct explanation about how it works is not easily available. In this page I'll try to explain how "it seems to work" :-)
On the rear an Arietta G25 module is used to generate all the signals requested by the RGB panel starting from a 32x32 pixel graphic image.
The Pyhton graphic library called Pillow is used to create the image starting from graphic primitives, true type fonts, and jpg, png, etc images.
The WiFi capability of the Arietta G25 (also in Access Point mode) and the Python module for the networking, open a lot of possible uses of this project.
Linux is loaded in few seconds from an 8GB microSD with more than 7.8 GB free !!
Tons of softwares, tools, languages and libraries can be installed. Complete step by step guides are available on this site.
The RGB led panel has a two 16 pins male connector where to send data using a synchronous serial transmission.
The panel is logicaly splitted in two section:
R0, G0 and B0 are the data sent to the top block
R1, G1 and B1 are the data sent to the top block
Four address lines (A,B,C and D) select to which row of led are sending the data on Rx,Gx and Bx lines
This is the lock diagram of the internal parts of a RGB led panel
This is the pinout of input data connector:
|LED Pin #||Signal||Description||Arietta pin #||Line||gpio ID|
|1||R0||Red 1st bank||J4.10||PA21||21|
|2||G0||Green 1st bank||J4.8||PA22||22|
|3||B0||Blue 1st bank||J4.7||PA23||23|
|5||R1||Red 2nd bank||J4.11||PA24||24|
|6||G1||Green 2nd bank||J4.13||PA25||25|
|7||B1||Blue 2nd bank||J4.15||PA26||26|
On the output data connector just replicates the input lines for a wire another RGB led panel display.
The power supply connector needs 5 VDC @ max 3A. At this current all leds are on at maximum brightness.
Download the examples repository:
~# git clone git://github.com/tanzilli/led-utils.git Cloning into 'led-utils'... remote: Counting objects: ..., done. remote: Compressing objects: 100% (../..), done. Receiving objects: 100% ..., done. Resolving deltas: 100% ..., done. ~# cd led-utils ~/led-utils# ./clock-py
All the utilities use the Python Interface Library to manage images, font, etc so before trying any example install PIL on your Arietta G25 by typing:
# apt-get update # apt-get install python-imaging
This is the list of utilities available. If you can't run something try to update your repository by typing: git pull.
This example written in Python shows a count down from 99 to 0 using a full size TTF font.
Source code: counter.py
This example, written in Python, shows a sliding message using a big TTF font
The RGB color and the message to display are given from the command line.~/led-utils# ./text.py "text" R G B
The R, G and B values are in range of 0 (off) to 7 (max)
Source code: text.py
This example shows the system time in HH:MM:SS format using a big TTF font and slide the line horizontaly.
The RGB color is given from the command line.~/led-utils# ./clock.py R G B
The R, G and B values are in range of 0 (off) to 7 (max)
Source code: clock.py
Is available a demo version of this programm called clock_demo.py which changes automatically the colors during the time sliding:~/led-utils# ./clock_demo.py
Source code: clock_demo.py
All the rgb led panel are generate in bit banging mode using normal GPIO lines. To go as fast as possible a Linux driver written in C code is required.
The driver I wrote can update the whole panel contents 679 times per second leaving enough time to Linux to do other jobs in the meanwhile.
The main routine of this driver is a callback function called by a hrtimer 10800 times per second at interval of 92uS.
In just 22uS this routine check the brightness of each color and send a simulated pwm signal to any led (32 x 3 color = 96) on a single row then exit. It will be called again by the Kernel after 66uS.
The fully source code of this driver is available under GPL licence on GitHub: ledpanel source on GitHub
To compile ledpanel.c it is requested a Linux Ubuntu PC on where install the cross compiler toolchain and Linux Kernel sources:
During the make menuconfg be sure to enable the High Resolution Timer Support:
General setup ---> Timers subsystem ---> [*] High Resolution Timer Support
Clone the GitHub repository on your Linux PC:
$ git clone git://github.com/tanzilli/ledpanel.git $ cd ledpanel ~/ledpanel$
Compile the module by typing:
~/ledpanel$ make -C ~/arietta/linux-4.1.10 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- M=`pwd` modules
and copy in inside Arietta G25
~/ledpanel$ sshpass -p acmesystems scp ledpanel.ko email@example.com:/root
Open a command session on Arietta and load the Kernel module:
root@arietta:~# insmod ledpanel.ko
Now you can try some example to show something on the display.
A Linux Ubuntu PC is required
$ tar -xvjpSf boot.tar.bz2 -C /media/$USER/boot $ sudo tar -xvjpSf rootfs.tar.bz2 -C /media/$USER/rootfs
Access to WiFi LedPanel and go to these address from your browser:
WIFI-2 - WiFi USB module
OEM Small USB 2.0 IEEE 802.11 b/g/n Wi-Fi compliant module based on the RaLink RT5370N chip. It works at 3.3V and can be configured also in Access Point mode.
This model requires an external antenna model AN-WIFI-01 or AN-WIFI-02.| Product description || Datasheet |
AN-WIFI-01 - WiFi pcb external antenna
WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module.
LEDRGB-02 - RGB led module 32x32 pixel P6 indoor
Indoor full color LED module
Fully compatible with HAT-A3 adapter for Raspberry PI| Product description |
HAT-A3-M - Led RGB controller for Raspberry Pi 3 - Mounted version
Hat A3 is the Acme Systems commercial version of the Active-3 board designed by Henner Zeller to controll RGB led display with Raspberry Pi 3| Product description || Buy on Amazon |