hc-sr04-range-meter

xod-dev/hc-sr04/hc-sr04-range-meter

No description
hc-sr04-range-meter
@/hc-sr04-range-meter
ECHOport
Board port to which sensor’s `echo` pin is connected.
TRIGport
Board port to which sensor’s `trig` pin is connected.
UPDpulse
Triggers new ultrasonic ping which will result in the output update once sound echo is captured. Pulses coming within 60 ms window after the last one are ignored to fight sensor’s PCB resonance.
hc-sr04-range-meter
ECHO
TRIG
UPD
Dm
OK
OKpulse
Fires when ping is done
Dmnumber
Last measured distance in meters. Will be set to +Inf if the sensor gets no echo back
To use the node in your project you should have the xod-dev/hc-sr04 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.