Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: McFire on August 14, 2009, 10:23:02 PM

Title: LED for line sensor
Post by: McFire on August 14, 2009, 10:23:02 PM
Hi,
I want to make a line detector with a Cds Cell and a LED.
Now my question is what kind of an LED should I use.

#1
Diffused or clear

#2
Wide or narrow viewing angle

#3
Red, Green, Blue or Orange

This is kinda of subject but:
Can I build a fully functional sumo bot with the $50 microcontroller

Thanks in advance for any suggestions.
Title: Re: LED for line sensor
Post by: SmAsH on August 15, 2009, 04:13:44 AM
#1. generally clear if you want it to be brighter.
#2. well, if you want it to be more focused go for narrow, but both can be fine.
#3. im not too sure but blue and green tend to be good choices.
#4. hell yes, the arduino's use a chip that is practically the same as the $50 robot.
the $50 robot tutorial only shows how to get like 10 I/O out of the board...
the atmega8 has 20 I/O available for use, 17 excluding the programming header.
Title: Re: LED for line sensor
Post by: Finnik on August 15, 2009, 05:09:17 AM
The color of the LED you need to take depends on the colour of the line you're following. If it's a black line on a white surface, any color will suffice. If the line and surface are other colours that black and white, look up which colour absorbs what colour of light. White reflects all colours of light, black absorbs all, but e.g. blue absorbs all colours except for blue. Pick a colour which allows you to detect the difference between the colour of the line and that of the surface it's on.
Title: Re: LED for line sensor
Post by: McFire on August 15, 2009, 11:05:38 AM
Ok,
I think I'll try it with Orange and if that doesn't work I'll use Blue.
Thanks for the replies.
Title: Re: LED for line sensor
Post by: Soeren on August 15, 2009, 11:06:09 AM
Hi,

Using an RGB LED, you can find the best color by scanning the actual line vs. background color and make it select the one giving the largest contrast.
Otherwise, a (warm)white LED is probably the best all round color.