i try again but it still give's wrong value while i did the wire connection better?
Please anyone help me!
hey,
i am working on this sensor quite long and i have these observations to make:
- The smd led must be high for better results.
- The light room affects too much to the results. So if you do your expirements in your lab, outdoors simple your sensor can't work.(expects of a moody day)
- Bcoz you use the breakout i suppose you solder header pins before do the programming part. If you just use jumper wires throught the holes every time you break the circuit and rebuild it you will receive different results, so the code(the limits as written before) is useless.
p.s. The soldering way it could have different results to anyone so noone can give you a ready sketch bcoz it will not work exactly the same to you.
excuz my english...
Hello,
I am at the same exact situation that you are in however I noticed 2 things.
-
If you disconnect the colour sensor from the arduino, you still get rubbish values. I think the arduino needs pull downs on Analog. Does that make sense?
-
The Analog pins are 10 bit which means you will get from 0 to 1023 however the code multiplies this by different values. I think ultimatelly you need to get them from 0 to 255 in order to have true RGB... does that make sense?
Thanks