Hi i am a college student working on Iot devices and i m working with hdc2080 and nrf52810 but there is not any ble peripheral source code for twi or i2c in the folder provided by nordik.
can i get any help ?
Hi i am a college student working on Iot devices and i m working with hdc2080 and nrf52810 but there is not any ble peripheral source code for twi or i2c in the folder provided by nordik.
can i get any help ?
Hi,
Assuming you have the correct tools for getting started.
Go to {SDK}\examples\peripheral\twi_scanner which is a good starting point that can detect twi sensors connected on your TWI line.
After that, you can look at the twi_sensor example located in the same peripheral directory of SDK.
To send TWI data over BLE you can use ble_app_uart which is UART based service from Nordic Semi or implement your own service.
BLE app UART example is located under {SDK}\examples\ble_peripheral\ble_app_uart . Also look at the demo Heart Rate Sensor example located at ble_app_hrs in a ble_peripheral folder through which you can understand little about service, timer, passing data, etc. and how to relate them.
Also one more thing pca10040e has proper configurations for nRF52810 so you need to modify some pca10040e example or pca10040 folder completely to get it working with nRF52810.
Regards