Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
895 Views

Regarding the integration of HTS221 sensor on Intel edison

Jump to solution

Hai everyone,

I'm very new to the technology.I'm using the intel edison board with yocto image 3.10.98.I want to integrate the sensor HTS221 which shows temperature and humidity.I tried with the code which was executed perfectly on Raspberry pi but there is no output on Intel edison. I tried using mraa but it is also a failure.I'm using the pins A4 and A5 as SCL and SDA.I enabled the I2C using the link http://www.emutexlabs.com/project/215-intel-edison-gpio-pin-multiplexing-guide EmutexLabs .Can I know which I2C ..I mean I2C -1 or I2C-6 should be considered.?

Can you please let me know the step by step process of this sensor integration and correct code for HTS221 sensor in C or python using mraa or any other way possible.The code Every or any help is appreciated.

Thanks and Regards,

Radhika.@

0 Kudos

Accepted Solutions
Highlighted
Community Manager
13 Views

Hello Radhika.k,

 

 

In http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html you can find all the official documentation. If you would like to implement this sensor in your project you should read and understand them but I'd suggest you to pay special attention to HTS221 digital humidity sensor: hardware guidelines for system integration, HTS221 digital humidity sensor: reference design implementation and most of all to Interpreting humidity and temperature readings in the HTS221 digital humidity sensor.

 

The last document I mentioned has a lot of useful information and it even includes sample codes. These samples might not work on Edison out of the box but they can be modified to implement mraa so the sensor can be controlled by Edison.

 

 

-Peter.

View solution in original post

0 Kudos
3 Replies
Highlighted
Community Manager
14 Views

Hello Radhika.k,

 

 

In http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html you can find all the official documentation. If you would like to implement this sensor in your project you should read and understand them but I'd suggest you to pay special attention to HTS221 digital humidity sensor: hardware guidelines for system integration, HTS221 digital humidity sensor: reference design implementation and most of all to Interpreting humidity and temperature readings in the HTS221 digital humidity sensor.

 

The last document I mentioned has a lot of useful information and it even includes sample codes. These samples might not work on Edison out of the box but they can be modified to implement mraa so the sensor can be controlled by Edison.

 

 

-Peter.

View solution in original post

0 Kudos
Highlighted
New Contributor I
13 Views

Hai Everyone,

I'm very thankful for the reply and it is helpful for me.As you have said I have used I2C-6 and compiled the below attached C-program.I have got the output,but the temperature values showing are wrong.In the program given,for the different temperatures,the T0,T1,T2,T3 values are remaining same,though the temp value is changing ,temperature values are wrong after the conversion.The same repeates for humidity also.The formula for the conversion is correct as it is giving the correct values in the arduino board and raspberry pi.Can I know how can I get the correct temperature and humidity values as this completes my project.Thanks in advance.Please do needful.

Thanks and Regards,

Radhika.

0 Kudos
Highlighted
Community Manager
13 Views

I can see that you posted this question in https://communities.intel.com/thread/104406 https://communities.intel.com/thread/104406. We will continue to help you with this inquiry in that thread.

 

 

-Peter.
0 Kudos