why ? can you explain please.joan wrote:I forgot to add that for an external bus you will also need to connect the I2C ground to the Pi ground.
if i dont use I2C bus but juste GPIO 23&24 ?
why ? can you explain please.joan wrote:I forgot to add that for an external bus you will also need to connect the I2C ground to the Pi ground.
Yep, true!joan wrote:No current will flow into or out of a gpio unless there is a complete circuit. The ground gives the needed return path for the current.
It's nothing to do with being an I2C bus or not.
Whenever you connect two devices you need to connect the grounds as well as any signal pins.
Have I misread the price? USD795 isn't what I'd call very inexpensive.aiw wrote:If you don't end up getting the Pi to work for an I2C monitor this product is very inexpensive and does a great job decoding all bus architectures.
http://www.usbee.com/dx.html
Specifically, i have, sorry for the mistake :joan wrote:Could you confirm your data?
[92+00+]
[98+1B+80-]
98 would appear to be a different device, or is that a typo for 93?
The bulk of the Python code is interpreting the meaning of SDA/SCL level changes. To understand that you'll need to understand I2C signalling.
Ok, thanks you!joan wrote:Okay.
[92+00+] -> 10010010 + 00000000
Writes 0 to the device. The bottom two data bits select the register, in this case the temperature register.
[93+17+A0-] -> 10010011 + 00010111 + 10100000
Reads two bytes from the device. The previous command selected the temperature register. The temperature is returned as 12 bits. The first byte read contains the 8 most significant bits. The second byte contains the least significant bits in the top nibble.
The temperature is therefore 0b000101111010, 0x17A, 378 decimal.
The least significant bit represents 0.0625 degrees, temperature is 23.625.


Code: Select all
S Addr Wr [A] Comm [A] S Addr Rd [A] [DataLow] A [DataHigh] NA P
[ 0B 0 + 09 + [ 0B 1 + 17 + EF +