Julio26127:
Hi Tim,i need some support in my current project. I would like to trigger and read
the data of 64 HCSR04 Ultrasonic distance sensors. I want to build an array
of 8x8 sensors with a distance of 6cm to a vibrating wall.
Through the distance variations (Amplitude is big enough) I hope to
get enough information to analyse the wall.The echo of the sensors will not effect each other. I have a big distance between
each sensor and a special foam behind the sensors which will hopefully absorb the
signals. I read on your website that your sketch can handle 15 sensors on a 33ms
intervall. When I change the Maximum_Distance even smaller intervalls should be possible, correct?Do you know a possibility to ping as many sensors as possible at the same time?
I know that it will never be possible to trigger 64 sensors at the same time, because
even with Port Manipulation it is just possible to to activate 7 Pins at the same time.
Do you have any suggestions or do you know if somebody has done something similar before?Lars
You could ping more frequently if there were no echos. But, cross-talk between sensors prohibits multiple sensors being triggered at the same time. As the sensors must SEND before they can receive, if you would ping two sensors at the same time the cross-talk would result in the echo being garbage yielding bad readings.
The only way to do it is to ping each sensor one at a time, or, look for a different technology. It doesn’t sound like ultrasonic is a good method for what you’re doing, and how much would this wall be vibrating anyway? It would need to be moving more than a CM for it to be detected, and only the center would move I would assume.
Tim