LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Dec 29 '11 at 14:10

This question came from our site for professional and enthusiast programmers.

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.