First, sorry for my bad english, I'm not good in this language....
But I really need help......
I'm working for my project using 4 colour sensor to detect 9 colours with 3 combination Primary Colour Red, Green and Blue.
I'm using Mega 2560 and tcs3200.
The problem -
when my project connected to my laptop with usb port, the RGB value from sensor is more stabil..... range between 8-10
But when I connected to jack 2.1mm adapter with 12V 2A output.... I realize the Value RGB from sensor is different and the range is to big .....Range between 25-40
Connected to Usb Port -
Purple (R= 50-60, G= 120-130, B=40-50)
Connected to 2.1mm jack 12V 2A -
Purple (R= 60-90, G= 100-140, B=30-70)
The reason this happen is because from different Voltage/current ? Or other reason ?
And how to fix this problem ?