Post your best Lua script examples here

User avatar
By trackerj
#13936 If you remember my article about PCF8563 Real Time Clock http://www.esp8266-projects.com/2015/03/pcf8563-real-time-clock-i2c-driver.html this one was a looong avaited item. Actually I didn't expect it to show anymore after so much time but miracles happening sometime :)
The DS3231 is a extremely accurate I2C real-time clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted.

For more details: http://www.esp8266-projects.com/2015/04/mailbag-arrival-ds3231-i2c-real-time.html



3 - DS3231_RTC - App default - 3.jpg

DS3231_RTC 1.jpg

DS3231_RTC 2.jpg

DS3231_4- first run -4.jpg
User avatar
By trackerj
#14066
Jan Marius Evang wrote:Very interesting.
Could this module be used with a battery powered ESP-01 which is woken by the RTC alarm every XX minutes to log something?

Marius


I don't see any reason why not.
You can switch ESP Module power ON/OFF with a MOSFET for example.
Crude but simple and don't need access to any extra pins that are not available on ESP-01 limited pinout.
User avatar
By vis2020
#67423 Hi All,
I m looking to incorporate Ds3231 board into my Nodemcu board flashed with Lua.
Please let me know the steps for
a. Connecting the Ds3231 to Nodemcu board
b. Setting the exact time in the Ds3231 the first time
c. Preferably I would want the Nodemcu to wakeup at a particular time as defined by user in the Lua program..