Quote Originally Posted by serial_bug View Post
Can Any one help me?
I've a project to make range finder with laser pointers. I used some mathematics concepts. u can see my diagram . I've problem with cos and sin value evaluating? I used PIC16F628A. I used POT command to know the resistance. I wish to convert this angle value to cos and sine value. Can any one?
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.