Intelligent-Light

by CodeChamp in Circuits > Electronics

4484 Views, 41 Favorites, 0 Comments

Intelligent-Light

P1030542.png
0000.jpg

Hello Makers,

Want to know why your monthly electricity bills are "so high"? This is because when a person inside the room leaves the room hastily, he or she unknowingly leave the lights and fans switched on.

There are many solutions to solve this problem, but the solutions are not adaptive and cost-effective.

So, what’s next? The only way to solve this is to use an Intelligent Light System. In this system when a person enters the room the tube lights are switched on automatically and go off automatically when there is nobody inside the room. This implies that the whole system is now at the tip of your motion.

Components Needed

4.jpg
1.jpg
5.jpg
0.jpg
2.jpg
6.jpg
7.jpg
8.jpg
10.jpg
11.jpg

All that you need is:

Hardware Required

  • NodeMCU
  • 5V Relay Board
  • Bread Board
  • 3W LED Bulb
  • IR sensor (x2)
  • Enclosure
  • 2-pin Plug (x1)
  • Socket Bulb Holder (x1)
  • Micro USB cable
  • Electrical Wires

Software Required

  • Arduino IDE (with ESP8266 Library installed)

Enclosure Fabrication

9.jpg
12.jpg
13.jpg
14.jpg
15.jpg
19.jpg
20.jpg

  1. Draw a square of 3cm x 3 cm ( this varies according to the size of the bulb holder ).
  2. Within the circle make a circle with a radius of 1.5cm / the circle diameter should be 3cm.
  3. Using Dremel tool cut the circle portion to make some space to fix the bulb holder.
  4. Next, you need to make few holes according to your IR sensor placement. I've made holes in front of the enclosure.
  5. Now using driller you can drill the holes. If you don't have driller, you can use a solder gun to make some holes.
  6. You can now fix the bulb holder into space created. You can use glue to fix the holder permanently.

OK, let'sm move to circuit part.

220v Supply Connection

21.jpg
17.jpg
18.jpg
22.jpg
23.jpg
16.jpg
24.jpg

  1. Connect the Livewire from 2-pin plug to one of the holder terminals.
  2. Connect the Ground wire of the supply to COM pin of the Relay.
  3. Connect a wire from NC (Normally Closed) of the relay to another terminal of the bulb holder.

If any confusion refer the connections as shown in the image below.

Realy Connection

25.jpg
26.jpg
27.jpg
28.jpg

Relay connections are as follow:

  1. The positive supply pin (+V) is connected to Vin pin of NodeMCU.
  2. The negative pin (GND) is connected to GND pin of NodeMCU.
  3. The Input pin of the relay is connected to Digital Pin D0 pin of NodeMCU.

You can also refer my previous Instructable how to Interface Relay Module with NodeMCU

IR Sensor Connections

3.jpg
29.jpg
30.jpg
31.jpg

IR sensor1 Connection:

  1. The Vcc pin of the IR module is connected to +3v of the NodeMCU.
  2. The Output pin of the IR module is connected to Digital pin D1 of the NodeMCU.
  3. The GND pin of the IR module is connected to the Ground pin (GND) of the NodeMCU.

IR sensor2 Connection:

  1. The Vcc pin of the IR module is connected to +3v of the NodeMCU.
  2. The Output pin of the IR module is connected to Digital pin D2 of the NodeMCU.
  3. The GND pin of the IR module is connected to the Ground pin (GND) of the NodeMCU.

You can also refer my previous Instructables on how to Interface IR Module with NodeMCU

Assembly

32.jpg
33.jpg
34.jpg
35.jpg

Finally, assemble all the components and wires into the Enclosure.

Well Done. We have completed with the device, let's test it.

OUTPUT

00.jpg
Intelligent Lights

Now, you can develop this instructable with various sensors and implement in many other applications.

That's all makers!

I hope you found this instructable most innovative. You can contact me by leaving a comment. If you like this instructable probably you might like my next ones.