In this tutorial, i used two LDR sensors which will work depend on the light's concentration. So i used servo motor as a output.as well as i made automatic light depend gate on the servo motor. The gate will work the following function
when you flow the light on one of LDRs the gate will open. when you flow the light on another LDR the gate will close.
components:
LDR-2
Arduino UNO
Breadbord
Jumbo wires
Resistor -10k-1
Servo motor-1
Download the code here:
No comments:
Post a Comment