Hi, I have build a sensor using arduino Uno and Deekrobot datalogger shield to measure pressure. I am trying to add timestamp to the output using DS1307N but the output i am getting is 2165/165/165 for Year/Month/Day. The deekrobot datalogger shield has built in RTC (DS1307N) hence I have not build a separate circuit.
However, when i run the RTC without integrating its code into data logger, it records correct values.
I have attached both codes and the output :
- FSR_Datalogger_v2.ino ----> Error in RTC Output
- Timestamp.ino -----> Perfect Output
I don’t understand why stand alone code is working and integrated code isn’t. Can anyone help?
FSR_Datalogger_v2.ino (3 KB)
Timestamp.ino (2.22 KB)