In order to transmit sensor readout from an I2C sensor I have to write new software for the nRF51822 to use the I2C bus and need to change the Android app for displaying the data, correct? Or is there software readily available to do so?
In order to transmit sensor readout from an I2C sensor I have to write new software for the nRF51822 to use the I2C bus and need to change the Android app for displaying the data, correct? Or is there software readily available to do so?
Hello,
You will find examples for both I2C (TWI) located in SDK\examples\peripheral\twi_master_.... (there are two different), and several examples for BLE connections with e.g. phones found in
SDK\examples\ble_peripheral\...
The easiest to use to get started is maybe the ble_app_uart example. You can swap the uart peripheral with the I2C/TWI from the other example, and connect to it using the nRF Toolbox app or the nRF Connect app. The source code for the nRF Toolbox app for Android is also available here. (you will also find links to the iOS and Windows phones source codes here)
Best regards,
Edvin
Hello,
You will find examples for both I2C (TWI) located in SDK\examples\peripheral\twi_master_.... (there are two different), and several examples for BLE connections with e.g. phones found in
SDK\examples\ble_peripheral\...
The easiest to use to get started is maybe the ble_app_uart example. You can swap the uart peripheral with the I2C/TWI from the other example, and connect to it using the nRF Toolbox app or the nRF Connect app. The source code for the nRF Toolbox app for Android is also available here. (you will also find links to the iOS and Windows phones source codes here)
Best regards,
Edvin