Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsE-paper only uses power when the picture changes, so an ESP32 can wake up, read a BME280, redraw the screen, then go back into deep sleep for fifteen minutes. The 2.13 inch black and white panel talks over SPI, and the GxEPD2 library draws text on it. On a small Li-ion cell this can run for weeks, and the screen stays readable in sunlight.
Do not bend the panel or its flat cable.
Use a protected Li-ion cell and a charger board if you run it from a battery.
Tick anything you already have and the total updates.
Reads the sensor, draws the screen, then sleeps
2.13 inch black and white e-paper module, SPI
BME280 temperature, humidity and pressure breakout
2.9 inch red, black and white panel for a bigger display
Follow the colours: red is power, dark grey is ground, blue is a signal.
Power from USB while testing. For a battery, use a single Li-ion cell with a charger board; deep sleep keeps the average current very low.
epaper_weather.inoVerify & upload in Electrolark#include <GxEPD2_BW.h>
#include <Fonts/FreeSansBold12pt7b.h>
#include <Wire.h>
#include <Adafruit_BME280.h>
// Change the class to match your panel (see GxEPD2 examples)
GxEPD2_BW<GxEPD2_213_B74, GxEPD2_213_B74::HEIGHT> display(GxEPD2_213_B74(/*CS*/ 5, /*DC*/ 17, /*RST*/ 16, /*BUSY*/ 4));
Adafruit_BME280 bme;
void setup() {
Wire.begin(21, 22);
if (!bme.begin(0x76) && !bme.begin(0x77)) { /* no sensor: draw zero values */ }
float t = bme.readTemperature(), h = bme.readHumidity(), p = bme.readPressure() / 100.0;
display.init(115200);
display.setRotation(1);
display.setFont(&FreeSansBold12pt7b);
display.setTextColor(GxEPD_BLACK);
display.setFullWindow();
display.firstPage();
do {
display.fillScreen(GxEPD_WHITE);
display.setCursor(8, 30); display.printf("%.1f C", t);
display.setCursor(8, 62); display.printf("%.0f %% RH", h);
display.setCursor(8, 94); display.printf("%.0f hPa", p);
} while (display.nextPage());
display.hibernate();
esp_sleep_enable_timer_wakeup(15ULL * 60 * 1000000); // 15 minutes
esp_deep_sleep_start();
}
void loop() {}
Check BUSY goes to GPIO4 and the panel is on 3.3 V. Then try another panel class from GxEPD2's examples.
Do a full refresh every few updates instead of partial ones.
The ESP32 warms the board. Keep the sensor on longer wires, away from the ESP32.
That is a full refresh. It clears the old image and prevents ghosting.
Yes, GxEPD2 draws bitmaps, though a large colour panel can take 15 seconds to refresh.
It depends on the cell, but sleeping at about 10 to 20 uA between updates lets small cells last for weeks.
6 parts: ESP32 DevKit V1 Development Board (30-Pin, WROOM-32), 2.13 Inch E-Paper Display Module, Black and White, Generic ZY-BME280 Pressure Temperature Humidity Sensor Module – I2C Interface, Waveshare 2.9 inch E-Paper Display Module (B), Red/Black/White, 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_weather.ino).
About ₹3,879 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Driving an SPI e-paper panel with GxEPD2; Using ESP32 deep sleep to save battery; Reading a BME280 over I2C.
Do not bend the panel or its flat cable. Use a protected Li-ion cell and a charger board if you run it from a battery.
Ideas that reuse this build: WiFi thermometer for a fridge. 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.