To view this discussion visit https://groups.google.com/d/msgid/jallib/adec607b-948f-468f-8b6e-6acae5ead087n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jallib/69dc0508-d457-40ac-ac46-f786ed49b602n%40googlegroups.com.
Hi Rob
Fantastic that car.
I have not such a car and no cats but a vacuum cleaner.
Peter
To view this discussion visit https://groups.google.com/d/msgid/jallib/CAM%2Bj4qtKMLzerDA6udYugmB%2BcM9fkk%3DS%3DCfdvNX1NfJjm3Y31Q%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/jallib/AM7PR02MB6098F0EA8DE8B215E7C4A206E6B52%40AM7PR02MB6098.eurprd02.prod.outlook.com.
Hello Everyone,
"Why make it difficult when it can be easy!!" my wife often says to
me.
This way I now measure a distance of 1 meter. Theoretically that is 5847 uS and
I measure 5813!!
No problem to put this three times in one IC!!!!!
---------------------------------------------------------------------------------
const STOPWATCH_MIN_VALUE = STOPWATCH_US -- (STOPWATCH_NS is default if not
defined)
const STOPWATCH_USE_TIMER = 1 -- (1 is default if not defined)
include stopwatch
stopwatch_init()
procedure is DISTANCE_2
distance_L = 0
TRG_L=high
delay_10uS(3)
TRG_L=low
while ECH_L == low loop end loop
stopwatch_start()
while ECH_L == high loop end loop
stopwatch_stop()
afstand_L = (stopwatch *171)/1000 ---in mm
end procedure
She was right again!!
Greetings
Hans