Photoelectric Sensor Configuration

Hey guys,
Our team was having some difficulties with the configuration of the photolelectric sensors for the autonomous mode. We were trying to set up a basic line follower but we are unable to configure them to follow gray lines.
The sensors output the same thing for any and every surface and line :ahh: , they only project the green when we raise the sensors high up. Currently, they are approximately 2 inches above the ground.
We set the sensors to output a binary value to see when it was on or off the line, but when the robot is on the ground, all the sensors are outputting 1, even if we change the surface and move the robot around.

Thanks,
Team #2576 Corazon de Chileno

Did you calibrate your sensors?

How exactly do you calibrate them to seek gray? :confused:

Thanks for the quick reply.

Read this document.
http://decibel.ni.com/content/servlet/JiveServlet/download/14730-3-26962/[FRC%202011]%20Line%20Following%20Tutorial.pdf

It helped us a lot. It’s for LabView but the concepts apply for almost every languages.

Just turn the dials on top until they go green on carpet and yellow and orange on tape
Do it so the distance is the same from the ground as it is mounted on the bot