If I point the colour sensor to my iPhone it does not recognise it, but if I point it to a piece of paper, it does.

Does anyone know if there is a solution for this? I found some documentation online, and saw this video, he's doing pretty much what I want.

  • if its the iPhone screen it probably has to do with the glare/glossiness of the screen – Yoel Dec 6 '11 at 21:59
  • Yeah that's right – peduarte Dec 7 '11 at 10:40

The robot in the video has a custom light sensor, a more advanced HiTechnic color sensor V2 which can detect an extended range of 15 colours. The stand colour sensor can detect six (white, black, red, blue, green and yellow).

enter image description here

The sensors are based on different principles. LEGO sensor uses a RGB LED, and successively shines red, green and blue light on the object. Reflected light is collected by a light sensor sensitive to all wavelength. HiTechnic one has a white LED, and a specialized color sensitive chip. This chip has three sensitive areas covered by red, green and blue filters. An added advantage of HiTechnic method is that it can detect the color of light sent on it (in passive mode, with the white LED shut off).


A direct LED light against an iPhone's screen will reflect the light back into the sensor, making it difficult for the sensor to detect colour.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy