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

ADC example with UART

Hi,

I bought nordic evaluation board 2 days ago. I have been searching through the forums to enable and test the voltage level of a battery and monitor it via UART. After several hours of trail and error. I manage to combine two examples of nordic in to one but I am not being able to see the voltage level on my UART. Can you guys provide me with an example of ADC using UART as output. I will do the rest.

thanks

Update:

Thanks Stefan for the code

Parents
  • Hi

    It has been my intention to make an ADC example that outputs on UART, but it does not currently exist. Your request gives me further reason to speed up the implementation. Lets see what I can do next week, but I can not promise anything. Meanwhile, take a look at these UART examples and these ADC examples.

    Update 17.10.2014 Below is an example with ADC sampling once a second and transferring the ADC result both over UART and over BLE. It is actually a concatenation of the adc example with softdevice found here and the app_uart example found here. I don't have much documentation with this yet and the code is not so organized but at least it is a start. Try to see if you get it working.

    adc_sampling_ble_app_uart.zip

    Update 23.10.2014 I have put the above example for ADC with UART out on Nordic Github which includes perhaps a little better documentation than the code above.

Reply
  • Hi

    It has been my intention to make an ADC example that outputs on UART, but it does not currently exist. Your request gives me further reason to speed up the implementation. Lets see what I can do next week, but I can not promise anything. Meanwhile, take a look at these UART examples and these ADC examples.

    Update 17.10.2014 Below is an example with ADC sampling once a second and transferring the ADC result both over UART and over BLE. It is actually a concatenation of the adc example with softdevice found here and the app_uart example found here. I don't have much documentation with this yet and the code is not so organized but at least it is a start. Try to see if you get it working.

    adc_sampling_ble_app_uart.zip

    Update 23.10.2014 I have put the above example for ADC with UART out on Nordic Github which includes perhaps a little better documentation than the code above.

Children
Related