I am currently working on an electronics project of building my own Digital wall clock. For that I tried making a RTC module with DS1307 IC.
I followed the following instruction from this website.
But when I tried to read and write the time to the IC using the serial monitor on Arduino software I got the following result.
My inputs were as follows:
first i/p : T000021240114
second i/p: R
Can someone help me find my mistake.
Best Answer
From the code:
All have two characters except for dayOfWeek
So for right now (2014-01-25 13:58:00) it would be 14 characters (including 'T')
You only have 13 characters in your command.
Also you need 4K7 - 10K pullups on SDA and SCL. Note that "Command: 13" in the log is just the carriage return character (enter). Since you had too few characters in the command, it was interpreted as part of the command.