This assignment is to create a schematic, circuit, and code that uses a sensor (e.g. either the photoresistor or the thermistor) in a voltage divider to change the state of an output device. The schematic description below explains the values chosen. Functions like analogRead(), analogWrite(), the map, an if-statement are used in the Arduino code.
The calculated resistance for the Green LED are 160Ω, so in actual circuit design, 220Ω resistance are used. Similar for Blue LED, the calculated resistance for the Blue LED is 85Ω; therefore 100Ω resistance are used.
White wire is connected to 5V power source for both photo resistors. Both photoresistors are parallel connected to 5V.