Go Down

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

#### mrjameslat

#15
##### Jan 19, 2011, 07:08 pm
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.

Thanks again!
-James

#### AWOL

#16
##### Jan 19, 2011, 07:15 pm
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.
I speak for myself, not Arduino.

#### mrjameslat

#17
##### Jan 19, 2011, 07:44 pm
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

#18
##### Jan 19, 2011, 07:56 pm
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.
I speak for myself, not Arduino.

#### mrjameslat

#19
##### Jan 19, 2011, 08:01 pm
How is it backwards?
(excluding money as a factor)
would this project be doable? Like is it realistic?

#### AWOL

#20
##### Jan 19, 2011, 08:32 pm
What does the right-angle represent?
"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.
I speak for myself, not Arduino.

#### mrjameslat

#21
##### Jan 19, 2011, 08:47 pm
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

#22
##### Jan 19, 2011, 10:47 pm
To further explain it just think of a telescope.
Except instead of gazing at stars, you are finding how far away they are.

#### AWOL

#23
##### Jan 19, 2011, 10:51 pm
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.
I speak for myself, not Arduino.

#### mrjameslat

#24
##### Jan 19, 2011, 10:53 pm
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

#25
##### Jan 19, 2011, 11:02 pm
With an ultrasonic you get a "cone" of sight.

#### mrjameslat

#26
##### Jan 20, 2011, 12:11 am
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

#27
##### Jan 20, 2011, 01:22 am
Would you be allowed to attach a light or LED to the target? If so you might be able to zero in on that.

#### mrjameslat

#28
##### Jan 20, 2011, 01:48 amLast 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

#29
##### Jan 20, 2011, 02:58 am
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