Tell us about yourself!
can somebody explain me the pulseIn() function. In the Arduino site they say pulseIn() function 'Reads a pulse (either HIGH or LOW) on a pin. For example, if value is HIGH, pulseIn() waits for the pin to go HIGH, starts timing, then waits for the pin to go LOW and stops timing'. So as they say it doesn't start timing when trigger signal is sent. rather it start timing when echo signal is initially get a signal. And stop timing when echo signal stop receiving waves. From that time measure can we calculate the distance as above equation?