Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Myrio vs. 10DOF

Hey,

 

i just got my MyRio a few Days ago and i now wanted to work with a 10DOF Sensor.

 

10DOF Sensor Components:

- ADXL345      accelorator

- BMP085       pressure

- L3G4200D    gyro

- HMC5883L   compass

 

 

I tried to get the I2C connection work. My question is, how can i tell the Slave device the adress of the register? The I2C Vi just have the inputs "slave device" and "Bytes to write" but no "registr adress".

 

Sorry for my english 

 

Simon

0 Kudos
Message 1 of 2
(5,708 Views)

Hey Simon,

 

We discussed using the ADXL345 Accelerometer with myRIO in this thread.

 

In general I2C only has a slave address and data bytes.  However it is common for devices to implement an instruction set that includes an internal register address pointer.  The way you set this pointer will vary depending on the device and will be documented in the device data sheet.  The most common way to set the device's internal address register is by writing a two bytes, a set register command and the value data byte.  

 

Take a look at that thread and let us know if you have more questions.  If you get the 10DOF working it would be great to share your code.

 

Thanks!

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 2 of 2
(5,702 Views)