03-10-2014 06:03 AM
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
03-10-2014 09:13 AM
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
Join / Follow the LabVIEW Hacker Group on google+