# How to use ds1307 module?

**URL:** <https://forum.xod.io/t/how-to-use-ds1307-module/316>\
**Category:** Uncategorized\
**Created:** [December 28, 2017, 6:13am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316 "2017-12-28T06:13:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharadwaj18k](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@bharadwaj18k](https://forum.xod.io/u/bharadwaj18k)\
**Post date:** [December 28, 2017, 6:13am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/1 "2017-12-28T06:13:12Z")

</div>

can any one tell me how to use ds1307 module… I want to make an alarm clock…

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [December 28, 2017, 12:48pm UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/2 "2017-12-28T12:48:56Z")

</div>

- Create a patch with `ds1307-rtc-write` node
- Set current time on inputs of this node
- Upload the patch to Arduino. It would setup RTC time
- Create another patch, the main one, with `ds1307-rtc-read` node
- Use outputs of the node to compare time to a threshold value, output to LCD, etc.

---

<div class="post-metadata">

**Author:** ![sios](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sios](https://forum.xod.io/u/sios)\
**Post date:** [February 9, 2018, 6:15am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/3 "2018-02-09T06:15:35Z")

</div>

hello  
can you please help me giving some video tutorial to make rtc node work at least it can be displayed in the LCD?  
currently i’m using ds3231  
i’m still confused about how to make this module work especially the addr where can we get the addr is it same with port or its same with the addr in lcd with i2c?

and also is it possible to use XOD to make kind of timer to on off something?

to be honest i dont have any background in coding at all but using XOD really help me a lots except this rtc module \>.\<

---

<div class="post-metadata">

**Author:** ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)\
**Post date:** [February 12, 2018, 4:26pm UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/4 "2018-02-12T16:26:35Z")

</div>

Yep, `ADDR` is I2C address. Try 104. LCD and ds3231 should have different addresses.

---

<div class="post-metadata">

**Author:** ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)\
**Post date:** [February 14, 2018, 6:39am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/5 "2018-02-14T06:39:08Z")

</div>

@sios, did it work? Need any more help?

---

<div class="post-metadata">

**Author:** ![sios](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sios](https://forum.xod.io/u/sios)\
**Post date:** [February 14, 2018, 7:08am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/6 "2018-02-14T07:08:30Z")

</div>

I will give it a try tonight. still stuck at office this couple day \>.\<

---

<div class="post-metadata">

**Author:** ![sios](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sios](https://forum.xod.io/u/sios)\
**Post date:** [February 15, 2018, 12:32am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/7 "2018-02-15T00:32:11Z")

</div>

still not working \>.\<

1. i create patch rtc write to set the current time
2. upload
3. create another patch to compare the current time with the time i want  
4 upload  
and nothing happen

i attach the project please give some feedback

[led.xodball](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/a241d775da4241acd27210fe514b90e1e5f8a447.xodball) (8.0 KB)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 15, 2018, 1:44am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/8 "2018-02-15T01:44:43Z")

</div>

You have output pins defined for on, off, and between, but you never send any data to them. For between, you need to name the output pin OUT to match the C++ code. For on & off, you need to wire the output pins to something; the only option in this case is the pulse for the rtc-write-DONE pin; outputting string, number, and boolean like you have tried to do doesn’t make any sense here.

I’m not sure what you are trying to do with the on & off nodes. It looks like you have them configured to write two different times to the RTC on boot; they have no output for feeding to the between node (so it will always be the NULL string), and the between node is trying to compare numbers, but you are feeding it strings. XX:YY is never going to be between 0 & 0.

You really should go through the tutorial that comes with XOD. There are several basic concepts presented there that you seem to be missing. There is lots of documentation to help you understand those basics here: [https://xod.io/docs/](https://xod.io/docs/)

---

<div class="post-metadata">

**Author:** ![sios](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sios](https://forum.xod.io/u/sios)\
**Post date:** [February 15, 2018, 3:23am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/9 "2018-02-15T03:23:19Z")

</div>

i add 3 out because im confused which one will work and non of them work.  
and yes i already do the basic tutorial in doc that’s why i can move this far \>.\<

hmm i thing i do it wrong  
what i mean is creating write patch (the reality i use read node) to set the current time then create read patch for ON and OFF and compare them to the current time and when it full fill the condition it will turn on or off led. (the idea is make an on off timer for led)

solved finally yay…

---

<div class="post-metadata">

**Author:** ![rsstorm1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rsstorm1/32/1032_2.png) [@rsstorm1](https://forum.xod.io/u/rsstorm1)\
**Post date:** [April 17, 2018, 10:35am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/10 "2018-04-17T10:35:37Z")

</div>

can you show the cod here?  
im try use ds 1307 node but cant start them  
im try difrent ports ( scan in arduino scanner)  
and nothing hapend ☹

---

<div class="post-metadata">

**Author:** ![sios](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sios](https://forum.xod.io/u/sios)\
**Post date:** [April 18, 2018, 12:45am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/11 "2018-04-18T00:45:37Z")

</div>

Hello  
i hope this will help you for the address i’m using the default address.

 ![RTC-module](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/5ad71eda0e0c44a64d49d94ebe1a8a0406fed674.png)

---

<div class="post-metadata">

**Author:** ![rsstorm1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/rsstorm1/32/1032_2.png) [@rsstorm1](https://forum.xod.io/u/rsstorm1)\
**Post date:** [April 20, 2018, 8:45am UTC](https://forum.xod.io/t/how-to-use-ds1307-module/316/12 "2018-04-20T08:45:07Z")

</div>

thanks, it helped, I made a stupid mistake, I did not upload time to ds1307 🙂 now it works  
[https://drive.google.com/open?id=1qrpsutqyTTH4MgJFIx9Arl0t-vv8O5of](https://drive.google.com/open?id=1qrpsutqyTTH4MgJFIx9Arl0t-vv8O5of)
