This device will store one copy of every can packet that receive on SD card
To setup this device we need:
First of all attach Data logger shield on you arduino. Then connect the CAN to SPI module as the picture bellow.
For more information you can visit the reference website.
Device Picture:
After setup phase open Arduino ide and program the device with code. First time to adjust RTC current time, just uncomment the RTC adjust if statement on line 41-48.
if (! rtc.isrunning()) {
/*January 21, 2018 at 11:30am you would call:*/
rtc.adjust(DateTime(2018, 1, 21, 11, 30, 00));
}
Farshid Abdollahi