This project simulates a lamp that changes its color based on the lighting in the room. It is a closed loop system where the output is based on a constant feedback. I used an Arduino UNO as the ...
const int greenLEDPin = 9; const int redLEDPin = 10; const int blueLEDPin = 11; const int redSensorPin = A0; const int greenSensorPin = A1; const int blueSensorPin = A2; int redValue = 0; int ...