Poll
Question: Am I trying something far beyond me?
ya, kinda... - 1 (33.3%)
not if u have $$$ - 0 (0%)
no, just gota find a way that works - 2 (66.7%)
Total Voters: 3

Pages: 1 [2] 3   Go Down
Author Topic: New guy working with Arduino. help with project?  (Read 4562 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26248
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it doesn't help - how does the system know what the target is?
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?

Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26248
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26248
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What does the right-angle represent?
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26248
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Silly-con Valley, Ca, U.S.
Offline Offline
Sr. Member
****
Karma: 17
Posts: 420
Lernin' to tinker
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

10 PRINT CHR$(7)
20 GOTO 10

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Silly-con Valley, Ca, U.S.
Offline Offline
Sr. Member
****
Karma: 17
Posts: 420
Lernin' to tinker
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Would you be allowed to attach a light or LED to the target? If so you might be able to zero in on that.
Logged

10 PRINT CHR$(7)
20 GOTO 10

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: January 19, 2011, 07:50:20 pm by mrjameslat » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2] 3   Go Up
Jump to: