I decided for the first time to use a servo motor that I had never used before to make my own seasonally-affected bots. For this assignment, First, I thought it would be good to create a device that controls my curtains with a servomotor by adjusting a photocell(cds) under fluorescent light at night. The connection between the photocell and the LED was not difficult as it is not the first time.
The principle is simple. Once the light is blocked by covering the photocell with hands, then the LED turns on and the servo motor rotates 180 degrees.
At night, the light sensor’s values under the fluorescent light was more than 280, so I let the LED turned on when the values was below 280.
Without covering the photocell the servo motor is not move.
When I use a servo motor, the speed of rotation had to be adjusted by changing the delay value.
It works pretty well!