Tags:
tag this topic
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.
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
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
wemosDS1307.png
r1
manage
76.6 K
2019-03-22 - 14:10
UliRaich
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2019-05-17
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
AFNOG Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 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