Hello
This was very interesting. I have a little bit of the same problem.
I have A/D input 0-5V (0-255)
I want a puls out 0V=1mS and 5V=2mS.
If i take your example with the Laser and run it in CurveExpert i got the formula a-bx.
Where did you get 8573 and 41 from, and what is + ( AdResult / 2 ) means?
distance = 8573 + 41*AdResult + ( AdResult / 2 )
Any help will help.
![]()
Bookmarks