Week 9: Input devices

Color sensor based on RGB LED and phototransistor

Adding a phototransistor to the board from the week 5.

New (smaller and sleeker) board

The sensor consecutively switches on red, green, and blue chip of RGB LED and measures reflected light by a phototransistor.

Function of the sensor. RGB channels are scaled to get same values for white.

This video shows output of the senosr after yet another scaling of data to get saturated colors (min value is set to 0 and max value is set to 255)

The color senor controls a strip of addressable LEDs

Schematic of the sensor

Source code