Intention
The main idea behind my project is to turn the fan (object) on when certain colors (input) are detected by controlling the power supplied through a relay (output). My goals are to set up a system that correctly detects a color and changes the relay mode accordingly. When the system detects a red based color (a color where the red value is higher than the blue and green. ie. red, orange, pink), the fan will turn on. When the system detects a blue based color (a color where the blue value is higher than the red and green. ie. blue, violet), the fan will remain off. The reason I decided on this system is because I wanted to be able to map different colors to different states. I also wanted to be able to experiment with the different states of a relay and prompt certain states based on other factors.