The hut that comes to life at night!

Now that our code is ready, let's build our project. We use the circuit diagram as shown in the following screenshot:

The hut that comes to life at night!

Once you have hooked up your circuit according to this diagram, it is time to take your automated lamp for a spin!

The hut that comes to life at night!

If you have set your threshold values right, you will find the LED to be OFF when there is ambient light present. Lower your threshold value in case the LED still remains on.

The hut that comes to life at night!

When your room goes dark, the LDR senses this change in ambient light levels and automatically turns your LED ON!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.242.165