Top of the morning to you. I am planning to work on a project to monitor the level on my basement sump. Recently while I was in my basement I did a random check on my sump pump operation by bypassing level switch and the pump didnt come on. so I opened the lid on the tank to find the level on my sump about 1/2 inch from flooding. I replaced the sump pump with new one and level is back to normal. Hence the need for this project.
A quick google search of that sensor, and i see that most of them come with an additional circuit board. Upon further investigation, the pictures of said board appears to have a two pin socket for the sensor, and the familiar 4 pin scheme of the HC-SR04. In fact there are some markings on the board that show jsn-sr04, and a quick google search of that reveals a lot of information on that sensor. Even some example code.
I will leave the rest up to you, but think you will not have much success without that additional board.
the sensor shown in the image is not waterproof. I am looking for something thats waterproof so i bought the same sensors that come with car as parking sensors. however i dont know how to read data from them over serial
Sorry for bumping up an old question but I’m in the same boat of requirement.
And to my surprise there are quite a few new sensors in town:
This one has 2 transducers instead of 1 therefore has less minimum detection distance as compared to JSN SR04T. It is also completely sealed and waterproof.
There are ultrasonic sensors and ultrasonic sensor boards… some are all in one and will interface with an MCU, others are just the transducers and need the control circuitry (sold separately) to even work. And yet others may be proprietary and may not interface with any MCU.
Since none of that is Blynk specific (as in Blynk doesn’t control or read directly from the sensor anyhow), I recommend you Google for basic Arduino use of each type you look up. If you can Arduino find code for it, then it can be adapted to Blynk for the interface.
Personally the HC-SR04 waterproof ultrasonic sensor looks like a basic HC-SR04 in a waterproof casement, so should work nicely with normal Arduino code. I have something here to use as an example
The other one seems to be a totally new sensor meant as a replacement for JSN-SR04T. (That’s my assumption). It tries to fix the issues present with JSN SR04T of smaller blind distance and complete waterproof-ness.
And for that other new sensor, I did find Arduino Uno Code in the ebay description.