Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsThe ESP32 serves a tiny web page with a text box. When you press send, the text is posted to the ESP32, which shows it on a 0.96 inch OLED. It is a handy note board for 'Meeting in progress' on a door or 'Dinner at 8' in the kitchen. The page has no password, so anyone on your Wi-Fi can change the text; keep it on your home network.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB phone charger.
message_board.inoVerify & upload in Electrolark#include <WiFi.h>
#include <WebServer.h>
#include <Wire.h>
#include <Adafruit_SSD1306.h>
const char* SSID = "YOUR_WIFI";
const char* PASS = "YOUR_PASSWORD";
WebServer server(80);
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void show(String text) {
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(2); oled.setCursor(0, 0); oled.setTextWrap(true);
oled.print(text);
oled.display();
}
void handleRoot() {
server.send(200, "text/html",
"<meta name='viewport' content='width=device-width'><h2>Message board</h2>"
"<form action='/send'><input name='m' maxlength='40' style='font-size:20px'>"
"<button style='font-size:20px'>Send</button></form>");
}
void handleSend() {
show(server.arg("m"));
server.sendHeader("Location", "/");
server.send(303);
}
void setup() {
Wire.begin(21, 22);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
show("Connecting...");
WiFi.begin(SSID, PASS);
while (WiFi.status() != WL_CONNECTED) delay(300);
show(WiFi.localIP().toString());
server.on("/", handleRoot);
server.on("/send", handleSend);
server.begin();
}
void loop() { server.handleClient(); }
Use the IP address on the OLED, with the phone on the same Wi-Fi.
The OLED at size 2 fits about 40 characters; use size 1 for more.
The basic font supports plain letters and numbers.
Yes. Check a secret value in handleSend before showing the text.
No. Store it with the Preferences library to keep it.
Only people on your Wi-Fi who know the address.
4 parts: ESP32-WROOM-32 38-Pin Development Board, 0.96" OLED Display 128x64, Solderless Breadboard and Dupont Jumper Wires (40 pcs). 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 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (message_board.ino).
About ₹595 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Serving an HTML form with WebServer; Reading form arguments; Wrapping text on an OLED.
Ideas that reuse this build: ESP32 OLED internet clock. They are listed under Take it further on this page.
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.