Compilation Issue while interfacing HC-SR04 with nrf52840 board

Hello Nordic Team,

I am currently working with the nRF Connect SDK v2.6.0 to develop applications for custom boards based on the nRF52840 microcontroller. As part of this project, I am attempting to interface an HC-SR04 Ultrasonic sensor with the board.

However, I have encountered a challenge as there are no drivers present in the Zephyr RTOS for this specific sensor.

Could you please provide guidance on how to proceed with integrating the HC-SR04 Ultrasonic sensor with the nRF52840 using Zephyr? Additionally, do you have any sample programs or resources available that could assist in this process?

Best regards,

Anmol

  • Hello,

    However, I have encountered a challenge as there are no drivers present in the Zephyr RTOS for this specific senso

    For this, I think you might need to come up with something yourself, as I don't have any official references to share. This repository provides a driver for the sensor you are working with, but please see that it's not anything officially tested, or we won't be able to provide any official support. 

    Kind Regards,

    Abhijith

Related