I'm trying to use a HC-SR04 sensor in a project where a car needs to avoid obstacles encountered in the path, but when it encounters a narrow obstacle (which does not cover the sensor) continue to go forward. Can you help me with some tips? Thank's
some dc motors do not have a mechanic brakes so it will keep going for the determined direction for some time!
I was working on a project that uses more than two ultrasonic ( 4 ) all of them were returning false distance ( greater than 6 ) for 2-3cm front obstacle!
Are you firing all 4 ultrasonics at the same time? If not, how much time are you allowing between each ultrasonic shot? The point here being that you have to allow enough time for each ultrasonic "chirp" to decay sufficiently so that it cannot be received by another activated ultrasonic. I think the delay should be somewhere around 30-40 milliseconds.
If it's like the leg of a chair there's a reasonable chance it doesn't produce much if any echo (sound waves will just go around it if it's about the size of the wavelength or less, barely noticing the object's presence).