My system consists of an Arduino board with an in-built color sensor, a bread board, a relay, a fan, and a program of code. The system starts off by using the color sensor to detect a color. Next, my code extracts the rgb values of the input color and determines whether it’s r or b value is higher (determine if it is red or blue based color). If it is a reddish color my program will trigger the relay to turn on. If it is a bluish color my program will trigger the relay to remain off.
The relay is connected to the main power source of the fan through two connections: NO and COM. Thus, the initial state of the fan is on but due to my code turning the relay off, the fan appears off initially. If the relay is on, then power will travel to the fan, turning it on. If the relay is off, then power won’t be supplied to the fan, keeping it turned off.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .