Hi ...
how to get the data from analog sensor and pass via ble app
Thanks&Regards
pspavi
Hi ...
how to get the data from analog sensor and pass via ble app
Thanks&Regards
pspavi
In the SDK there's an SAADC example that shows you how to read out a voltage on one of the analog pins. Depending on the application of the sensor you could use one of the existing services or create a custom BLE-service to read out and notify your data to the app. I personally used this tutorial to create a custom service.
yes thank you ... i tried but i am not getting the correct readings from sensor . i am getting like this ...
please check with this
What Nordic board and which IR sensor are you using? Are you sure you connected the sensor to the correct pin? If possible could you provide a picture of your setup?
In the SAADC example your ADC output should be Vdd * 284.44 on putty terminal. For the nRF52840-DK, the Vdd is 3.0 V.You can measure the output of IR sensor in volts using a multi-meter and that value multiplied by 284.44 should be your output on the terminal.You need to connect the output of of your sensor to P.0.02 on the DK.
connections done between the analog ir sensor and nRF52840 ... BLUE (analog pin of sensor)
WHITE (Gnd)
GREY (Sensor supply)