Thanks very much Aratti and Scalerobotics. The nice ideas I got from u. But I'm weak in digital electronics . So I'd a problem with sin and cos value to evaluate. Also compiler is not appropriate with fractional values. I've seminor for this project at March 1st weak. So my minds are burning everyday. Fortunately, I found the idea by reading Aratti's reply. So I adjust the potentiometer with 0°-90° by POT command and I got. This mean a potentiometer rotate 90°, the VAR value show 90, I was calculated the pre-define value sin/cos(with excel) and multiply with known distance. So I stored many distance values in PIC and give results on LCD by using many IF function. I think my strategies like a child. But this is only one way to do now. Thank you very much friends.
Bookmarks