-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: sensor: hc-sr04: add driver #76285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this sensor to tests/drivers/build_all/sensor
Add a simple driver for the HC-SR04 ultrasonic distance sensor. Signed-off-by: Adrien Leravat <[email protected]>
b04ce99
to
de9c280
Compare
Done. Let me know if you see any improvements to make! |
7c1c57f
to
dec2c8f
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Hi, this is still active, and the requested changes have been made. |
Hi @MaureenHelm , when you have time, would you be able to take a look and let me know if the update is going in the right direction? Thank you! |
Add automated build and functional tests for the HC-SR04. Signed-off-by: Adrien Leravat <[email protected]>
Thank you @ubieda, I missed the distinction between build and functional tests. |
Add a simple driver for the HC-SR04 ultrasonic distance sensor. This sensor only uses two GPIO pins (trigger and echo) to trigger the acquisition. The signal received on the
echo
pin is the duration between the emission of the ultrasonic pulse and the feedback received (within range of the sensor).