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

Strange Data on SDA/SCL


  • Please log in to reply
25 replies to this topic

#21 nturpin77

nturpin77

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationNewfoundland, Canada

Posted 01 April 2011 - 12:41 PM

Worked like a champ! Thanks. I have the Logic Analyzer data in CSV format to upload here is that ok? or is there a better way to get it to you guys?

#22 nturpin77

nturpin77

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationNewfoundland, Canada

Posted 01 April 2011 - 01:12 PM

D

#23 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 01 April 2011 - 01:24 PM

Does this bit of code activate the I2C pins? When I hook up the logic analyzer it doesnt see anything there for the I2C.

No, it does not use I2C, it is just 'pin toggling'. You'd need to instantiate an I2CDevice object and pass some transactions to its Execute method - just search the forums, there is a lot of examples available. Do you have any device attached to I2C pins? With no device attached you will see only start of the communication (control byte) on the bus, it will not continue until the device responds with acknowledgement. Also check the pull-up resistors on the signal lines :-)

#24 nturpin77

nturpin77

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationNewfoundland, Canada

Posted 01 April 2011 - 01:40 PM

Ok so I am running the actual BMP085 Program that was working before. It still works but the data is still all over the place and I have the logic analyer in place. I will attach the I2C export from the logic analyzer, not sure if that will tell anyone anything..... Its just a bunch of numbers and ack/nak to me lol

Attached Files

  • Attached File  i2c.txt   42.9KB   8 downloads


#25 nturpin77

nturpin77

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationNewfoundland, Canada

Posted 01 April 2011 - 01:44 PM

Also here is a screenshot of a reading not sure if that helps either......Attached File  screenshot.png   10.37KB   22 downloads

#26 nturpin77

nturpin77

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationNewfoundland, Canada

Posted 05 April 2011 - 12:01 PM

is it possible that there is an issue with the clock? If the timing is off will that affect the way the I2C is read and data distributed/calculated? Is there a way to test the internal clock?




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.