03-24-2013 02:20 AM
Hi,
can anyone please help me out? i have arduino mega connected to 9dof IMU stick. i am trying to communicate with ADXL345 accelerometer.
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
03-24-2013 04:13 AM
Try this out: https://decibel.ni.com/content/docs/DOC-28504
03-24-2013 04:48 AM
Thanks Nathan. i tried it but i still cannot read sensor output. there is no error from writing on the power_ctl register though
03-24-2013 03:53 PM
Where does the error actually occur?
04-01-2013 06:56 AM
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.
04-04-2013 09:21 PM
04-05-2013 01:36 AM
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.
04-07-2013 01:54 AM
Nathan, thanks. your library helped alot
i used your library as above and it worked thanks alot
04-07-2013 02:10 AM
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).
04-07-2013 02:13 AM
Hi again, i am trying to understand your library.I have a question, why the input of data byte is 6?