I’m working with ultrasonic ping sensor interfacing with Toradex platform.
Sensor works on basic principle of setting a GPIO pin as output HIGH and then LOW, so that sending a signal burst. After 5 microsecond delay, the GPIO pin should receive the signal in INPUT mode and calculate the timing between signal transmission and reception.
Is there any method to measure the timing of signal?
Is there any internal millis() function which I can marking time reference at beginning and end?
Thanks for your support.