The Color Sensor Brick is based on the TCS230 Color Sensor module that measures color using an 8x8 array of photodiodes.
The input pins S2 and S3 lets you switch between 16 red, green or blue filtered photodiodes, while the OUT pin then emits a square wave with a frequency proportional to the light intensity of the selected color
Parts list
Type | Quantity |
---|---|
TCS230 Color Sensor | 1 |
2-pin JST XH connector (male) | 1 |
4-pin JST XH connector (male) | 1 |
M2 self-tapping screw | 4 |
Circuit
Desolder the pin header, or cut off the pins with a cutter. Solder the JST XH connectors to the TCS230 Color Sensor.
For the 2-pin connector, solder the red wire to OUT, and black wire to GND.
For the 4-pin connector, solder the red wire to VCC and black wire to GND. Yellow wire connects to S3, while white wire connects to S2.
At the other end of the sensor module, bridge S0 and S1 to VCC with some solder. This sets output scaling frequency to 100% according to the specs.
Optionally strengthen the solder joints with a bit of hot glue.
Enclosure
Print out the parts of the enclosure on a 3D printer.
Sit the module on the bottom piece.
Align with top piece, and secure with 4 x M2 screws.
Line up four 2x1 brickbases on a faceplate, two rows apart. Surround the brickbases with a few other bricks to assist in alignment.
Add two drops of superglue on each brickbase and mount the module. Press and hold for 60s.
The finished module: