ok, I'll tell you my goal and then maybe you can help best direct me.

My goal is to create some sort of electronic that will find the distance between two objects and calculate a degree for a physics project.

For example, lets say I could see a target within 20meters (or so).

I want my project to find the distance from where it is and where the target is and then calculate how many degrees (0-90) it is. Then I want to send this information to my computer.

I thought the best way to do this would be to start the stepper at a 0 degrees and then (through my computer and the ardunio) rise the rangefinder/laser to the right degree so that it is on the target.

Then if my rangefinder/laser tells me the distance or the hyp. I can find use hyp (and basic trig) to determine how high it is off the ground. I can calculate this with my computer, but all I really need to know is the angle degree and the hyp.

Does this help you understand it more?

Thanks again!

-James