# RGB LED 64x64 module
 
<abstract>
This article illustrate how to build a Telegram controlled info panel based on Raspberry Pi and
a RGB 64x64 pixel module
</abstract>

<iframe width="560" height="315" src="https://www.youtube.com/embed/MUhA0V10kdc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

### Install rpi-rgb-led-matrix

Install the  rpi-rgb-led-matrix following this article @article='HAT-A3'

Test the HAT-A3 board and RGB panel from command line with this commands:

If you are ssing a LEDRGB-05 Indoor 64x64 P.3.91 pich type:
 
 	sudo ./led-image-viewer  --led-rgb-sequence=GBR --led-rows=64 --led-cols=64 --led-multiplexing=1 --led-slowdown-gpio=2 twitter.png

If you are using two LEDRGB-05 Indoor 64x64 P.3.91 pich type:

	sudo ./led-image-viewer  --led-rgb-sequence=GBR --led-parallel=2 --led-rows=64 --led-cols=64 --led-multiplexing=1 --led-slowdown-gpio=2 -C pattern_128x64.png
 
If you are using a otdoor 64x64 P.3.91 pich type:
	
 	sudo ./led-image-viewer  --led-rgb-sequence=RGB --led-rows=64 --led-cols=64 --led-multiplexing=1 --led-slowdown-gpio=2 twitter.png

### Install Node-RED on Raspberry Pi 3 B+:

Type at command line prompt:

	bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

Enable the systemd service by typing:

	sudo systemctl enable nodered.service

Then start it:

	sudo systemctl start nodered.service	
 
### Install RedBot 

RedBot is a collection of Node-red nodes to implements a telegram Bot

	npm install node-red-contrib-chatbot
 
### Node-red flow

Open your browser on <a href="http://raspberrypi.local:1880">http://raspberrypi.local:1880</a> and import this flow:

* [flows.json](./flows.json)

Insert yout Telegram Token and send message, photo, video and animation to your RGB panel.

 
## Links

* [Analog clock](ttps://gist.github.com/iUltimateLP)
* [Mechanical drawing](./P3.906-2121-18A.dwg)


