π¨ IMPORTANT: Please read the [Notes & Warnings] section carefully before proceeding with this project. It contains crucial safety information about battery configuration, charging, and sensor placement.
π₯οΈ Core Components | |
---|---|
π§ Microcontroller | Xiao ESP32 C3 (Compatible with most ESP32 boards) |
πΊ Display | 3.52" BiColor E-paper (360x240) |
π Power Source | LiFePO4 6000mAh 3.2V |
β‘ Power Specifications | |
---|---|
Operating Voltage | ~3.2V |
Sleep Duration | 60 seconds |
Battery Thresholds |
π High: 3.4V π Low: 2.9V |
π Communication | |
---|---|
I2C Speed | 400kHz (Fast Mode) |
NTP Server | asia.pool.ntp.org |
Time Offset | 19800 (India, UTC+5:30) |
β‘οΈ Power Efficient |
π Night Mode |
π Auto Update |
π Battery Monitor |
60s Deep Sleep | Light Sensor Based | Daily NTP Sync | Voltage Tracking |
graph TD
A[Wake Up] --> B{Check Light}
B -->|Dark| C[Sleep Mode]
B -->|Light| D[Update Display]
D --> E{Battery OK?}
E -->|Yes| F[Update Time]
F --> G[Update Display]
G --> H[Deep Sleep]
Prerequisites
Required Libraries:
- Check header section inside .ino file
- OEM Display Libraries (Included)
Installation Steps
- Clone repository
- Configure WiFi:
const char *ssid = "Your_SSID";
const char *password = "Your_PASSWORD";
- Update pins in
src/epdif.h
- Upload code
π Battery Life Analysis - Test #1 (With ESP32 C3) | |||
---|---|---|---|
Start Date | End Date | Runtime | Status |
June 6, 2024 | November 1, 2024 | 4 months 27 days | β Completed |
Performance Metrics π Initial Voltage: 3.6V π Final Voltage: ~2.84V π‘οΈ Temperature Range: 17-38Β°C |
π Battery Life Analysis - Test #2 | |||
---|---|---|---|
Start Date | End Date | Runtime | Status |
November 1, 2024 | Coming Soon | In Progress | β³ Running |
Performance Metrics π Initial Voltage: 3.6V π Final Voltage: TBD π‘οΈ Temperature Range: Monitoring... |
π Battery Life Analysis - Test #1 (With ESP32 C6) | |||
---|---|---|---|
Start Date | End Date | Runtime | Status |
Coming Soon | Coming Soon | Coming Soon | Coming Soon |
Performance Metrics π Initial Voltage: 3.6V π Final Voltage: TBD π‘οΈ Temperature Range: Coming Soon |
Build Requirements
- π» Arduino IDE 2.3.x or newer (tested)
- π¦ ESP32 Board Support Package
- π§ USB-C cable for programming
- π Required libraries (see Prerequisites)
Debug Tips
- π Serial Monitor: 115200 baud
- π Test points available for voltage monitoring (just lift the cover)
- π‘ WiFi6 2.4GHz
- π NTP synchronization
- π Daily updates
- π€ Auto sleep when inactive
- π ADC Resolution: 12-bit
- β‘ I2C Speed: 400kHz
- π Power Modes:
- π’ Active
- π€ Deep Sleep
![](https://github.com/KamadoTanjiro-beep/E-Paper-Display-NTP-Clock/raw/main/src/images/x8.jpeg)
Most DS3231 modules are sold with CR2032 or similar cells which are not rechargeable. If you are using a non-rechargeable cell then **REMOVE** either the resistor or the diode marked in the above image.
![](https://github.com/KamadoTanjiro-beep/E-Paper-Display-NTP-Clock/raw/main/src/images/x9.png)
There are some misinformation over internet regarding the charging mode of TP5000. If you are going to use LiFePO4 cell with TP5000 then **DO NOT** short the above marked area with caption F.
- β‘ Current Draw: This project's extremely low current consumption (well below rated cell capacity) makes the cell configuration safer
- π‘οΈ Protection: Always use proper BMS protection for your cells
- π BMS Setup: Due to limited 1S LiFePO4 BMS availability:
- Using 4.2V BMS for 2.5V cutoff protection (Low Discharge Cutoff)
- TP5000 connected directly to the cell for proper 3.6V charging
- This is a temporary solution until better 1S LFP BMS options become available
- β‘ USB Connection Warning: Disconnect battery when connecting USB to ESP32C3
- XIAO modules are designed for LiPo/Li-ion batteries (4.2V charging)
- Not compatible with LFP battery charging (3.6V required)
- Dedicated USB-C module recommended
- Connect USB-C module output to TP5000 input
- Detailed schematics will be provided later
- Simple setup despite complex explanation
- β
Operating Range:
- All components work perfectly with LFP's lower voltage
- Tested operational down to 2.8V
- No impact on battery life or performance
- LFP cells maintain stable 3.2V for extended periods
- 6+ months of testing
- Components designed for wide voltage range operation
- π¨ Ventilation Requirements:
- Proper air vents are crucial
- Ensures accurate sensor readings
- Prevents heat buildup
β οΈ Please consider these points carefully before replicating this setup. Battery safety is crucial!
GNU General Public License v3.0
This project is licensed under the GNU GPL v3.0 - see below for details:
- β Commercial use
- β Modification
- β Distribution
- β Patent use
- β Private use
β οΈ Liabilityβ οΈ Warranty- βΉοΈ License and copyright notice required
- βΉοΈ State changes
- βΉοΈ Disclose source
- βΉοΈ Same license
We welcome contributions! Here's how you can help:
- π Fork the repository
- πΏ Create your feature branch (
git checkout -b feature/AmazingFeature
) - πΎ Commit your changes (
git commit -m 'Add some AmazingFeature'
) - π Push to the branch (
git push origin feature/AmazingFeature
) - π Open a Pull Request
- β Clear description of changes
- β Test your changes thoroughly
- β Update documentation if needed
- β Follow existing code style
- β Add comments where necessary
Made with β€οΈ and β»οΈ materials by π Earth-conscious developers