Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

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 stackoverflow.com 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
add comment

1 Answer

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).

[Source]

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
add comment

Your Answer

 
discard

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