Noob completely lost with a DS1307

Hi all,

As per title, im a complete noob to electronics and have been trying to get a DS1307 (on a Sparkfun RTC module) working. I have SCL to digital 0 (RX) and SDA going to digital 1 (TX) as per the instructions.

I've found the example sketches, hooked up the DS1307 correctly but I cannot for the life of me get the time to set or increase in value. Looking at the datasheet, I would assume that the CH is not set, so the oscillator is not running. I have no idea how to set that :frowning:

That said, would that stop me from setting the time? I understand that the time would not increase in value but when I set the time and call getDateDs1308 I get 0:0:0 0/0/0. Does this indicate another problem? I've checked with a multimeter in case my lack of soldering skills have caused a problem but everything seems ok (as far as a noob is concerned), the only thing I am not sure of is that when I meter for continuity, SQW seems to go to ground, is that correct?

Any help greatly appreciated.

I have SCL to digital 0 (RX) and SDA going to digital 1 (TX) as per the instructions.

That's not how you connect the DS1307. SCL should be connected to A5 and SDA connected to A4.

Make sure you are using the Analog pins 4 & 5, not digital.

I have SCL to digital 0 (RX) and SDA going to digital 1 (TX) as per the instructions.

That's what the instructions say - but the instructions are for 'Wiring' not for 'Arduino'.

Don

Thank you very much, I've been pulling my hair for ages. I followed the instructions at RealTimeClock \ Learning \ Wiring, did I misinterpret it in some way?

floresta:
That's what the instructions say - but the instructions are for 'Wiring' not for 'Arduino'.

Don

Oh I see, I took wiring to be literal. I have a lot to learn obviously :slight_smile:

Oh I see, I took wiring to be literal.

I doubt that you are the first one to do this.

Don

outofsight:

floresta:
That's what the instructions say - but the instructions are for 'Wiring' not for 'Arduino'.

Don

Oh I see, I took wiring to be literal. I have a lot to learn obviously :slight_smile:

I always shake my head at that, I'd never have picked the name "Wiring". Or for that matter, "Processing". But that's just me. :wink: