Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsSome ESP32 boards come with a small SSD1306 OLED already soldered on, which makes them great first projects and handy network checkers. On this Wemos-style board the OLED sits on I2C pins 5 (SDA) and 4 (SCL) instead of the usual 21 and 22, so the sketch starts I2C on those pins. It syncs time by NTP for India and shows the clock, IP address and signal strength.
Tick anything you already have and the total updates.
Wemos ESP32 board with 0.96-inch OLED
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB or a power bank.
pocket_clock.inoVerify & upload in Electrolark#include <WiFi.h>
#include <time.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const char* SSID = "your-wifi";
const char* PASS = "your-password";
void setup() {
Wire.begin(5, 4); // this board's OLED pins
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
oled.clearDisplay(); oled.setCursor(0, 0); oled.print("Connecting..."); oled.display();
WiFi.begin(SSID, PASS);
while (WiFi.status() != WL_CONNECTED) delay(300);
configTime(19800, 0, "pool.ntp.org"); // India, UTC + 5:30
}
void loop() {
struct tm t;
if (!getLocalTime(&t)) return;
char hm[9]; strftime(hm, sizeof hm, "%H:%M:%S", &t);
oled.clearDisplay();
oled.setTextSize(2); oled.setCursor(16, 8); oled.print(hm);
oled.setTextSize(1); oled.setCursor(0, 36); oled.print("IP "); oled.print(WiFi.localIP());
oled.setCursor(0, 50); oled.print("Signal "); oled.print(WiFi.RSSI()); oled.print(" dBm");
oled.display();
delay(1000);
}
Some versions use different OLED pins or address 0x3D; check the board's notes.
Check the 19800 offset in configTime.
Hold BOOT while the upload starts; check the CP2102 driver on Windows.
Yes, on the free pins; I2C sensors can share pins 5 and 4 with the OLED.
It keeps time after the first sync, but needs Wi-Fi to set it.
Yes, it is a normal SSD1306 on I2C, just already wired.
1 part: Wemos ESP32 0.96-Inch OLED Wi-Fi & Bluetooth Development Board w/ CP2102. 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 (pocket_clock.ino).
About ₹1,109 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Using a board with a built-in display; Starting I2C on custom pins; NTP time and network details.
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.