Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

I2c - tiny bit of advise please

Stan_G_
Beginner
610 Views

I have just updated the arduino edison with latest mraa and upm. Have also (finally after a minor screw up) updated the idea with latest mraa and upm. Now have linked against the upm module hmc5883l and have got data from it. The I was going to contemplate writing the UPD module for a barometric sensor MPL3115A2 - but to my joy found it is in the latest upm. Connected it up and added the code (shamelessly stolen from and example) and ran it. Getting weird results and errors such as; 

Pressure Value:  0.00 Altitude: -1.00 Sealevel: 44330.00 Temp:  0.00 

Write to trigger measurement failed

Error sampling temperature

Pressure Value:  0.00 Altitude: -1.00 Sealevel: 44330.00 Temp:  0.00 

Write to trigger measurement failed

Error sampling temperature

Pressure Value:  0.00 Altitude: -1.00 Sealevel: 44330.00 Temp:  0.00 

Write to trigger measurement failed

Error sampling temperature

Pressure Value:  0.00 Altitude: -1.00 Sealevel: 44330.00 Temp:  0.00 

 

(NOTE: The hmc5883l was also on the bus but I wasn't asking it anything....) Note also (which is where the question is coming from, I had not pullup resisters on the i2c bus).

I captured the i2c data on my logic-8 and accidentally had the analog display on and notice the i2c signals only reach (just) 4 volts.

As a bit of a neophyte, is this a sign that pull-ups would be required?

0 Kudos
2 Replies
Stan_G_
Beginner
610 Views

Just as a point of order I would just like to say that I am getting very annoyed with OS X autocorrect - after reading the above post! Stan

0 Kudos
Stan_G_
Beginner
610 Views

Screen Shot 2014-11-29 at 11.33.34.png

0 Kudos
Reply