12-16-2013 11:05 AM
Are you getting incorrect values when using my library?
That datasheet states that the value is expressed as 2's complement, not left justified. This implies that it is outputting a I16, not a I12 which means no bit shifting or special conversion need be done. Also, the values that I output are raw values and still need a conversion factor for converting it to an actual value in units of g's.
Also, since this thread is for the ADXL345, we should continue this discussion in the [newly created] LIFA LSM303DLM Support discussion.
03-20-2014 03:49 AM
Hi Nathan !
A friend and I are currently working on a project with arduinos and adxl. We tried your VI for adxl345 using I2C and it worked like a charm ! Now we are hoping to make it work using SPI. You said you would eventually add SPI to your VI, how is it coming along ?
Thanks in advance for your reply.
03-20-2014 01:37 PM
I've not really worked with SPI and I don't have the sensor to test with so I can try to do it quickly but I can't guarantee anything.
09-12-2014 09:57 AM
Hello.
I want to make a project through which to read data values of accelerometer with labview (just like shown above) but instead ADXL 345 type accelerometer can I use MMA 8452Q?
Any help will be appreciated.
Thank you for your support!
09-12-2014 02:41 PM
You can use any accelerometer that you want that uses a supported communication protocol (I2C, SPI, Analog, etc.). You will need to manually build the VIs to communicate with it though.
09-17-2014 01:24 PM
Hello,
I have tried to MMA 8452 and I have not found the datasheet or dates for the I2C communication and in conclusion, I purchased ADXL345.
The following problem which I have is that, I need a graphic display of vibration depending on displacement (speed x, y, and z). A display as I look at the end in the attached below. How can I start?
Thanks,
09-17-2014 02:17 PM
Your description doesn't really make sense. Are you measuring vibration, displacement or speed?
If you are trying to measure vibration, I don't think you will be able to get very good results with LIFA because LIFA is quite slow and will not be able to obtain data quick enough to analyze even moderately high frequencies. What frequencies do you need to measure?
09-18-2014 12:54 AM
I measure the vibration depending on its frequency. Meaning, I fix the accelerometer on a metal body (electric motor) and I want to see at what frequency and amplitude vibrates. Basically frequency range should be up to 1000 Hz.
If I can not send data pretty quickly by the Lifa Protocol I can register (aprox. 50 sec)? and then to show my graphic form?
Thanks,
09-18-2014 08:57 AM
Well, according to the Nyquist Theorem, you would have to be able to sample at at least 2000 Hz to even begin to achieve that. This is not possible using I2C via LIFA.
Anthony-001 wrote:
If I can not send data pretty quickly by the Lifa Protocol I can register (aprox. 50 sec)? and then to show my graphic form?
What?
10-28-2014 01:43 PM
Hi
I am connecting two MMA8452Q accelerometer on a same Arduino. I am using sequence from labview and repreat the same process for second acceleromet with just different deviceaddress.
I am still getting data from frist accelerometer and no data from second one.
Do I need to make any changes in library?
PLEASE HELP.