Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsDesign your own pixel art, a smiley and a heart, and display them on the 8×8 LED matrix. Each row of the matrix is one byte, eight bits, one per LED. Writing B00111100 turns on the four middle LEDs of that row and leaves the rest off. Stack eight of those bytes and you have drawn a picture. This is bitmapping, and it is exactly how fonts and icons are stored on every small display.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin.
Every part for this build comes in the Geekobot Titan Kit box, a Geekobot exclusive, together with the parts for all 120 projects, from a first blinking LED to a smart fan and a reaction game. The wiring below is the kit's own wiring.
Tick anything you already have and the total updates.
ESP32 DevKit V1 (38-pin): the brain of every Titan Kit project, with Wi-Fi and Bluetooth
Male-to-female and female-to-female leads for the modules
ESP32 expansion board from the kit: every GPIO has its own S, V, G header
Follow the colours: red is power, dark grey is ground, blue is a signal.
titan_kit_013_emoji_led_matrix.inoVerify & upload in Electrolark#include <LedControl.h>
// LedControl(DIN, CLK, CS, number of devices)
LedControl lc = LedControl(23, 18, 5, 1);
byte smiley[8] =
{
0b00111100,
0b01000010,
0b10100101,
0b10000001,
0b10100101,
0b10011001,
0b01000010,
0b00111100
};
byte heart[8] =
{
0b00000000,
0b01100110,
0b11111111,
0b11111111,
0b11111111,
0b01111110,
0b00111100,
0b00011000
};
void drawImage(byte image[])
{
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, image[row]);
}
}
void setup()
{
lc.shutdown(0, false);
lc.setIntensity(0, 5);
lc.clearDisplay(0);
}
void loop()
{
drawImage(smiley);
delay(2000);
drawImage(heart);
delay(2000);
}
Use a micro-USB data cable (some cables only charge), install the CP210x or CH340 driver if no port appears, pick Tools > Board > ESP32 Dev Module and hold the BOOT button on the board until the upload starts.
Check DIN, CS and CLK against the table and that the module's IN side (not OUT) is used. Power it from 5V.
Set the Serial Monitor to 9600 baud, the same speed as Serial.begin() in the sketch, then press the EN button to restart the board.
Each row of the matrix is one byte, eight bits, one per LED. Writing B00111100 turns on the four middle LEDs of that row and leaves the rest off. Stack eight of those bytes and you have drawn a picture. This is bitmapping, and it is exactly how fonts and icons are stored on every small display.
A smiley face appears for 2 seconds. A heart appears for 2 seconds. The two images alternate continuously.
Yes. It is project 13 of 120 in the Geekobot Titan Kit, in level 2 (Displays and games). Every part on the list comes in the kit box, and you can also buy the parts one by one from the list above.
No. Every Titan Kit project is wired on the ESP32 expansion board and the breadboard with jumper wires.
5 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Dupont Jumper Wires (40 pcs), MAX7219 LED Display Module and ESP32 38-Pin Expansion Board. On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 30 minutes. The build on this page has 4 steps.
No. This page has the complete, tested code (titan_kit_013_emoji_led_matrix.ino).
About ₹744 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Bitmapping, turning binary numbers into pictures; Custom characters and icons; Passing arrays to a function; Row-by-row control of a matrix.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin.
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Press to roll: the pips tumble and slow down before landing on a number.
Wait for the light, hit the button: how many milliseconds can you beat?
A bright 4-digit clock that keeps time through power cuts.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.