Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jlee168
New Contributor I
1,190 Views

Using new i2c sensor without upm lib

Jump to solution

Hi, I'm jaeuk Lee

First of all, I feel very thanks to your kindness and reply.

Finally I success to connect several sensors( 4 parts ). But still I have some question about New I2C sensor that is not exist in upm library.

Normally, I'm using this (https://github.com/intel-iot-devkit/upm/tree/master/examples/python upm/examples/python at master · intel-iot-devkit/upm · GitHub ) library from intel and I success to connect four sensor at the same time ( MPU9250, TSL2561, VEML6070, HTU21D-F) .

Repeatedly, How can I use new I2C sensor like (https://www.adafruit.com/product/1334 https://www.adafruit.com/product/1334 or https://www.adafruit.com/product/3317 https://www.adafruit.com/product/3317 ) that has no upm library.

Maybe I make own upm ilbrary myself. But it is so hard thing to me. I know just basic of Python.

Do you have some education tool or development tool for Hardware developer? or if you have some documents for making I2C sensor library, please share to me.

thanks to your kindness.

0 Kudos
1 Solution
idata
Community Manager
82 Views

Hello Jaeuk,

 

 

Thanks for reaching out!

 

 

Since both those sensors communicate through I2C, then it would indeed be possible to use them with Edison using mraa directly. However, this might be a little bit harder than what you've experienced in the past as these sensors don't have specific upm libraries.

 

 

You will have to read their datasheets:

 

 

https://cdn-shop.adafruit.com/datasheets/TCS34725.pdf

 

https://cdn-learn.adafruit.com/assets/assets/000/037/547/original/en.DM00279086.pdf

 

 

And learn how they work in order to know how the Edison should interact with them. My suggestion is that you start by reading the datasheets and mraa's I2C example https://github.com/intel-iot-devkit/mraa/blob/master/examples/python/bmp85.py in order to see how you can adapt your code to these sensors.

 

 

I hope this information helps you,

 

Pedro M.

View solution in original post

5 Replies
idata
Community Manager
83 Views

Hello Jaeuk,

 

 

Thanks for reaching out!

 

 

Since both those sensors communicate through I2C, then it would indeed be possible to use them with Edison using mraa directly. However, this might be a little bit harder than what you've experienced in the past as these sensors don't have specific upm libraries.

 

 

You will have to read their datasheets:

 

 

https://cdn-shop.adafruit.com/datasheets/TCS34725.pdf

 

https://cdn-learn.adafruit.com/assets/assets/000/037/547/original/en.DM00279086.pdf

 

 

And learn how they work in order to know how the Edison should interact with them. My suggestion is that you start by reading the datasheets and mraa's I2C example https://github.com/intel-iot-devkit/mraa/blob/master/examples/python/bmp85.py in order to see how you can adapt your code to these sensors.

 

 

I hope this information helps you,

 

Pedro M.

View solution in original post

jlee168
New Contributor I
82 Views

Hello, intel advisor and thank you

Finally I'm success MCP9808 Temperature sensor it is so simple but I think also basic is important thing. your I2C example good for me.

if you have more I2C example for sensor, give me please.

thanks to your kindness again.

Bye

idata
Community Manager
82 Views

There are other I2C examples in https://github.com/intel-iot-devkit/mraa/tree/master/examples but they are not written in Python, so, they might not help you that much.

 

 

My best suggestion at this point is that you read mraa's Python documentation ( https://iotdk.intel.com/docs/master/mraa/python/), in order to learn how to use mraa in Python to a bigger extent. And if you are interested in I2C, you can start in https://iotdk.intel.com/docs/master/mraa/python/mraa.html# i2c.

 

 

Let me know if this helps.

 

Pedro M.
idata
Community Manager
82 Views

Hello Jaeuk,

 

 

Do you have any updates about this?

 

 

Pedro M.
jlee168
New Contributor I
82 Views

Nope, thank you!

Reply