-
Notifications
You must be signed in to change notification settings - Fork 1
DS3231 External RTC
The DS3231 is external RTC that use for keeping the time and date set in the Wemos when we have no internet connection. Usually, when the Wemos reboot, its get the time and date from NTP (Network Time Protocol) server that locate somewhere in the internet, but when we want to use the Tasmota when we not have internet connection, this stopping us from using timers. In this case connect DS3231 to your device.
At the first time after reboot, you must to have internet connection (use your mobile phone or try in other location). Once you have ntp connection , the DS3231 internal clock will be updated automatically. you can now power off the device, from now and on the time is stored in the module and will be restored when there is no connection to NTP.
Note: before the DS3231 can be used with Tasmota, make sure it's enabled. To enable it, remove the forward slashes before this line before you compile and upload tasmota to your Wemos device.
#define USE_DS3231 // Enable use DS3231 external RTC , usefall when you don't have avaliable WIFI. see docs in the source file (+1k2 code)
if you use DS3231 with other address:
// #define USE_RTC_ADDR 0x68 //you can change the addrsss to the DS3231 RTC address, default is 0x68, not mandatory fieled
Wemos | DS3231 |
---|---|
GND | GND |
3.3V | VCC |
D2 (gpio04) | SDA |
D1 (gpio05) | SCL |
In the Configuration -> Configure Module page, select the following:
- Module Type : 18 Generic
- D2 GPIO04 : 06 I2C SDA
- D1 GPIO05 : 05 I2C SCL
Make sure that the time is correct even when you not have internet connection. You also can see in the LOG that we read or write the time from and to the DS3231
Home | Wiki | What's new | Tutorials | FAQ | Troubleshooting | Button usage | Commands | Rules
Home
Theo's Tasmota Tips
What's New
Getting Started
Upload tools
- SonOTA
- OTA over SCP
- Esptool
- Arduino IDE
- PlatformIO
- PlatformIO CLI
- Visual Studio Code
- Python HTTP OTA server
- Node Red OTA server and firmware manager
Usage
- Button Functionality
- MQTT Features
- Supported Commands
- Using Rules
- Sensor Configuration
- PowerOnState Configuration
- SwitchMode/SwitchTopic
- Button Multipress
- Energy Saving
- KNX Features
- Misc. Tips
Devices - Additional Info
- Sonoff Basic
- Sonoff SV
- Sonoff S20 Smart Socket
- Sonoff S26 Smart Socket
- Sonoff Dual / Dual R2
- Sonoff 4CH / 4CH Pro
- Sonoff RF and Slampher
- Sonoff RF Bridge 433
- Sonoff Pow / Pow R2
- Sonoff Touch
- Sonoff T1
- Sonoff B1 / B1 R2
- Sonoff iFan02
- Sonoff SC
- Sonoff PSA
- Sonoff S31
- Shelly 1 and 2
- Wemos D1 R1 & R2
- Wemos D1 Mini
- HuaFan Smart Socket
- Hyleton-313 Smart Plug
- MagicHome LED controller
- H801
- Arilux LC02
- SP108E LED controller
- Blitzwolf SHP2
- Tuya Dimmer
- PS-16-DZ Dimmer
- Armtronix Dimmers
- Other Devices
- retired
Home Automation Integration
- OpenHAB
- Home Assistant
- Domoticz - Manual configuaration
- Domoticz - Automatic discovery
- HomeBridge
- HomeSeer
- SmartThings
- IP-Symcon
- IOBroker
- TasmoAdmin
- Alexa
- Yeti
- NodeRed Examples
- Securing your Setup
Other Integrations
Further Topics
- MQTT Overview
- Remote Button
- Modified Kaku
- PZEM004T Energy Monitor
- IR Extension
- S20 sensor
- Wiring additional things to a module
- Sonoff Basic DHT11 Wiring
- Expand Sonoff 4CH with jack plug
- Defining new module types
- GPIO Locations
- JSON Status Responses
- Expand Sonoff Basic to 4MB Flash
- Time Proportioned Output support
- PID Control with Sonoff Devices
- Sensor-API
- Sensors Supported by Tasmota
- Syslog Setup
ESP32
Misc