duration1 = pulseIn(echoPin1, HIGH); duration2 = pulseIn(echoPin2, HIGH); duration3 = pulseIn(echoPin3, HIGH); durationp = pulseIn(echoPinPedal, HIGH);
I'm running multiple ultrasonic sensors on one Arduino Uno, and I notice the frequency of sensor readings going down dramatically having multiple sensors in line like this. If I comment out three of the four sensors the speed goes up significantly, but I need all my sensors working.
Any ideas on how I can make sure this problem is gone? I can't work my code properly if it's only giving readings once every two seconds.