Hi eric , its over 
I made experiments and my measurements are very close.
But somehow , I had to go for some weird changes in the number of my delay counter.
It changes if I take the variable from long to float or like I delay it for 10us but It does not work when I count as 10us but It works if I count as 16us and wait for 10us at every loop.
I share my code.
I also wonder that , for example JSN-SR04T says it can measure from 25cms to 6.5 meters. Mine start from like 55cms. May using dampening path would work but also I guess the piezo piece has affects on it. Im happy since I accomplished the project but I also wonder these.
I made experiments and my measurements are very close.
But somehow , I had to go for some weird changes in the number of my delay counter.
It changes if I take the variable from long to float or like I delay it for 10us but It does not work when I count as 10us but It works if I count as 16us and wait for 10us at every loop.
I share my code.
I also wonder that , for example JSN-SR04T says it can measure from 25cms to 6.5 meters. Mine start from like 55cms. May using dampening path would work but also I guess the piezo piece has affects on it. Im happy since I accomplished the project but I also wonder these.
Attachments
-
1.7 KB Views: 2
Last edited:


