This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Gas sensor reading and passing over ble to Android

Hello,

I'm a beginner in Nordic ble.

I explain my question as following:

Currently, I'm using a platform integrating several ambient and motion sensors(Temperature, Air pressure, Humidity, Acc, Mag. and Gyres.) these sensors are already integrated and communicating through I2C to the Nrf51. I have to add some gas sensors(CO,CO2and...) which output is a voltage and analogue and has to be connected to ADC pin in Nrf518122 and then passing the data over ble to Android to be monitored.

can I use Ble_proximity sample code in examples which also sounds is a connected to ADC?

If so, how and where to change the code?

How can I make match the data transferring from ADC and other already integrated sensors over the BLe to not interfere.

Please, maybe this question does not make sense for many of you, but I'm a beginner:)

Any further tips and guidance are welcomed.

Best regards, Mostafa.

Parents
  • Hi Mostafa,

    The ble_app_proximity use ADC to measure the battery level and send it over BLE. You can have a look at the example to know how to use the ADC (we also have example for the ADC only).

    My suggestion is to get familiar with BLE and how it works with our Softdevice and in the examples in our SDK. I would suggest to have a look at the ble_app_blinky example, we also have an Android app for it, here.

    Note that it's doesn't mater what kind of data you want to collect, when you send the data via BLE, it will be (and should be) send as an array of byte.

Reply
  • Hi Mostafa,

    The ble_app_proximity use ADC to measure the battery level and send it over BLE. You can have a look at the example to know how to use the ADC (we also have example for the ADC only).

    My suggestion is to get familiar with BLE and how it works with our Softdevice and in the examples in our SDK. I would suggest to have a look at the ble_app_blinky example, we also have an Android app for it, here.

    Note that it's doesn't mater what kind of data you want to collect, when you send the data via BLE, it will be (and should be) send as an array of byte.

Children
No Data
Related