msparks / arduino-ds1302 Goto Github PK
View Code? Open in Web Editor NEWArduino library for the DS1302 Real Time Clock chip
Arduino library for the DS1302 Real Time Clock chip
I used the "set time" example to test my RTC but on every other read the date is garbage. Here's the output of the program:
(unknown day) 2011-84-11 11:100:19
Thursday 2017-08-17 17:41:33
(unknown day) 2011-84-11 11:100:20
Thursday 2017-08-17 17:41:35
(unknown day) 2011-84-11 11:100:21
Thursday 2017-08-17 17:41:37
(unknown day) 2011-84-11 11:100:22
Thursday 2017-08-17 17:41:39
(unknown day) 2011-84-11 11:100:20
Thursday 2017-08-17 17:41:41
(unknown day) 2005-42-05 05:130:50
I've not modified the code or the example. I changed the battery that came with the unit but that has not solved it.
First of all thanks for spending the time to create this library and donating it to the world. It helped me get up and running very rapidly with this cheap RTC board.
Just a minor amendment, I believe there is an error with the switch case, which defines the name of the day of the week, starting on line 33 of "set_clock.pde".
I noticed the day of the week was displaying as Tuesday when it was actually Thursday.
I believe this is the correct order.
Monday = 0, Tuesday = 1, Wednesday = 2, Thursday = 3, Friday = 4, Saturday = 5, Sunday = 6.
This would be helpful and simplify one of the examples
Master does not work with my DS1302 9905A3 163AC. Shows strange date, random seconds. However, previous commit f4794ec works fine
Sorry, it was power issue
Compile files: 'const class String' has no member named 'c_str'
This is just an FYI, I don't need a fix. I just changed dayAsString to dayAsInt and moved on. I imagine the Arduino folks made a change to the String implementation. Thanks for providing this library!
When I try to compile the code I get an error message saying " expected identifier before 'void' " and it's pointing at
case Time::kSunday: return "Sunday";
Did I install this wrong or maybe missing any files?
I have been trying to set-up my DS1302 module this evening. I used the example set_clock.ino
and connected the pins as shown in the diagram to the arduino. I also changed the date/time in the code on line 68 from: Time t(2013, 9, 22, 1, 38, 50, Time::kSunday);
to Time t(2018, 11, 18, 17, 20, 00, Time::kSunday);
The serial monitor output just repeats: (unknown day) 2000-00-00 00:00:00
. Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.