08-06-2012 06:26 PM
salender wrote:
I believe, I adjusted my default baud rate for 9600 in some point. When I look for ADXL345 sensor here and there I see different ones. Datasheet looks the same though.
The baud rate does not have anything to do with the sensor. It is specific to the sketch (LIFA firmware in this case) that is running on the Arduino.
But one thing is really confusing. I tied VCC to CS and couple of times I tried to tie SDO to VCC and CS. Basically I tied all of them to 3.3V source.
I have seen somewhere that I2C pins were connected to VCC via some 10K resistors. I have not tried that. Can it be the problem?
According to the datasheet, you do need pull-up resistors. Also, you will need to have a logic level shifting device because the sensor use 3.3V logic where as the Arduino uses 5V logic.
08-19-2012 11:45 AM
Nathan I got it worked with arduino software but still no chance on LIFA. What could be the problem? Please help.
08-19-2012 11:38 PM
You'll have to explain how you did it then. Show the code and explain what wires you hooked where.
08-20-2012 02:23 AM
This is how I hooked up adxl345 to my arduino.
http://bildr.org/2011/03/adxl345-arduino/
And this is the snapshot of arduino software and serial monitor. Sketch and library files added.
I fixed baud rate as you told me. I2C protocol works fine with VCNL 4000 on Labview. And Adxl345 works fine with arduino software.
VIs I use are the same ones I sent before. And I tried every register with both device addresses. It didn't work.
Thank you for your help.
08-25-2012 01:46 PM
Hello Nathan, Can you give me any advice?
08-26-2012 07:09 PM
salender wrote:
Hello Nathan, Can you give me any advice?
Unfortunately, I'm unable to do much debugging with literally no hardware to test.
However, what I would suggest is to go through the working Arduino sketch and see what exactly is being set up prior to actually reading values. Then, you would need to do exactly the same initialization via LabVIEW. I can't remember if I've looked through it before and I'm not going to take the time to do it now since I have nothing to test with (which would make it nearly futile for me to look into).
Good luck!
09-11-2012 12:23 PM
Greetings, does anyone have an VI that works?
10-31-2012 08:02 AM
Have somebody solved the problem?
12-23-2012 01:07 PM
Hi,
I've got a working VI with the ADXL345:
note:
you have to use this schematic to wire the accelerometer with your arduino:
if there are any questions, feel free to ask !
Greets, Gert-Jan
01-01-2013 02:03 PM
Gert-Jan thank you for the VI,
I will try it and come back if I can get it work.
Best wishes.