Automatic Light Control Simulation Using Arduino

                                                          Automatic Light Control Simulation


Introduction/ Explanation:

This project is based on Arduino with an LDR sensor. (LDR) In a dark environment, the resistance is high, in a light environment, the resistance is low. In this project, we also use three types of LEDs (red, green, and yellow), and two types of resistors (ERJ-14YJ103U, 9C12053A3300FKHFk). 

First of all, we connect the LCD (32X2) pins (D7, D6, D5, D4, and E, RS) to the Arduino pins (8, 9, 10, 11, 12, 13), connect the LCD pin RW with the ground. After that connect the LEDs to the Arduino pins (0, 1, 2, 3, 4, 5, 6, 7) which we are assigned for LEDs in the code. 

In the end, we connect the LDR to the Arduino PIn A0.


Circuit Diagram:




Code:



HERE YOU CAN DOWNLOAD THE ARDUINO LIBRARY


FOR HElP CONTACT US 

log by alejandro_velasquez(@pixabay)