Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsThe MAX7219 drives all 64 LEDs of the matrix over three wires. The PIR decides which face to draw. Students learn how to build pictures from bytes, one row at a time.
Every main part of this project is an item on the public Package 1 equipment list, so a school lab that already owns Package 1 can build it without buying anything extra.
See the full Atal Tinkering Lab packages →
Geekobot is an independent shop, not endorsed by or affiliated with NITI Aayog or the Atal Innovation Mission. Item names follow the public AIM equipment list.
Tick anything you already have and the total updates.
Connects the Uno to your computer to upload code and power it
Passive infrared sensor that detects the body heat of moving people or animals up to about 7 m away.
64 red LEDs in an 8×8 grid driven by one MAX7219 chip over three wires.
Follow the colours: red is power, dark grey is ground, blue is a signal.
atl_greeting_face_matrix.inoVerify & upload in Electrolark// Greeting face on an LED matrix
// Geekobot project library · board: Arduino Uno
// Wiring diagram, parts list and build steps: Geekobot project page "atl-greeting-face-matrix"
#include <LedControl.h>
// ---- pins ----
const uint8_t PIR_PIN = 2;
const uint8_t MX_DIN = 3;
const uint8_t MX_CS = 4;
const uint8_t MX_CLK = 5;
LedControl matrix(MX_DIN, MX_CLK, MX_CS, 1);
// ---- latest readings ----
bool motion = false;
// 8x8 faces: smiley when somebody is near, a flat face when the room is empty
const byte SMILE[8] = {0x3C, 0x42, 0xA5, 0x81, 0xA5, 0x99, 0x42, 0x3C};
const byte FLAT[8] = {0x3C, 0x42, 0xA5, 0x81, 0xBD, 0x81, 0x42, 0x3C};
unsigned long lastSeen = 0;
void drawFace(const byte* f) { for (int r = 0; r < 8; r++) matrix.setRow(0, r, f[r]); }
void setup() {
Serial.begin(115200);
pinMode(PIR_PIN, INPUT);
matrix.shutdown(0, false);
matrix.setIntensity(0, 4);
matrix.clearDisplay(0);
drawFace(FLAT);
}
void loop() {
if (digitalRead(PIR_PIN) == HIGH) lastSeen = millis();
if (lastSeen != 0 && millis() - lastSeen < 5000) drawFace(SMILE); else drawFace(FLAT);
delay(100);
}
Give it a minute to settle after power-up and keep it away from heaters, windows and fans.
Turn the sensitivity (Sx) pot clockwise and check the module has 5 V on VCC.
Check DIN/CLK/CS order and use short wires.
Open the Serial Monitor at 115200 baud and check for messages. Make sure you chose the right board and port in the Arduino IDE.
Close other programs using the serial port, try another USB cable (some are charge-only) and press reset just before uploading.
Yes. Most of the code works unchanged on an ESP32 with the ESP32 board package. Watch for 5 V modules: ESP32 pins are 3.3 V, so 5 V output signals need a resistor divider.
Use a 5 V USB phone charger or a power bank into the board's USB port.
6 parts: Uno R3 CH340G ATmega328p Compatible Development Board, Arduino USB-A to USB-B Data Cable for UNO/MEGA, HC-SR501 PIR Motion Detector Sensor Module, MAX7219 8x8 LED Matrix Module, Solderless Breadboard (830 points) and Dupont Jumper Wires (40 pcs). Tools: Digital Multimeter and Wire Stripper and Cutter. 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 1–2 hours. The build on this page has 7 steps.
No. This page has the complete, tested code (atl_greeting_face_matrix.ino). Install this library first: LedControl.
About ₹468 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
Digital inputs and sensor hold time; Shift-register style LED drivers.
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.
Learning project. Check every circuit and the datasheet of each part before you power it up.