LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

ADXL345 connected to Arduino (SPI) to LabView

Nathan_B. wrote:

The data is the same, it's just been properly converted into units of gravity.

I see. Thank you.

No.  If the sensor supports it, you would have to set the range parameter on the ADXL345.  In this case, it looks like you'd need to create a new VI to do this since it does not appear to be a function that's already been created.

According to the hardware manual provided to me the sensor supports it. However, the provided code was in SPI.

In that SPI code, it looks something like this:

void init_adxl(void){

delay(250);

pinMode(spics,OUTPUT); // CS=0

//Write to register 0x31, DATA FORMAT

spi_out(0x31);

// uncomment your desired range

spi_out(0x0B); //full resolution, +/- 16g range

What is that 0x0B is there a way I can incorporate it to I2C?

Since we are no longer talking about LIFA (this forum), you should take your discussion to the LINX forums for support with LINX (there will be more people able to help you).

Sure. I post a thread there. Thank you!

0 Kudos
Message 31 of 31
(919 Views)