ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing adxl345 with myRio and reading data via i2c myRio

Hello folks,

I needed some help in regards with interfacing adxl345 with myrio and reading data from it via i2c. So far, i have connected the pins as provided in the picture, but i'm confused about the SDA, SCL connections to D in/out and D Out pins of processorconnection diagram.PNG

 confused whether DIO and D Out are pins 34,32 (SDA,SCL) or someother pinson myrio.myrio pin configuration.PNG

 As of now i have assumed them to be pins34,32 and tried the below two VI's. The first VI is provided in project essentials guide which is for digilent PMOD accelerometer which itself is powered by adxl345 ,this VI work perfectly fine for PMOD acl but not for adxl345 giving a 363011 error which is a NACK error. and the second one is a simple read VI that i found in the forum which gives the same error

  

 

Download All
0 Kudos
Message 1 of 2
(4,436 Views)

Hey lonewolf!

 

I took a look at the second piece of code--are you bringing the device out of standby mode as is mentioned in the other thread? It looks like the second piece of code you've attached is the first iteration of code in that thread. 

 

As far as the SDA and SCL, yes, those are pins 34 and 32. Are you using pull up resistors? What resistor value are you using?

Claire M.
Technical Support
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 2 of 2
(4,407 Views)