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

BLE_ADC SAADC sampling rate

Hello!

USing help from this forum i have successfullz transmitted adc value from one pin of AIN# to ble and reasing values successfullz but now i am facing an issue that when iever i change adc sample rat time from 250 to other lower vaalue to increase sample rat like if i write 2 that is 1/2ms will be 500hz but it gives onlz 10 to 15 ereadings it then app gives an error of gatt connection timeout 0x08 .Can someone help me with this how to set sampling rate at 500 or 1000 hz.

Thanks.

Parents
  • Hello,

    USing help from this forum i have successfullz transmitted adc value from one pin of AIN# to ble and reasing values successfullz

    I am happy to hear that you found some useful information for this purpose in the forums, and that you were able to successfully sample and transmit the sample over a BLE link, great! 

    i am facing an issue that when iever i change adc sample rat time from 250 to other lower vaalue to increase sample rat like if i write 2 that is 1/2ms will be 500hz but it gives onlz 10 to 15 ereadings it then app gives an error of gatt connection timeout 0x08 .Can someone help me with this how to set sampling rate at 500 or 1000 hz.

    I am not sure I have understood you correctly here. Are you saying that if you increase the sampling rate of the SAADC then you are receiving a GATT connection timeout 0x08?
    Could you elaborate a little more on what you are doing here - how are you changing your sampling frequency? Are you working out of an example from the SDK - if so, which one? What hardware are you using, do you have a nRF52 Development Kit, or a custom board?
    If you could share some code, that would be beneficial. Please use the " Insert -> Code " option for sharing code in the forum.

    Best regards,
    Karl

Reply
  • Hello,

    USing help from this forum i have successfullz transmitted adc value from one pin of AIN# to ble and reasing values successfullz

    I am happy to hear that you found some useful information for this purpose in the forums, and that you were able to successfully sample and transmit the sample over a BLE link, great! 

    i am facing an issue that when iever i change adc sample rat time from 250 to other lower vaalue to increase sample rat like if i write 2 that is 1/2ms will be 500hz but it gives onlz 10 to 15 ereadings it then app gives an error of gatt connection timeout 0x08 .Can someone help me with this how to set sampling rate at 500 or 1000 hz.

    I am not sure I have understood you correctly here. Are you saying that if you increase the sampling rate of the SAADC then you are receiving a GATT connection timeout 0x08?
    Could you elaborate a little more on what you are doing here - how are you changing your sampling frequency? Are you working out of an example from the SDK - if so, which one? What hardware are you using, do you have a nRF52 Development Kit, or a custom board?
    If you could share some code, that would be beneficial. Please use the " Insert -> Code " option for sharing code in the forum.

    Best regards,
    Karl

Children
No Data
Related