Hi Everyone,
I'm using nrf52832(SOC) and LIS3DH accelerometer to get a motion detection.
I need simple code to get accelerometer data only using I2C communication.
Waiting for your valuable suggestions...
Thanks & Regards,
Yuvaraj
Hi Everyone,
I'm using nrf52832(SOC) and LIS3DH accelerometer to get a motion detection.
I need simple code to get accelerometer data only using I2C communication.
Waiting for your valuable suggestions...
Thanks & Regards,
Yuvaraj
Thank you Amanda...
But, i need just simple code to get only accelerometer data and print the values in Segger Embedded Studio console.
I want to check my accelerometer can detect the values.
Can you have like this?
Regards,
Yuvaraj
No, but you can modify from TWI Sensor Example which use the I2C interface by communicating with the thermometer (LM75).
-Amanda
Thank you Amanda...
How can I print the data from the accelerometer?
Regards,
Yuvaraj
It's printed in data_handler() function. So it should be printed over UART(it's enabled as the default backend in that example)
This case maybe can help you.
-Amanda
It's printed in data_handler() function. So it should be printed over UART(it's enabled as the default backend in that example)
This case maybe can help you.
-Amanda
Thank you Amanda... And sorry for delay...
I'm enabled the UARTbackend.
And I seen that question but, still i can't get to print a data to my console(Segger Embedded Studio).
I want to find if the LIS3DH is properly working or not, for that i need to print the axis values.
How to test my accelerometer?
Regards,
Yuvaraj
Hi,
If you want it to be printed in SES console, you need to enable logging over RTT.
NRF_LOG_BACKEND_RTT_ENABLED set to 1 in sdk_config.h
-Amanda