Hello everyone, I'm doing a project on Traffic congestion using swarm robotics by arduino boards.
The 4 robots will be line following continuously and when ever the robots come to a junction, i'm implementing first come first serve logic. Wherein the robots communicate with one another and wait for the higher priority bot to pass the junction before it does.
I'm using RED, GREEN and BLUE colors to make the bots to stop at the junction.
The problem which i'm facing is, whenever the sensor(LDR with white LED) detects RED color the value is in 230-260 range(in ADC) which is fine and for Black it is in 640-675 range, but when the robot crosses the cross over track( LINE for following ) where there is transition from white to black, the RED color is being detected. :fearful: :fearful:
I don't want that to happen.
I have tried with averaging the samples to get the step response(white to black sudden transition) it worked but i expects a delay which I cant give since my project is in real time.
so can anyone tell me what to do now? How to detect the color in motion without any ambiguity?
This is how I want my project to be.
In this video, they have implemented bar code kind of thing at the junction.
can anyone write the code for this using 3 to 4 IR sensor and ADC how to detect this bar code, where the sensors have to detect the bar code simultaneously ?
Please do respond to this post asap because my project deadline is here.