The Parallax ColorPAL combines an RGB LED, a light sensor, and a microcontroller to make a colour sensor that can also be used as an ambient light detector and a colour generator. Readings are reported via a 1-wire asynchronous serial interface.
Our Code: SKU-002696
Supplier Link: [Pololu MPN:1608]
The ColorPAL from Parallax is a miniature colour and light sensor that can double as a colour generator with its RGB LED. When sensing colour, the ColorPAL uses its LED to illuminate a sample one colour component at a time while measuring the light reflected back with a broad-spectrum light-to-voltage converter. The amount of light reflected from the sample under illumination from each red, green, and blue LED can be used to determine the sample’s colour. For the ColorPAL to detect the colour of a subject, the subject must be reflective and non-fluorescent. The colour of objects that emit light (e.g. LEDs) cannot be detected.
Communication with the ColorPAL takes place using serial I/O, transmitting and receiving at between 2400 and 7200 baud, using a non-inverted, open-drain protocol. The ColorPAL includes a pull-up resistor to Vdd, so you do not need to apply one externally. Because of the open-drain protocol, the pin used to communicate with the ColorPAL should always be configured as an input, except when being driven low. Also, when starting up, you should wait for this pin to be pulled high by the ColorPAL before trying to send it any commands. Please see the user’s manual (297k pdf) for more information.
|Size:||1.72 x 0.90 x 0.65"|
|Minimum operating voltage:||5 V|
|Maximum operating voltage:||5 V|