Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

N+2 I2C returns 0s


  • Please log in to reply
5 replies to this topic

#1 jmanuel

jmanuel

    Member

  • Members
  • PipPip
  • 12 posts

Posted 14 June 2013 - 06:54 PM

Hi

 

I have an ds1307 in a 3.3v I2C bus, pulled with 4.7k resistors, N+2 returns 0s, when try with Arduino I have not problems.

 

With N+2 running, after many times disconnecting the I2C bus and reconnecting then reads begins, but when mod my code and compile again, the problem returns.

 

My firmware is 4.2.2.2

 

any idea?



#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 15 June 2013 - 07:05 AM

do you power the ds1307 with 3.3 or 5v?

 

it needs 5v. or it wount work correctly.

(the 3.3v i2c levels are ok, but the supply has the be 5v)

 

- it works with 3.3v when you ground v-bat (and remove the battery before ofc...), but than theres no timekeeping when power is off ...

 

//edit: btw in the link from my signature is a ds1307 class, and the multi i2c i use also. it also shows how to use the ram from the ds1307



#3 Johann

Johann

    New Member

  • Members
  • Pip
  • 2 posts

Posted 16 June 2013 - 04:12 PM

Hi Everyone,

 

I have the same problem with the N+2 not able to communicate with the DS1307(RTC). Unfortunately I do not have another device to connect the RTC to so I cannot test it but seeing the number of problems with I2C I'll have to assume that it is not the RTC that is the problem.

 

From the forum I've seen quite a number of suggestions but nothing seems to work for me. I have also flashed with version 4.2.2.1 as some people reported no problems with I2C until they upgraded to 4.2.2.2 but it did not help.

 

I'm using the DS1307 class from the Netduino Helpers project, but have also used the RealTimeClock (and MultiI2C) class from NooM's project (thanks) but that also does not work. The RTC is connected as follows:

5V >> 5V

GND >> GND

SD >> SDA

SC >>SCL

I have no resistors connected between the two and confirmed that the RTC get the 5V.

 

Any help is appreciated.

 

Thanks,

Johann

 

 

 

 

 

 



#4 jmanuel

jmanuel

    Member

  • Members
  • PipPip
  • 12 posts

Posted 17 June 2013 - 01:01 AM

Yeah Vcc is 5V, and the DS1307 works prefectly with arduino, but not with Netduino+2. The strangest is that when finally works and stop to mod my code, recompile and deploy,  the I2C problem returns.



#5 Bi Qin

Bi Qin

    Member

  • Members
  • PipPip
  • 23 posts

Posted 18 June 2013 - 01:26 AM

But I Do made it works with 3.3V power supply :blink:,and it doesn't work with 5V(a exception happened during I2C operation).....

The silk mark on the chip is DS1307ZN,it's really weird.

Here it goes:

 

http://lifetyper.com/post/52266110944



#6 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 18 June 2013 - 07:18 AM

that happened to me with one i bought from china.

but it destroyed the battery too.

 

the ones from mouser are like the datasheet says... 4.5 - 5.5 volts.

 

i guess the china one was a clone.

 

btw: ds1308 is the 3.3 volt version.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.