Problems with light sensor

My problem is that, some days ago, I was using my light sensor to differ what color i have in front of the robot. But with Arduino Alfa i cannot do that and i don't know why. I tried to put a LED with the sensor but it doesn't works. Also the maximum number i get form the sensor is 100

Well, that's all very interesting, but lacking in any kind of detail that might help?someone here help you (assuming it is help you want, and not just the opportunity to rant)

Ok, i understand.
Someone knows the way to differ colors with the update? because my light sensor doesn't do it and i don't know how to do it now. (Before the update it can differ). Only gives numbers between 0 and 100.

Euclides,

We don't know what sensor you are using and we don't know how you connected it to the Arduino (I don't know the Alfa either) and we don't know your code. Could you please share this information?

  • the sensor type + URL to datasheet / website
  • the way you connected it
  • your code, (use the # button in the editor please)

Rob

Also when you said:-

I was using my light sensor to differ what color i have in front of the robot.

Does that mean you had a setup that did work and now you have changed to Arduino Alfa it won't work any more?

In general you can't detect colour with a simple light sensor you can only detect light.

In general you can't detect colour with a simple light sensor you can only detect light.

Not quite true... Check here:

http://www.philohome.com/sensors/colorsensor.htm

I actually had a paper with algorithm about this. I just need to look for it.

Without much to work here, I'd say that the LDR is gone and the "100" you read, rains or shines, is actually the value of a voltage divider resistor. But I'm just thinking what could be wrong in such device had it been built by me... I'm not even sure about what you're trying to achieve.