For a school work we have to make a robot-car that can read traffic lights,
The distance between the sensor and the traffic light is 15 cm,
but we are struggling to write a good arduino program to detect the color of the traffic light.
We need to detect the difference between a red light and are green light.
The lights are flickering with a frequency of 1 hertz.
Can somebody help?