Hi. I'm trying to make a data logger using SD card.
I want to make logger that shows sensor data and time stamps.
For that, I found that it requires swRTC library to record time.
So I downloaded it and tried its sample code, but it didn't work.
I received these error messages:
In file included from C:\Users\AppData\Local\Temp.arduinoIDE-unsaved202385-26756-rh0pup.w2cdr\sketch_sep5b\sketch_sep5b.ino:1:0:
C:\Users\OneDrive\����\Arduino\libraries\swRTC/swRTC.h:62:2: error: #error Sorry, microcontroller not supported!
#error Sorry, microcontroller not supported!
^~~~~
C:\Users\OneDrive\����\Arduino\libraries\swRTC/swRTC.h:75:2: error: #error Sorry, clock frequency not supported!
#error Sorry, clock frequency not supported!
^~~~~
exit status 1
Compilation error: exit status 1
and the code is:
swRTC rtc;
void setup() {
rtc.stopRTC();
rtc.setDate(9, 9, 2023);
rtc.setTime(0, 0, 0);
rtc.startRTC();
Serial.begin(9600);
}
void loop() {
Serial.print(rtc.getHours(), DEC);
Serial.print(":");
Serial.print(rtc.getMinutes(), DEC);
Serial.print(":");
Serial.print(rtc.getSeconds(), DEC);
Serial.print("\t");
Serial.print(rtc.getYear(), DEC);
Serial.print("/");
Serial.print(rtc.getMonth(), DEC);
Serial.print("/");
Serial.println(rtc.getDay(), DEC);
delay(1000);
}
I'm very new to arduino and I can't figure out why it didn't work and how to make this right.
My board is Uno R4 Minima.
Thanks.