3

I'm looking for help in communicating with the sparkfun tmp102 sensor via windows 10 IoT UWP app on a raspberry pi 2.

I've already found this tutorial:

https://jeremylindsayni.wordpress.com/2016/06/15/how-to-get-the-temperature-using-tmp102-c-and-the-raspberry-pi-3/

but there is a problem: the GetDeviceId method is not implemented, and I have no idea how can I find the device ID (of the sensor I guess...?). I'll appreciate some help - either a way to get the device ID or a better example..

Piotr Kula
17.3k6 gold badges67 silver badges105 bronze badges
asked Aug 28, 2017 at 10:23
2
  • Just looking at that example it seems like the GetDeviceId is deliberately not implemented because the device does NOT have an ID. It looks like he is mannaully entering the I2C address somewhere and NOT using the GetDeviceId. Are you just using his code from GitHub? Or did you modify something? The I2C Address just seems to be the PIN. I suspect it only works with one device ?? :( Commented Sep 11, 2017 at 12:21
  • Me and my team eventually made it work somehow... I don't have the code here, but we used another example we've with slight changes in the addresses where you write to and read from... Commented Sep 12, 2017 at 21:35

1 Answer 1

1

here is an example code which explain how you can interface i2c device with raspberry pi and windows IOT. in this example they are using an accelerator, all you will need to do is change the i2c bytes and it will work.

answered Oct 13, 2017 at 16:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.