Circuit to detect a white line

In summary, a white line on a black background will not be detected using normal photocell technology. A color camera or set of red/green/blue cells will be necessary to detect the line.
  • #1
rusty009
69
0
Hey, I need to be build a circuit to detect a white line on any background surface. I have researched and tested with IR technology it detects every colour ( ex red, green, brown ) except black, does anyone have any ideas ? Thanks in advance
 
Engineering news on Phys.org
  • #2
Do you specifically need to follow only a white line?

Usually in line following robot projects you just have a single high contrast line.
If you want to follow only white then you have to work in color.
Either use a color camera or in place of the normal photocell you will need a set of red/green/blue cells and compare the outputs.
 
  • #3
Hey, thanks for the reply, the robot will need to drive forward until it reaches a white line, then it will perform a function. I don't have the budget to buy a color camera, is their a cheap solution ?
 
  • #4
Normally the line is the only thing on the floor. A black line on a white floor is more common - but only because most classroom floors are white! White on black is the same principle.
I thought this was an advanced version where you had a whole mess of multi colored lines (lie a subway map) and you had to follow the white one.

The usual method is to have a simple photocell (light dependant, resistor, photodiode, silicon-cell, phototransistor or whatever) mounted on the front of the robot to detect the change in brightness of either the reflected room lights - or a flashlight beam on the front of the robot.

The software is pretty simple - if you are steering to the left and signal drops then steer to the right, and vice-versa. Then you need a strategy in case you loose the line completely (go around in a circle?) A more advanced solution is to have two detectors either side of the line - then you know which direction you have gone off.

But is sounds like you are just going in a straight line until you 'see' a mark - that should be easy.
 
  • #5
But the thing is the carpet of the floor will either be blue or red, that's why I'm having troubles. I have detected a white line on a black surface, but only on a black surface, is there nay possible way to detect a white line on an any colour surface?
 
  • #6
The color doesn't matter you just have to be sensitive to the change in brightness.
Obviously white/black or black/white gives you biggest change, black on gray will give a much smaller one - so you might need either a more senstive light detector or better electronics.
If you are using a simple photocell and a comparator you will have to position the cell over the floor and over the line, measure the output at each and set the detection level halfway between.
 
  • #7
I was thinking of that idea as well, but the robot only takes in digital signals ie 1 or a 0, 1 for reflective 0 for non-reflective, how could I change the response to detect my desired brightness ? Thanks.
 
  • #8
You can't just run the output of the analog light sensor into the digital input, it will just switch by chance at some unknown level.
You need to compare the analog output with some adjustable reference level and then have a circuit which switches to a digital 1 or 0.
Look up "Schmidt trigger" and "comparator"
 
  • #9
Thanks for all the help, so I should measure the output current when the sensor is over the white line then get the accompanying schmitt triger to turn it into a 1 when it reaches that current magnitude ?
 
  • #10
we did this in my robotics class by using infrared sensors, since it returns higher values for black and much lower values for white because of the way the infrared light is reflected off of black surfaces compared to white surfaces.
 

1. What is a circuit to detect a white line?

A circuit to detect a white line is an electronic circuit that is designed to detect the presence of a white line on a surface, such as a road or a sheet of paper. It typically uses sensors and logic circuits to detect changes in light intensity and determine if a white line is present.

2. How does a circuit to detect a white line work?

A circuit to detect a white line works by using sensors, such as light-dependent resistors (LDRs) or infrared (IR) sensors, to detect changes in light intensity. When the sensor is placed over a white line, the reflected light is different from the surrounding area, causing a change in the sensor's output. The circuit then uses logic circuits, such as comparators, to interpret the sensor's output and determine if a white line is present.

3. What are the components needed to build a circuit to detect a white line?

The components needed to build a circuit to detect a white line include sensors (such as LDRs or IR sensors), an op-amp or comparator, resistors, capacitors, and power supply. You may also need a microcontroller or other logic circuit to interpret the sensor's output and provide a digital signal.

4. What are the applications of a circuit to detect a white line?

A circuit to detect a white line has various applications, such as line-following robots, automatic floor cleaners, whiteboard robots, and industrial automation. It can also be used in traffic control systems, such as detecting lane markings on roads to assist self-driving cars.

5. Are there any limitations to using a circuit to detect a white line?

Yes, there are some limitations to using a circuit to detect a white line. The circuit may not work well in low light conditions or when there are multiple white lines close together. It may also be affected by ambient light and other colors that may appear similar to white. Additionally, the circuit may need to be calibrated for different surfaces or lighting conditions to function accurately.

Similar threads

Replies
0
Views
74
  • Electrical Engineering
Replies
3
Views
2K
  • Materials and Chemical Engineering
Replies
24
Views
2K
  • Electrical Engineering
Replies
14
Views
5K
  • Electrical Engineering
Replies
5
Views
2K
Replies
2
Views
1K
  • Electrical Engineering
Replies
2
Views
3K
Replies
2
Views
2K
  • Electrical Engineering
Replies
3
Views
1K
Replies
1
Views
2K
Back
Top