Let's Make Robots!

Color Sensor for DAGU Mr. Basic Robot

Color Sensor Algorithm


I know the video quality sucks I just wanted to give a view of  what it is doing. The black tube has the LDR in it to hide stray light. Below is a tabl eof the values I got for Red, Blue and Green when different color soda caps were put in front of the LDR. Now I need to take the raw values and put them into some sort of algorithm that looks at the difference between the values before a cap is put in place and after to determine the cap color.