Skip to content
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

SR04 ultrasonic sensor support #2444

Closed

Conversation

nferreyra
Copy link

This PR adds a new driver for the SR04 ultrasonic device family. It was tested using a JSN-SR04T-2.0 reading the water level of my basement sump. I'm also planning to use it with my garage door controller to check if the gate is open or closed and when closed to see if the car is parked.
I'm adding it here because I've seen some interest on it, namely with #113 and #1964.
Feel free to adapt it to your coding style and if you need me to change something just shout.

Thanks for your work @arendst!

@arendst arendst added the enhancement Type - Enhancement that will be worked on label Apr 15, 2018
arendst added a commit that referenced this pull request Apr 20, 2018
5.12.0m
* Add support for sensor HC-SR04 ultrasonic (#113, #1964, #2444)
@arendst arendst closed this Apr 20, 2018
@ruimarinho
Copy link

@arendst would you be open if I replace this implementation with https://playground.arduino.cc/Code/NewPing which adds support for SR04, SRF05, SRF06, DYP-ME007, Parallax PING and RCW-0001 (3V3)?

It also has a built-in digital filter which I've found to be absolutely needed for error correction on these sensors.

curzon01 pushed a commit to curzon01/Tasmota that referenced this pull request Sep 6, 2018
5.12.0m
* Add support for sensor HC-SR04 ultrasonic (arendst#113, arendst#1964, arendst#2444)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants