Tags:
create new tag
view all tags

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

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

Topic attachments
ISorted descending Attachment History Action Size Date Who Comment
PNGpng wemosDS1307.png r1 manage 76.6 K 2019-03-22 - 14:10 UliRaich  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2019-05-17 - UliRaich
 
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