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

How to configure "ble_nus_send_string" in nRF51822

Hi every body,

i try to use 10 bit ADC resolution instead of 8 bit in the ble_uard_adc example, the problem is the ble_nus_send_string is configure to 8 bit, how can i re-configure it to 16 bit to send a 10-bit ADC analog reading?

Thanks

Parents
  • Dear Stefan,

    First of all , thank you very much four your support

    When i try to transmit two byte that mentioned above, i get a zero value in adc_result[1] and the adc_result[0] contains a normal value.

    Please i have another question, if i want to use two 10-bit ADC channels and send there values at same string but separated by comma "," how can i do this?

    Thanks again for your valued advice

    Best Regards

  • Hi Stefan,

    The voltage on pin2 around 1.5 to 1.8 volt, i try to use potentiometer on the input but the value of adc_result[1] still 0.

    The row data that can be sent over the air is it just numerical data or alphabetical data? because i need to separate between the two adc result, and the receiver side you mean ( PC application or BLE module), now the pc application that i programmed receive the adc result like this type "result 1,result 2" but via wire and i want to make it via Bluetooth.

    Thank alot for your support

    Best Regards

Reply
  • Hi Stefan,

    The voltage on pin2 around 1.5 to 1.8 volt, i try to use potentiometer on the input but the value of adc_result[1] still 0.

    The row data that can be sent over the air is it just numerical data or alphabetical data? because i need to separate between the two adc result, and the receiver side you mean ( PC application or BLE module), now the pc application that i programmed receive the adc result like this type "result 1,result 2" but via wire and i want to make it via Bluetooth.

    Thank alot for your support

    Best Regards

Children
No Data
Related