Skip to main content
19 events
when toggle format what by license comment
S Mar 13, 2016 at 10:10 history bounty ended CommunityBot
S Mar 13, 2016 at 10:10 history notice removed CommunityBot
Mar 6, 2016 at 2:05 answer added Nick Gammon timeline score: 5
Mar 5, 2016 at 23:35 comment added mr-matt Still no luck, updated image: i.imgur.com/3qyJAZx.jpg I tried the resistors on the 5v to vcc and the other on the sda, and then again on the slc, neither worked.
Mar 5, 2016 at 22:33 comment added jfpoilpret I mentioned 3.3V because this is the voltage level used on Due; IIRC, any 5V voltage to an input would damage it. A pullup resistor is a resistor between a line (SDA or SDL) and the positive voltage level. I2C wiring is such that these pullups are necessary for the communication to work.
Mar 5, 2016 at 22:24 comment added mr-matt I don't quite understand, are you saying I should be using 3.3v rather than 5v, and where should the resistors be?
Mar 5, 2016 at 21:55 comment added jfpoilpret It seems on this wiring that you put resistors in series betweens Due SDA/SCL and the RTC SDA/SCL. I don't think this is correct. You should try real pullup resistors from SDA/SCL to 3.3V.
Mar 5, 2016 at 20:28 comment added mr-matt i.imgur.com/MTJjsiX.jpg It's a little hard to see, but the red wire is on the 5v to the vcc, white wire is from ground to ground, brown wire is from pin 20 to sda and the yellow wire is from pin 21 to slc.
Mar 5, 2016 at 20:17 comment added Dave X Maybe show a picture of your wiring. Also rtc.begin() always returns true, so the test will never fail.
Mar 5, 2016 at 19:19 comment added mr-matt Still nothing, I realised that because I'm using the due, I should be using pins 20/21 for the sda/slc rather than pins a4/a5. But even after changing those nothing happened.
Mar 5, 2016 at 8:55 comment added mr-matt Alright, I'll try it in the morning, its about 10 here, thanks for the suggestion though.
Mar 5, 2016 at 8:47 comment added jfpoilpret It seems your schematic does not include pullup resistors on SDA/SCL wires. I2C won't work properly without pullups (try 4.7k or 10k).
S Mar 5, 2016 at 8:11 history bounty started mr-matt
S Mar 5, 2016 at 8:11 history notice added mr-matt Draw attention
Mar 3, 2016 at 18:29 history edited mr-matt CC BY-SA 3.0
added 2819 characters in body
Mar 3, 2016 at 17:23 comment added Avamander Sounds like wiring issue or just unset clock.
Mar 3, 2016 at 11:22 comment added CharlieHanson ...and a schematic.
Mar 3, 2016 at 10:00 comment added Gerben Please add the code you're using.
Mar 3, 2016 at 3:17 history asked mr-matt CC BY-SA 3.0