LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview I2C communication with ADXL345

Hi,

can anyone please help me out? i have arduino mega connected to 9dof IMU stick. i am trying to communicate with ADXL345 accelerometer.

Capture.PNG

the other ouput here is only to lighten up a yellow light.

and i am not sure what the index should be so i tried it 0-8 but still nothing worked.

apperciate your help.

Malik

0 Kudos
Message 1 of 12
(8,956 Views)
Message 2 of 12
(5,695 Views)

Thanks Nathan. i tried it but i still cannot read sensor output. there is no error from writing on the power_ctl register though

Capture.PNG

0 Kudos
Message 3 of 12
(5,695 Views)

Where does the error actually occur?

0 Kudos
Message 4 of 12
(5,695 Views)

I couldnt find time to work on it last week and now i hooked it up and tried to run it but error 5003 from I2C init. i changed the baud rate to 9600 and the same error still occures.

0 Kudos
Message 5 of 12
(5,695 Views)

Just as an FYI, my library can be equivalent to the working examples shown toward the end of the thread but I've yet to get any confirmation on people getting them to work unfortunately.

0 Kudos
Message 7 of 12
(5,695 Views)

Nathan, thanks. your library helped alot

Capture.PNG

i used your library as above and it worked thanks alot

0 Kudos
Message 8 of 12
(5,695 Views)

That is great to hear that you were able to get it working.  Is there something specific that you did to get it to work without errors?  Is there a particular reason you didn't use my VI for writing to a register or use the device address and register address as shown in my example? (just wanting to make sure there aren't issues with those parts).

0 Kudos
Message 9 of 12
(5,695 Views)

Capture.PNG

Hi again, i am trying to understand your library.I have a question, why the input of data byte is 6?

0 Kudos
Message 10 of 12
(5,695 Views)