An open API service indexing awesome lists of open source software.

https://github.com/desiFish/EPaper-Display-NTP-Clock

E-Paper Display based efficient NTP Clock
https://github.com/desiFish/EPaper-Display-NTP-Clock

32650 arduino arduino-ide bh1750 bms clock ds3231 e-paper e-paperdisplay esp32 lifepo4 lifepo4-battery ntp smart-clock temperature-sensor tp5000 usbc waveshare-epaper xiao-esp32-c3 xiao-esp32c6

Last synced: about 2 months ago
JSON representation

E-Paper Display based efficient NTP Clock

Awesome Lists containing this project

README

        


๐ŸŒŸ Minimalistic E-Paper NTP-RTC Clock ๐Ÿ•’









Status
License
GitHub Issues
Release


> ๐Ÿšจ **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.

๐ŸŽฏ System Specifications


๐Ÿ–ฅ๏ธ 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)

## ๐Ÿ› ๏ธ Hardware Components ๐Ÿ”ฉ Parts List

Component
Specifications
Details


Xiao ESP32 C3

โ€ข MCU: ESP32-C3 RISC-V

โ€ข Clock: 160MHz

โ€ข RAM: 400KB SRAM

โ€ข Flash: 4MB

โ€ข WiFi: 2.4GHz

โ€ข Bluetooth: BLE 5.0

โ€ข GPIO: 11 pins

โ€ข Size: 21x17.5mm

โ€ข Deep Sleep: ~43ยตA (when powered via BAT pins)

โ€ข Note: Deep sleep current specified when battery connected to BAT pins

Ultra-compact IoT controller with low power consumption and built-in wireless capabilities. ESP32 C6 variant achieves ~14ยตA in deep sleep.


Waveshare 3.52" E-Paper

โ€ข Resolution: 360x240

โ€ข Colors: BiColor

โ€ข Refresh: 1.5 secs

Display unit with low power consumption


BH1750

โ€ข I2C Address: 0x23

โ€ข Mode: ONE_TIME_HIGH_RES

โ€ข Precision: 1-65535 lux

Ambient light sensor for night mode


DS3231

โ€ข Accuracy: ยฑ2ppm

โ€ข Temperature comp.

โ€ข Battery backup

Real-time clock for timekeeping


IFR32650 LiFePO4

โ€ข Model: IFR32650

โ€ข Capacity: 6000mAh

โ€ข Voltage: 3.2V nominal

โ€ข Chemistry: LiFePO4

โ€ข Cycle Life: >2000 cycles

โ€ข Size: 32x65mm

โ€ข Max Discharge: 2C

โ€ข Temperature Range: -20ยฐC to 60ยฐC

โ€ข Self-discharge: 3% per month

High-capacity, safe chemistry battery with long cycle life and stable voltage output


TP5000

โ€ข Input: 5V USB

โ€ข Output: 3.2V

โ€ข Current: Up to 2A

Battery charging module


USB-C Breakout

โ€ข USB 2.0 Compatible

โ€ข 5V Input

โ€ข Data lines available

Power input and debugging interface

## ๐Ÿ’ซ Key Features โœจ




โšก๏ธ
Power Efficient
๐ŸŒ™
Night Mode
๐Ÿ”„
Auto Update
๐Ÿ“Š
Battery Monitor


60s Deep Sleep
Light Sensor Based
Daily NTP Sync
Voltage Tracking


## ๐Ÿ“ˆ System Architecture ๐Ÿ”„
```mermaid
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]
```

## ๐Ÿš€ Quick Start ๐ŸŽฏ

Prerequisites

```yaml
Required Libraries:
- Check header section inside .ino file
- OEM Display Libraries (Included)
```

Installation Steps

1. Clone repository
2. Configure WiFi:
```cpp
const char *ssid = "Your_SSID";
const char *password = "Your_PASSWORD";
```
3. Update pins in `src/epdif.h`
4. Upload code

## ๐Ÿ”‹ Battery Performance โšก


๐Ÿ“Š 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

## ๐Ÿ“ธ Gallery ๐Ÿ–ผ๏ธ





Front 1




Side 1




Back




Front 2






Inside 1




Inside 2




Inside 3




ESP32 C3 & C6

## โš™๏ธ Development ๐Ÿ”ง

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)

## ๐ŸŒ Connectivity ๐Ÿ“ก
- ๐Ÿ“ก WiFi6 2.4GHz
- ๐Ÿ•’ NTP synchronization
- ๐Ÿ”„ Daily updates
- ๐Ÿ’ค Auto sleep when inactive

## ๐Ÿ”ฌ Technical Details ๐Ÿ“Š
- ๐Ÿ“ˆ ADC Resolution: 12-bit
- โšก I2C Speed: 400kHz
- ๐Ÿ”Œ Power Modes:
- ๐ŸŸข Active
- ๐Ÿ’ค Deep Sleep

## โš ๏ธ Important Notes & Warnings ๐Ÿšจ

### ๐Ÿ”„ DS3231 Battery Safety โšก




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.

### ๐Ÿ”Œ TP5000 Charging Configuration โšก




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.

### ๐Ÿ”‹ Battery Configuration Safety ๐Ÿ›ก๏ธ

### Power Management Considerations
- โšก **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 Charging Safety
- โšก **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

### Voltage Compatibility
- โœ… **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

### Enclosure Design
- ๐Ÿ’จ **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!**
---

## ๐Ÿ“œ License ๐Ÿ“ƒ

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

#### Limitations
- โš ๏ธ Liability
- โš ๏ธ Warranty
- โ„น๏ธ License and copyright notice required
- โ„น๏ธ State changes
- โ„น๏ธ Disclose source
- โ„น๏ธ Same license

[Read full license](/LICENSE)

## ๐Ÿค Contributing ๐Ÿ‘ฅ
We welcome contributions! Here's how you can help:

1. ๐Ÿ” Fork the repository
2. ๐ŸŒฟ Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. ๐Ÿ’พ Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. ๐Ÿš€ Push to the branch (`git push origin feature/AmazingFeature`)
5. ๐Ÿ“ Open a Pull Request

### Pull Request Guidelines
- โœ… 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