# Using DUE with Generic XD-204 datalogger with type DS1307Z RTC IC

**URL:** <https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171>\
**Category:** 3rd Party Boards\
**Created:** [January 5, 2025, 5:41am UTC](https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171 "2025-01-05T05:41:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![polarmolar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/polarmolar/32/1157875_2.png) [@polarmolar](https://forum.arduino.cc/u/polarmolar)\
**Post date:** [January 5, 2025, 5:41am UTC](https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171/1 "2025-01-05T05:41:31Z")

</div>

I just procured a "generic" XD-204 type of datalogger. It is sold by "Dutty", and is distributed by Amazon. The ASIN (Amazon stock-inventory number) is B0CKSP2H1B. It can be found on Amazon (Canada) at [link to Amazon product](https://www.amazon.ca/Logging-Shield-XD-204-Recorder-Arduino/dp/B0CKSP2H1B/ref=sr_1_1?crid=31BL9KM6M5DAK&dib=eyJ2IjoiMSJ9.IeOnyQjKLJokfBoo42UIew.F8Be8YD72aMPsLw_pFuJ4uRbTtZILdL_vSpghdEKh7I&dib_tag=se&keywords=B0CKSP2H1B&qid=1736055532&sprefix=b0cksp2h1b%2Caps%2C283&sr=8-1). Another source is [HandsOnTec\_Website](https://handsontec.com/index.php/product/xd-204-data-loggerrtc-shield-for-arduino/)

I am using this XD-204 on my Arduino **Due** (original, not a knockoff)

This XD-204 has a RTC based on the DS1307Z integrated circuit, and a coin-cell backup battery.

I have severely edited this Post as I have perservered and found the following things to be necessary with this board:

1. Regarding datalogging to the SD-card, follow Adafruit's recommendations at [Adafruit old-version board](https://learn.adafruit.com/adafruit-data-logger-shield/for-the-mega-and-leonardo). You will have to download and manually install the OLD version of the software ----_carefully read the instructions given there, and **modify the code** _ of the SD-card-related _Example_ files as indicated in there. It should then work for the Due
2. Regarding the use of the RTC clock, the usual RTCLib library's examples chuck error messages at you because the Due isn't communicating with the board. You need to modify the WIRING to solve this problem because the SDA & SCL are not connected "out of the box". **See** [How to connect SCL and SDC for the Due & Mega](https://forum.arduino.cc/t/getting-deek-robot-datalogging-cards-rtc-to-work-help-needed/270070/3).

Using jumper wires (as shown in Post #4 of that thread) solves the communication problem.

_{ **NB, an Edit:** In lieu of the Dupont jumper wires, I had erroneously commented here about the possibility of routing some fine wire from SCL and SDA to the SPI header, but the SPI header does NOT have pins for SCL/SDA, so that is impossible! --Thanks to Sterretje for pointing that out }_

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [January 12, 2025, 4:54am UTC](https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171/2 "2025-01-12T04:54:36Z")

</div>

> [@polarmolar](#):
>
> and then routing some fine wire from SCL and SDA to the SPI header

SPI and I2C are not the same thing; you can not connect them without getting problems.

---

<div class="post-metadata">

**Author:** ![polarmolar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/polarmolar/32/1157875_2.png) [@polarmolar](https://forum.arduino.cc/u/polarmolar)\
**Post date:** [January 12, 2025, 7:24pm UTC](https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171/3 "2025-01-12T19:24:33Z")

</div>

You are of course correct. I hastily wrote that in error of course, thinking that there were SCL & SDA pins at the header. But, those connections don't exist there; I did **not** attempt to wire up to them after I realized that those connections were not available via the SPI header, and then I forgot to go back and remove that line from my post. I did that now to avoid further confusion.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 11, 2025, 7:25pm UTC](https://forum.arduino.cc/t/using-due-with-generic-xd-204-datalogger-with-type-ds1307z-rtc-ic/1339171/4 "2025-07-11T19:25:27Z")

</div>

Closed on July 11, 2025, 7:25pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
