I've been studying the ultrasonic sensor HC-SR04 for a while, and I use it in a project to detect moving objects. In some experiments, I discover that each of this sensor has difference of quality, because some of then detects more frequently an object than others, which sometimes lose an object in front of then.
Could someone tell me if is there different producers of those sensors, and where to find a high quality HC-SR04 to buy?
Thank you!
PS: I found this topic that is exactly my question, and people answered this explaining that the problem would be the code, but I'm sure my problem is not the code.
I know it isn't an HC-SR04, and you didn't mention the needs of your project(s), but if you really want a fast and accurate distance reading of up to 40 meters, try the LiDAR Lite V3. Its kind of expensive, but from personal experience, it's worth it.
Power_Broker:
I know it isn't an HC-SR04, and you didn't mention the needs of your project(s), but if you really want a fast and accurate distance reading of up to 40 meters, try the LiDAR Lite V3. Its kind of expensive, but from personal experience, it's worth it.
Thank you for your response, but that is not a need of my project. The objects cross through the sensor in a distance up to one meter, and I have to use only low cost sensors.
I'm no expert on ultrasonic sensors but how often do you check for a target? Is there blocking code in your program that might let a fast moving target slip through? Lets have a look at your code (between code tags please), like this: