Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsE-paper keeps its image without power, so a calendar only needs to wake up once a day. The ESP32 gets the time from an NTP server over Wi-Fi, draws the date with the GxEPD2 library on a Waveshare 1.54-inch SPI e-paper module, then deep-sleeps until just after midnight. The wiring follows the ESP32 pins used in the GxEPD2 examples.
Tick anything you already have and the total updates.
1.54-inch 200x200 SPI e-paper
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB, or a LiPo with a charger: with deep sleep it runs for weeks.
epaper_calendar.inoVerify & upload in Electrolark#include <WiFi.h>
#include <time.h>
#include <GxEPD2_BW.h>
#include <Fonts/FreeSansBold24pt7b.h>
#include <Fonts/FreeSans12pt7b.h>
GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(GxEPD2_154_D67(/*CS=*/5, /*DC=*/17, /*RST=*/16, /*BUSY=*/4));
const char* SSID = "your-wifi";
const char* PASS = "your-password";
const char* DAYS[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
const char* MONTHS[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
void setup() {
WiFi.begin(SSID, PASS);
for (int i = 0; i < 40 && WiFi.status() != WL_CONNECTED; i++) delay(250);
configTime(19800, 0, "pool.ntp.org"); // IST = UTC + 5:30
struct tm t;
if (!getLocalTime(&t, 10000)) { esp_sleep_enable_timer_wakeup(3600ULL * 1000000); esp_deep_sleep_start(); }
WiFi.disconnect(true);
display.init(115200);
display.setRotation(0);
display.setFullWindow();
display.firstPage();
do {
display.fillScreen(GxEPD_WHITE);
display.setTextColor(GxEPD_BLACK);
display.setFont(&FreeSans12pt7b);
display.setCursor(10, 40); display.print(DAYS[t.tm_wday]);
display.setFont(&FreeSansBold24pt7b);
display.setCursor(10, 120); display.print(t.tm_mday);
display.setFont(&FreeSans12pt7b);
display.setCursor(10, 170); display.printf("%s %d", MONTHS[t.tm_mon], 1900 + t.tm_year);
} while (display.nextPage());
display.hibernate();
long secs = (23 - t.tm_hour) * 3600L + (59 - t.tm_min) * 60L + (60 - t.tm_sec) + 60; // just after midnight
esp_sleep_enable_timer_wakeup((uint64_t)secs * 1000000ULL);
esp_deep_sleep_start();
}
void loop() {}
Check BUSY and RST wires, and try the other 1.54-inch class (GxEPD2_154 for the older panel).
Wrong panel driver; pick the class that matches the controller printed on the flex cable.
Check the Wi-Fi details and the time-zone offset (19800 s for IST).
No, e-paper keeps the image for months without power.
One wake per day uses very little; a 1000 mAh LiPo lasts many weeks.
Yes, fetch a weather API during the same wake and print it under the date.
4 parts: ESP32-WROOM-32 38-Pin Development Board, Waveshare 1.54 inch e-Ink Paper Display Module with SPI Interface, 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.
No. This page has the complete, tested code (epaper_calendar.ino).
About ₹1,867 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Driving SPI e-paper with GxEPD2; Getting time with NTP; Deep sleep with a timer wake-up.
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.