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

libraries for various sensors

HI team,

   I like to interface methane, hydrogen and moisture sensor in my custom board which is going to use nrf52840 soc. i am in development stage. for outdoor application i need to interface these sensors in my board is there any libraries and example available for this. if not from where can i start? 

regards,

karthikeyan

Parents
  • Hello,

    You can use several inputs for the ADC. 

    You can e.g. see the example that I attach here. It has 2x ADC on AIN0 and AIN1 (pin P0.02 and P0.03). The example works for both nRF52832 and nRF52840.

     

    saadc_x2_test.zip

     

    It works with SDK14.2.0, but I have not yet tested it for SDK15.0.0. The ADC values will show in the UART log, so open an UART terminal like Putty or Termite, and connect P0.02 to GND and P0.03 to VDD, and you can see the different values in the UART log.

    Best regards,

    Edvin

Reply
  • Hello,

    You can use several inputs for the ADC. 

    You can e.g. see the example that I attach here. It has 2x ADC on AIN0 and AIN1 (pin P0.02 and P0.03). The example works for both nRF52832 and nRF52840.

     

    saadc_x2_test.zip

     

    It works with SDK14.2.0, but I have not yet tested it for SDK15.0.0. The ADC values will show in the UART log, so open an UART terminal like Putty or Termite, and connect P0.02 to GND and P0.03 to VDD, and you can see the different values in the UART log.

    Best regards,

    Edvin

Children
Related