Colorful Message With Grove Beginner Kit and RGB Led Matrix
Introduction: Colorful Message With Grove Beginner Kit and RGB Led Matrix
Today, I'd like to share how to create a colorful message displayed on the RGB led matrix by Grove Beginner Kit For Arduino from Seeedstudio. In this project, the led matrix background and letter colors can be customized base on the Grove Beginner Kit built-in sensors.
Let's getting started.
Step 1: Supplies
Main components are as follows:
* 1 x Grove Beginner Kit for Arduino.
* 320 x 5mm Common Anode RGB LEDs.
* 16 x A1013 Transistors.
* 2 x Shift Register 74HC595N.
* 9 x Power Logic 8-Bit Shift Register TPIC6B595N.
* 12 x 0.1uF Decoupling Capacitors.
* 100 x 100Ω Resistors.
* 16 x 1kΩ Resistors.
* 1 x Single-Side Copper Prototype PCB Size A4.
* 1 x Proto Shield for Arduino.
* 2 x Clear Acrylic Plate Size A4.
* 2 x Male & Female 40pin 2.54mm Header.
* 1 x Power Supply 5V.
* 1 x DC Power Supply Male & Female Socket.
* 1 x DC Power Supply Screw Type.
* 8 x Copper Standoff Spacers 20mm.
* 2 meter x Rainbow Color Flat Ribbon Cable.
Step 2: Grove Beginner Kit for Arduino
The Grove Beginner Kit for Arduino® is powered by one Arduino UNO compatible Board (ATmega320p based Seeeduino Lotus) together with 10 additional Grove Arduino sensors all in one piece of the board.
All modules are pre-wired, no breadboard and jumper cables required.
You can go to SeeedStudio wiki page, there are full of tutorials and codes for getting started.
Step 3: Idea
I have built one RGB led table 16x20 which was controlled by SPI protocol, and reserved 4 control pins for future applications as follow:
* DATA PIN
* CLOCK PIN
* LATCH PIN
* BLANK PIN
You can check how I built this led matrix at: https://www.instructables.com/ATtiny85-Spectrum-A...
My idea is to combine this led board and Grove Beginner Kit to display information and make color customizations based on Grove Beginner Kit built-in sensors.
Step 4: Schematic
You can download the project schematic in PDF format HERE.
The components for controlling a RGB led matrix 16x20 via SPI:
* Columns (cathodes) scanning: including 3 groups of TPIC6B595N to control 20 columns, each group includes 3 x TPIC6B595N for 3 colors: Red, Green & Blue.
* Rows (anodes) scanning: including 2 x 74HC595N and 16 x A1013 transistor to control 16 rows.
The connection between Led Matrix 16x20 and ATmega320p based Seeeduino Lotus on the Grove Beginner Kit is as follow:
* DATA_PIN: connect to Seeeduino Lotus pin D11 (MOSI).
* CLOCK_PIN: connect to Seeeduino Lotus pin D13 (SCK).
* LATCH_PIN: connect to Seeeduino Lotus pin D2.
* BLANK_PIN: connect to Seeeduino Lotus pin D7.
Step 5: Soldering and Assembling Works
* Soldering a RGB Led Matrix 16x20: I reused this led matrix from previous project. You can check detail at:
https://www.instructables.com/ATtiny85-Spectrum-An...
* Soldering 4 SPI pins male header on a Proto Shield for Arduino.
* Proto Shield for Arduino was plugged on the Seeeduino Lotus and Grove Beginner Kit was mounted on the backside of led matrix. 769
Then I connected 5VDC power supply and SPI connection to Grove Beginner Kit.
* Ready for programming.
Step 6: Programming
The project code is available at my GitHub:
https://github.com/tuenhidiy/GROVE-BEGINNER-KIT-MA...
Step 7: How It Works
In this project, I used Rotary Potentiometer and 3-Axis Acceleration Sensor to determine the colors of scrolling message, for both letter & background. Details are as follows:
1. Led matrix background color is decided by 3-Axis Acceleration Sensors on the Grove Begginer Kit. For each different pose of led table, it will show a different color. 991