Smart Home Automation Forum
KC868-ASR SD Card - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-ASR (https://www.kincony.com/forum/forumdisplay.php?fid=42)
+--- Thread: KC868-ASR SD Card (/showthread.php?tid=4265)



KC868-ASR SD Card - miraclecontrols@gmail.com - 02-09-2024

Do we have example Arduino code for recording/logging function on TF card on KC868-ASR v1.0. Want to record Temperature as read from a DS18B20 along with Real Time (RTC) Date and time every hour on a csv file. KCS v2 firmware does not seem to have this feature.


RE: KC868-ASR SD Card - admin - 02-10-2024

here is TF card arduino demo code for KinCony M16 board, but it's as same as KC868-ASR.
https://www.kincony.com/forum/showthread.php?tid=2868


RE: KC868-ASR SD Card - miraclecontrols@gmail.com - 02-12-2024

Hello, I managed to use the Arduino code for TF card on KC868-ASR and I could store "hello world" as intended on the code. But I am failing to store Temperature Values from DS18B20 although I am able to read the valuse of Temperature from DS18B20 on the Serial.print. It gives me error of either char or const char or float or uint8_t or String format. I tried all ways to modify - chat buf[] = "hello world" - to insert the - chat buf[] = ds1.getTempC() -under - void testIO(fs::FS &fs) - but did not succeed. It gives me all sort of format errors. Someone please assist.