Go Down

Topic: New guy working with Arduino. help with project? (Read 5149 times) previous topic - next topic

mrjameslat

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

AWOL

No, it doesn't help - how does the system know what the target is?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

mrjameslat

View this image I drew.

www3.comli.com/project11.bmp

The red line is a visual of the range finders path.
I want to be able to be capable of telling the stepper to move up or down through my computer. If that is the case I will be able to keep track of what degree the range finder is being held at.
Then I want to forward the distance from the rangefinder to my computer. With this information I will be able to run simulations in my computer.

Is this better?


AWOL

I think what you're describing is a long baseline or parallax rangefinder, but your diagram looks to me to be the wrong way around.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

mrjameslat

How is it backwards?
(excluding money as a factor)
would this project be doable? Like is it realistic?

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

mrjameslat

Because I am the information that I will gather from the electronic, and run it into my computer. From there I can use it to run through my simulations.

The red line on the right triangle represents the range finder. I drew a right angle because my goal is to find that hyp as well as the angle.

mrjameslat

To further explain it just think of a telescope.
Except instead of gazing at stars, you are finding how far away they are.

AWOL

To find out how far away stars are, you use a long baseline  parallax rangefinder.
A diameter of the orbit of the Earth is the baseline of choice.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

mrjameslat

ok, I'll take the information in dive into some books/sites and see what I can come up with.

Thanks for all the help!
-James

biocow

With an ultrasonic you get a "cone" of sight.

10 PRINT CHR$(7)
20 GOTO 10

mrjameslat

Now I see what you people are saying.
So to be frank it would be impossible to pinpoint position with one of those?

What would I need then that could pinpoint it? Or would nothing exist?

Also do you know of any other methods in which I could use to help me get the measure of the hyp, and the degree angle?

Thanks again.

biocow

Would you be allowed to attach a light or LED to the target? If so you might be able to zero in on that.
10 PRINT CHR$(7)
20 GOTO 10

mrjameslat

#28
Jan 20, 2011, 01:48 am Last Edit: Jan 20, 2011, 01:50 am by mrjameslat Reason: 1
I'm just trying to find a way that will work.
Will the light help focus the range finder better and give a more precise reading?

If so could I use a weaker range finder?


edit**
Also (without LED's or lights) would there be a mathematical formula that I could use to help me center the "cone"?

thanks again

mrjameslat

Just an update, could I possibly use this MaxSonar?
http://www.maxbotix.com/MB7076__XL-MaxSonar-WRA1.html
It's only good for about 10m, but so far it seems the closest to what I was looking for, plus it allows for a more narrow vision.

What are your thoughts and concerns with this?

Thanks again

Go Up