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

Regarding the I2C commands and reading the raw value from HTS221

Jump to solution

Hai everyone,

I'm very new to the technology,hope you will help me.I'm using Intel edison board.I want to integrate HTS221 sensor using yocto image.

Here are my questions please do answer..

1)I'm using basic I2C commands such as I2C detect -l,I2C dump -f 1 0x20 w,I2Cset -f 1 0x20 0x01 0x001.The I2C is detecting in the addresses as 0x20,0x21,0x22,0x23. The screenshots are available below.when I'm able to read values from those addresses ,the raw values of the temperature are not updating continuosly. Can I know how to update the values continuously from the I2C command??

2)When I'm using the I2C detect command I'm not getting the device address as 5F,it is simply showing as UU in the addresses 20,21,22,23.Can I know how can I read the device address.??But in the Raspberry pi ,the device address can be detected.

Here are the screenshots from the commands I have used.Thanks in advance.

Thanks and Regards,

Radhika.

0 Kudos
1 Solution
idata
Community Manager
82 Views

Hi,

 

 

This thread is very similar to /message/407728 https://communities.intel.com/message/407728 . Please continue to ask the HTS221 related questions in that thread.
  1. What do you mean with update continuously, the options available for the i2cdetect and i2cdump can be found here http://linux.die.net/man/8/i2cdump http://linux.die.net/man/8/i2cdump and http://linux.die.net/man/8/i2cdetect http://linux.die.net/man/8/i2cdetect .
  2. A reason why the device might not be recognized is because of the how the device is being powered, such as in /thread/91298 https://communities.intel.com/thread/91298 . Take a look at http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html and check you're setting the device correctly.
You can also find some useful information here https://m2aglabs.com/2015/04/10/i2c-interfacing-on-intel-edison/ https://m2aglabs.com/2015/04/10/i2c-interfacing-on-intel-edison/ .

 

 

-Sergio

 

View solution in original post

1 Reply
idata
Community Manager
83 Views

Hi,

 

 

This thread is very similar to /message/407728 https://communities.intel.com/message/407728 . Please continue to ask the HTS221 related questions in that thread.
  1. What do you mean with update continuously, the options available for the i2cdetect and i2cdump can be found here http://linux.die.net/man/8/i2cdump http://linux.die.net/man/8/i2cdump and http://linux.die.net/man/8/i2cdetect http://linux.die.net/man/8/i2cdetect .
  2. A reason why the device might not be recognized is because of the how the device is being powered, such as in /thread/91298 https://communities.intel.com/thread/91298 . Take a look at http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html and check you're setting the device correctly.
You can also find some useful information here https://m2aglabs.com/2015/04/10/i2c-interfacing-on-intel-edison/ https://m2aglabs.com/2015/04/10/i2c-interfacing-on-intel-edison/ .

 

 

-Sergio

 

View solution in original post

Reply