Getting Temperature/Humidity/Ambient Light data with Python
#2
The first step is to use the i2c toolset to see if you can see your device address. if your device is on the wrong i2c bus you won't see the address. The (TWI) bus is reserved. Once you know the address of the device , then you can worry about reading it.

Usually, to read an i2c device you first have to write to it;  this tells the device which register you want to read-- then you have to know whether the data is coming back to you little-endian or big-endian; and this can make a huge difference in terms of interpretation ( if you have the high and low orders confused the data is not going to make much sense ).  

The data-sheet is going to be absolutely necessary.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply


Messages In This Thread
RE: Getting Temperature/Humidity/Ambient Light data with Python - by MarkHaysHarris777 - 09-29-2016, 12:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Examples of I2c in Python blanius 8 15,518 10-02-2017, 08:28 PM
Last Post: tllim
  Humidity sensor and temperature under Android dhewko 0 2,974 03-11-2017, 10:18 AM
Last Post: dhewko
  3g/4glte data connection? mightygrom 2 4,073 08-10-2016, 12:17 PM
Last Post: ipsw

Forum Jump:


Users browsing this thread: 1 Guest(s)