Go to advanced search

by k-mouse
Fri Sep 20, 2013 1:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing I2C device which does not take a command byte
Replies: 5
Views: 4062

Re: Interfacing I2C device which does not take a command byt

Sorry for the wall of posts here, but I now understand why it works. As can be seen from this documentation , when you call i2c_smbus_read_block_data() it actually starts by providing a write signal before sending the command byte. Only after that it addresses the slave again and with a high read bi...
by k-mouse
Fri Sep 20, 2013 1:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing I2C device which does not take a command byte
Replies: 5
Views: 4062

Re: Interfacing I2C device which does not take a command byt

The problem seems to have been solved, although I do not know why it works. I noticed that this Raspberry Pi ADC uses a similar ADC (specifically an MCP3424) and checking its datasheet I noticed it has almost the same I2C setup and communication. I found a C example for this RPi ADC, and noticed tha...
by k-mouse
Fri Sep 20, 2013 11:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing I2C device which does not take a command byte
Replies: 5
Views: 4062

Re: Interfacing I2C device which does not take a command byt

Joan : Using i2cget I can only get a single byte without providing a command address (or data-address at it seems to be called here). The ADC with the I2C interface is an MCP3421 ( datasheet, pdf ). The complete gyro PCB is a DC-SS010 ( datasheet, pdf ), with a sensor of the type XV-3500CB. Hove : ...
by k-mouse
Fri Sep 20, 2013 12:46 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing I2C device which does not take a command byte
Replies: 5
Views: 4062

Interfacing I2C device which does not take a command byte

Hi, a first-time poster here looking for some help :) I've been trying to interface my Raspberry Pi to a single-axis gyroscope with an I2C protocol. I am doing this using C++ with the i2c-dev.h-library. I seem to be able to connect to it, but the received data does not make any sense. This is what I...

Go to advanced search