NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.7

teckel:

Stanley:
Dear Tim,

Are you able to add the option to have the distance measurement/pulse width based on LOW signal instead of HIGH signal ? With this, the URM37 passive PWM mode should work with the NewPing library...

Thanks

It would be possible. But would be like shooting in the dark without an actual sensor to test with. There could be a host of other problems. From your testing, is it sending out a single low pulse or is it pulses as the documentation states?

Tim

From my observation on the scope, it is sending multiple pulses based on the returned ping timing/distance..

I'm not sure what the NewPing does on the trigger pins but it surely trigger the PWM pins to send a LOW pulse per trigger on a constant basis...

I thought if the library read a high pulse whereas the URM37 reads a low pulse, a "simple" #if define URM37 would change the codes whereas all the other codes and timing would remain the same...

*** I could be wrong or it just sounded too simplified...