Author Topic: IR Range Finder Ruler  (Read 2204 times)

0 Members and 1 Guest are viewing this topic.

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
IR Range Finder Ruler
« on: June 04, 2010, 05:39:53 AM »
Hey, this is my first post here and I hope someone can help.

I'm wanting to make a device that uses an IR Range finder to display a distance (in metres) on an LCD screen
I have some experience with making basic-moderate circuits using IC's not a problem, although I have had trouble
programming EEPROM's in the past so I'd like to avoid micro controllers if possible.

Thanks in advance. :)

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: IR Range Finder Ruler
« Reply #1 on: June 04, 2010, 09:44:19 PM »
Hi,

This is easy with a microcontroller, but will be quite a bit of work (and a large(ish) PCB) to get even slightly precise.
The output function of an IR range finder is not linear and with a controller, you can make a table translation or find the function f(x)=?Y and use that - all with some lines of code, while with a discrete build...
And driving an LCD will be so much easier with a controller as well.

Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #2 on: June 05, 2010, 07:05:26 AM »
hi,

yeah i thought that the microcontroller would be the way to go, so pretty much just input the voltage and use a function to find the distance value?. any help with a basic schematic would be greatly appreciated and i have an atmega8 laying around, would that be sufficient for this do you reckon?

Thanks

Offline Conscripted

  • Robot Overlord
  • ****
  • Posts: 291
  • Helpful? 10
Re: IR Range Finder Ruler
« Reply #3 on: June 05, 2010, 08:09:26 AM »
The atmega8 should be able to handle this project. Do you have a board to put your controller in? If not there is a build on this site that will get you a workable solution. Look for the $50 robot and disregard the parts you don't need.  Good luck with your project and let us know how it goes.

Conscripted

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #4 on: June 05, 2010, 08:50:51 AM »
ok thanks, it there a tutorial or something here on how to drive a lcd with a microcontroller? i've had a look but couldnt find anything, once i know how to do that i think the rest should be pretty straight forward i think lol.

Offline cyberfish

  • Robot Overlord
  • ****
  • Posts: 163
  • Helpful? 3
Re: IR Range Finder Ruler
« Reply #5 on: June 05, 2010, 10:16:28 AM »
Yes, the datasheet :).

paulstreats

  • Guest
Re: IR Range Finder Ruler
« Reply #6 on: June 05, 2010, 03:34:20 PM »
You need to be more specific about the LCD.

Is it text/graphic?
How does it receive data? through a parallel data bus with EN pin, or serial rx/tx or SPI I2C etc...

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #7 on: June 05, 2010, 11:58:39 PM »
You need to be more specific about the LCD.

Is it text/graphic?
How does it receive data? through a parallel data bus with EN pin, or serial rx/tx or SPI I2C etc...

ok sorry, this is what i dont know, i've never used one before, what would you suggest to be the easiest to work with?

Offline cyberfish

  • Robot Overlord
  • ****
  • Posts: 163
  • Helpful? 3
Re: IR Range Finder Ruler
« Reply #8 on: June 06, 2010, 12:06:50 AM »
I suggest something like this -
http://www.sparkfun.com/commerce/product_info.php?products_id=255

It's fairly simple to work with, and well documented.

Only downside is it's parallel, so it will need a bunch of pins from the microcontroller (11).

I've worked with it quite a bit before, and it's a very common LCD controller, so I'm guessing many other people have as well.

We can help if you get stuck.

If you choose one that no one has used, you'll probably be on your own.

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #9 on: June 06, 2010, 12:15:40 AM »
ok sweet thanks, i'll have a look at the documentation and if i can't figure out how to send text to it i'll be back lol

btw, with the ir range finders does anyone know what type of max range you can get with them, with the sharp ir rangers i was looking at they said about 6cm-30cm which isn't a very long distance.... thanks


Offline cyberfish

  • Robot Overlord
  • ****
  • Posts: 163
  • Helpful? 3
Re: IR Range Finder Ruler
« Reply #10 on: June 06, 2010, 12:41:14 AM »
There are a few versions with different ranges.

The GP2D12 for example can do 10 to 80cm.

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #11 on: June 06, 2010, 05:18:26 AM »
so I take it that you cant get much more distance than about 1 metre? I was kind of hoping for at least 10 metres.
is there an equivalent sensor that can do around that distance or more?

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: IR Range Finder Ruler
« Reply #12 on: June 06, 2010, 05:22:26 AM »
10 m is a push, i dont know of any sensors for that.

a ping ultrasonic sensor can get about 3m.

http://www.parallax.com/dl/docs/prod/acc/PingDocs.pdf

may be a laser sensor may be suitable for what you need

Cheers

Joker94

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #13 on: June 06, 2010, 06:05:19 AM »
ok thanks, so i think that a laser ranger might be the way to go as I want it for short
to medium distances rather than precise small distances. anyone know of a decent
laser ranger module that i could use for this?

Thanks!

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: IR Range Finder Ruler
« Reply #14 on: June 06, 2010, 08:30:13 PM »
Hi,

[...] anyone know of a decent laser ranger module that i could use for this?
Yes, the Bosch DLE40 Professional, measures 5 cm to 40 m in less than 0.5 s with an accuracy of +/- 1.5 mm.
And best of all, it comes; totally assembled with an LCD display and options for measuring 2 or 3 dimensions (for area and volume), a belt pouch and in a box at least 20 times its size.

It's so well built that I haven't yet had the hearth to hack it  8)
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline Alfa_ZuluTopic starter

  • Full Member
  • ***
  • Posts: 92
  • Helpful? 1
Re: IR Range Finder Ruler
« Reply #15 on: June 07, 2010, 05:18:00 AM »
lol the point was to make it to learn.  :)

anyway thanks for everyone's help/advice but I'll shelve this until I can afford to do something lol

 


data_list