i have to advertise Lis3dh data. I have accelerometer and nrf52840 dk. Pls assist how can i advertise the data of lis3dh xyz values
i have to advertise Lis3dh data. I have accelerometer and nrf52840 dk. Pls assist how can i advertise the data of lis3dh xyz values
Hi,
I would suggest you take a look at Beacon Transmitter Sample Application or Direction finding connectionless beacon on how to advertise with data, and search for similar use cases on Davzone.
-Amanda H.
hi,
i know about the Beacon example and know about the advertising. But now i want to advertise the data of lis3dh accelerometer. pls assist me with some code that i can implement
Hi,
We don't have the code as your requirements.
On a high level, you would implement this with some code that reads data from the sensor, for example via TWI or SPI. There are some relevant examples in the SDK, though not accelerometer specific. Then you would expose those data via BLE.
There are several similar cases on Davzone like
nrf52832-and-lis3dh-accelerometer
nrf52-twi-communication-with-lis3dh
nrf52-ble-beacon-with-accelerometer-data-advertising
-Amanda H.
actually i have interfaced the accelerometer and am able to get data over ble via TWI. but this data is in connectable mode. But i want to display the xyz values in advertising mode for which i need your assistance
actually i have interfaced the accelerometer and am able to get data over ble via TWI. but this data is in connectable mode. But i want to display the xyz values in advertising mode for which i need your assistance
You should refer to Beacon Transmitter Sample Application or Direction finding connectionless beacon to modify your project.
-Amanda H.
can u refer some example kindly where lis3dh data is advertised. I need some assistance for reference as i am new to it
gentle reminder
can you pls help
Please study tutorials:
Bluetooth low energy Advertising, a beginner's tutorial
Bluetooth Smart and the Nordic's Softdevices - Part 1 GAP Advertising
And refer to the examples to modify.
-Amanda H.