Difference: RealTimeClock (1 vs. 2)

Revision 22019-05-17 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WeMosD1Mini"

The DS1307 Real Time Clock and data logger

This shield features a battery backed-up Dallas real time clock and an SD card socket which can receive micro SD cards. The board can therefore a big number of sensor data.

wemosDS1307.png

Added:
>
>
3 programs are available for this board. The first one sets date and time which is hard-coded in the program. You must therefore modify the code if you want to set the correct date and time:

https://github.com/uraich/MicroPython_IoTDemos/blob/master/drivers/ds1307/ds1307SetTime.py

The second program is an improvement over the first one. It also sets date and time of the RTC but this time it gets the correct date and time from an NTP time server. Just running the program without any modification will therefor set the correct time.

https://github.com/uraich/MicroPython_IoTDemos/blob/master/drivers/ds1307/ds1307SetTimeNtp.py

The third program reads the date and time from the RTC and prints it in a humanly readable format:

https://github.com/uraich/MicroPython_IoTDemos/blob/master/drivers/ds1307/ds1307GetTime.py

 -- Uli Raich - 2019-03-22

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="wemosDS1307.png" attr="" comment="" date="1553263815" name="wemosDS1307.png" path="wemosDS1307.png" size="78423" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback