Let's Make Robots!

IR compound eye

OddBot's picture

Price: 
$5 USD
AttachmentSize
Mr._General_4.bas17.21 KB
Vendor's Description: 


I have posted some tip/walkthroughs on home made IR sensors for obstacle detection and later for motion tracking. Now DAGU proudly presents the IR compound eye. Designed to fit LMR's universal sensor bracket, this sensor works by shinning IR light onto an object and then tracking the reflected IR. This sensor does not work in bright daylight as sunlight has a lot of IR and blinds the sensor.The IR LEDs can be controlled by a digital output so that ambiant light as well as reflected light can be measured. Your microcontroller needs 4 analog inputs available to use this sensor. See a video of it working here: http://www.youtube.com/watch?v=iKYCob7getU

Note: calibration is not normally required, heatshrink is provided fo those who wish to fine tune their eye. A black permanent marker can also be used. Incorrect application can reduce the range of the eye.

Click on the schematic for a bigger image.

Compound_Eye_Schematic.jpg

 

 

Calculon320's picture

excellent

That's a work of art, my friend. Does it still measure with the LEDs off and on?
OddBot's picture

Yes

You can take readings with the LEDs on or off so that you can measure ambiant light as welll as reflected light
Calculon320's picture

but does it "modulate"?

So you can get the difference between ambient and reflected, like your old tracker?

Scratch that, calculon just saw Q9 on the schematic. bad-ass.

GroG's picture

Lovely work Oddbot

Your an icon to robo-jockey's everywhere.
motherhugger's picture

is this tested with picaxe

is this tested with picaxe 28x1?
OddBot's picture

Yes

The video shows our new robot using this sensor and a picaxe 28X1
Prettybird's picture

Nice job

Some of your stuff is not so impressive but I take it back on this one. Good job and price. Just buying the parts would be a pain in the butt. I like the idea of multable outputs.

Nice!

I'd like to place an order please?  :)
ignoblegnome's picture

Send a private email to

Send a private email to OddBot or Claudia from their user profile page, and they will help you with your order.
guibot's picture

this is so cool!!! I'm

this is so cool!!! I'm starting to get used to OddBot's product designs!!!  :D

Will you release sample code to the non'coder persons?   :)

OddBot's picture

Sample code

At the moment there is sample code posted in my compound eye tip/walkthrough for picaxe. When I get time I will try and write a more generic sample code and later I hope to have a sample in C.
guibot's picture

C (Arduino) would be

C (Arduino) would be great   ;)
Aniss1001's picture

Very cool :)

I thought this was so cool that I took the liberty of sharing it with the Arduino community...

www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1253931667

I presume you wont mind, Oddbot?!

OddBot's picture

Thanks Mate :D

I don't mind at all. I want to learn Arduino, just have to find the time. We are in the process of producing an arduino board designed at one of the local universities so hopefully we can produce some sample code soon.
CaptainObvious's picture

Awesome

Just want to say, awesome!! This is what I got into electronics for, designing stuff like that! I've got to agree, you're an icon!!:)

If you throw up the BAS file, I'll see what I can do to work it into an Arduino sketch for some sample code!:D

Aniss1001's picture

BAS file

The BAS file can be found here:

http://letsmakerobots.com/node/10822

Just below the cute little bug.

It looks very simply. I think even I could translate it to Arduino even though I know squad about picaxe. But I don't have the time either these days so... Besides I don't have the compund eye to test it...

Aniss1001's picture

Hmm..just curious

Never saw this picaxe lingo before...So I am curious:

- You use the keyword "symbol" both for declaring constants AND variables?

- What does it mean when you assign a value like "b2" or "w6" to a variable?

- Also don't know what the first 4 lines do "#picaxe 28X1 #no_data #no_table setfreq em16"

Besides that I think I could translate it in a matter of minutes...

PS: No offence to anyone but I've been programming in c, c++, c#, java, javascript, actionscript, lingo, sql, asp (vbscript), php and visual basic. But I don't think I ever saw a language I disliked as much as this picaxe thingy... well ...perhaps visual basic/vbscript ... what a mess ... man am I glad I bought an Arduino ... hehe :)

rik's picture

Link it elsewhere

I would be happy to oblige all these questions (to my abilities), but I don't want to pollute this honourable thread with it. Let's take the Picaxe drivel elsewhere. Please provide a link here.
Aniss1001's picture

Good idea...

letsmakerobots.com/node/11375

..And sorry for spamming this honourable thread with Picaxe drivel :)

OddBot's picture

BAS file

Unfortunately I can't seem to post attachments to a component so I have posted the file with the tip/walkthrough.
Aniss1001's picture

Size?

I was just wondering..what are the dimensions of this thing?
OddBot's picture

Dimensions

The eye is designed to fit neatly on the Sensor Brackets so it is 50mm x 30mm
Aniss1001's picture

Nice...

That's small..now I'm definately getting one since I'm gonna order a batch of servos anyway..I sent a mail to Claudia allready :)

Thanks

PS: So I'll be translating you Picaxe code to Arduino soon...

OddBot's picture

Updated code

I'll post some updated code for you tomorrow. Better description of each line and better imunity to ambiant IR
Aniss1001's picture

Cool..thanks

Cool..thanks
Aniss1001's picture

Connecting

I bought one of these a while back, but still didn't have time to play with it. I hope to hook it up this weekend. But I don't know how to connect it?! I know it takes 4 ADCs and I'm looking at the schematic. However I still don't quite understand this electronics mumbo jumbo so the schematic doesn't make much sense. I don't know what this J1 rectangle is supposed to indicate? I suppose they are the connections (1 x 5V, 4 x ADC and 2 x ground)? But then I'm not sure whether the 4 grounds at the bottom of the schematic are actually the ADC connections?!

Hope to get a few hints :/

jklug80's picture

I've had the same questions.

I've had the same questions. I haven't seen a really good pin out for it.
OddBot's picture

Sorry for the confusion

J1 is the connector with 7 pins. You can tell pin 1 if you look at the PCB because the pad is square instead of round. As Rudolf has mentioned:

pin1 is Vcc (+5V)
pin2 is analog output (up)
pin3 is analog output (left)
pin4 is analog output (down)
pin5 is analog output (right)
pin6 is digital output (IR leds)
pin7 is ground

 

mintvelt's picture

Risking more confusion

I dont mean to add to the confusion, but you do mean "analog input" instead of output right?
Rudolph's picture

I believe he's referring to

I believe he's referring to it as "output from the sensor".

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.