Contact Less(Smart ) Room Controller
by Mr Invo in Circuits > Arduino
610 Views, 9 Favorites, 0 Comments
Contact Less(Smart ) Room Controller
![1.jpeg](/proxy/?url=https://content.instructables.com/FJD/C0IO/KESJFMBT/FJDC0IOKESJFMBT.jpg&filename=1.jpeg)
I teach 7th grade student. On behalf of my student Harsha and her brother im writing this instructable. In this COVID-19 situation we created a Smart Home Controller which I'm using now in my home, in which i have used IR sensor and made it Contact-less. This Room controller can be controlled using IR Sensors or we can even control using our Mobile(using Blynk App).
All step by step details are provided below.
Required Parts
![1.jpg](/proxy/?url=https://content.instructables.com/FAR/FRL2/KESJFMJ4/FARFRL2KESJFMJ4.jpg&filename=1.jpg)
![2.jpg](/proxy/?url=https://content.instructables.com/F3F/XMZT/KESJFMJA/F3FXMZTKESJFMJA.jpg&filename=2.jpg)
![3.jpg](/proxy/?url=https://content.instructables.com/FGK/A5W1/KESJFMJB/FGKA5W1KESJFMJB.jpg&filename=3.jpg)
![4.jpg](/proxy/?url=https://content.instructables.com/FEZ/KLG7/KESJFMJC/FEZKLG7KESJFMJC.jpg&filename=4.jpg)
![5.jpg](/proxy/?url=https://content.instructables.com/FKZ/6QHS/KESJFMJD/FKZ6QHSKESJFMJD.jpg&filename=5.jpg)
![6.jpg](/proxy/?url=https://content.instructables.com/FBD/K7U8/KESJFMJE/FBDK7U8KESJFMJE.jpg&filename=6.jpg)
![7.jpg](/proxy/?url=https://content.instructables.com/F9G/HAED/KESJFMJH/F9GHAEDKESJFMJH.jpg&filename=7.jpg)
![8.jpg](/proxy/?url=https://content.instructables.com/FVG/RBU8/KESJFMJI/FVGRBU8KESJFMJI.jpg&filename=8.jpg)
1)NodeMCU - 1 ( https://amzn.to/35hyEi0 )
2)2-CH Relay Module- 1 ( https://amzn.to/2ZhZtz7 )
3)IR Sensors - 2 ( https://amzn.to/2ZiLn0f )
4)Connectors -Few ( https://amzn.to/2Fcqddp )
5)Hi-Link 12v or 5v Power Supply - 1 (https://amzn.to/2FcpjNT ) - 5v
6)7805 Voltage Regulator - 1 ( https://amzn.to/3bA5YSK )
7)220uf capacitor - 1
8)22uf capacitor - 1
Circuit Diagram
![1.png](/proxy/?url=https://content.instructables.com/FN9/N9HH/KESJFML2/FN9N9HHKESJFML2.png&filename=1.png)
![1.png](/proxy/?url=https://content.instructables.com/F3J/EU4P/KETYWQZE/F3JEU4PKETYWQZE.png&filename=1.png)
Connect all the components as per circuit diagram.
NodeMCU Relay Connections:
NodeMCU D0- Relay Signal pin 1(input pin)
NodeMCU D6- Relay Signal pin 2(input pin)
NodeMCU IR Sensors Connections:
NodeMCU D4- Sensor-1 Signal pin (output pin)
NodeMCU D5- Sensor-2 Signal pin (output pin)
All (NodeMCU ,Relay Module and Sensors) Vcc to 7805 Output pin(last pin)
All (NodeMCU ,Relay Module and Sensors)Gnd's to 7805 Gnd pin (middle pin)
Hi-Link Vo+ to 7805 Input pin (first pin) through capacitor +ve
Hi-Link Vo- to 7805 Gnd pin(middle pin) through capacitor -ve
Arduino Code
Download the libraries from below links
WifiUdp ( https://bit.ly/3k0fzoC )
ESP8266mDNS ( https://bit.ly/3k1xmf9 )
ArduinoOTA ( https://bit.ly/3bB9SuB )
BlynkTimer ( https://bit.ly/333lJxC )
thanks to techiesms for code reference.
Blynk App Setup
![1.jpeg](/proxy/?url=https://content.instructables.com/F76/Z0NN/KETYTIA0/F76Z0NNKETYTIA0.jpg&filename=1.jpeg)
![2.jpeg](/proxy/?url=https://content.instructables.com/FME/G3ZR/KETYTIA1/FMEG3ZRKETYTIA1.jpg&filename=2.jpeg)
![3.jpeg](/proxy/?url=https://content.instructables.com/F1B/WCO9/KETYTIA2/F1BWCO9KETYTIA2.jpg&filename=3.jpeg)
![4.jpeg](/proxy/?url=https://content.instructables.com/FCY/NEO6/KETYTIA3/FCYNEO6KETYTIA3.jpg&filename=4.jpeg)
![5.jpeg](/proxy/?url=https://content.instructables.com/FZB/5S7G/KETYTIA4/FZB5S7GKETYTIA4.jpg&filename=5.jpeg)
![12.jpeg](/proxy/?url=https://content.instructables.com/FYW/F40M/KETYTIT0/FYWF40MKETYTIT0.jpg&filename=12.jpeg)
![6.jpg](/proxy/?url=https://content.instructables.com/FDP/PXY8/KETYTIA5/FDPPXY8KETYTIA5.jpg&filename=6.jpg)
![7.jpeg](/proxy/?url=https://content.instructables.com/FM8/5R9C/KETYTIA6/FM85R9CKETYTIA6.jpg&filename=7.jpeg)
![8.jpeg](/proxy/?url=https://content.instructables.com/FOG/1ABV/KETYTIA7/FOG1ABVKETYTIA7.jpg&filename=8.jpeg)
![9.jpeg](/proxy/?url=https://content.instructables.com/FET/I7ES/KETYTIA8/FETI7ESKETYTIA8.jpg&filename=9.jpeg)
![10.jpeg](/proxy/?url=https://content.instructables.com/FGH/4F9K/KETYTIA9/FGH4F9KKETYTIA9.jpg&filename=10.jpeg)
![11.jpeg](/proxy/?url=https://content.instructables.com/F8A/TBIH/KETYTIAB/F8ATBIHKETYTIAB.jpg&filename=11.jpeg)
Step1: Download Blynk App from playstore/appstore
Step2: Signup with your email id
Step3: Click on +New Project
Step4: Give your project a name
Step5: Select board to NodeMCU
Step6: Select Connection type to Wifi and click on submit
Step7: Verification code will be sent to your mail
Step8: Click on + button on top(android users) or click on screen(iphone users) and add a button to screen
Step9: Click on the button
Step10: Give your button a name
Step11: Select output to virutal pin v12 and slide from push to switch
Step12: Add another button and select output to virtual pin v13
Step13: Click on play button on top
Add Wifi Credentials and Auth Code to Code
![1.PNG](/proxy/?url=https://content.instructables.com/FEH/JJLB/KETYTK63/FEHJJLBKETYTK63.png&filename=1.PNG)
![2.PNG](/proxy/?url=https://content.instructables.com/FAC/GZXH/KETYTKE0/FACGZXHKETYTKE0.png&filename=2.PNG)
Step1: Copy the auth token form your mail and paste it in the code.
Step2: Give your wifi ssid in you code
Step3: Give your wifi password in your code
(reference in above pics)
Upload
![Screenshot (135).png](/proxy/?url=https://content.instructables.com/FPN/Z8KA/KETYTKVL/FPNZ8KAKETYTKVL.png&filename=Screenshot (135).png)
Step1: Connect your NodeMCU to your pc.
Step2: Open code in Arduino IDE and make necessary changes (auth token, ssid and password).
Step3: Click on tools and go to boards and select nodemcu1.0.
note: If you don't have nodemcu boards on your arduino ide please see this video (
Step4: Click on upload.
Final Output
![1.jpeg](/proxy/?url=https://content.instructables.com/FCT/WZE5/KETYTL5H/FCTWZE5KETYTL5H.jpg&filename=1.jpeg)
I have drilled holes in my switch board and kept all the circuit inside.
For Indication I've remover led's on relay board and added a 5 mm led and fixed in the switch board.
,
Feel free to ask me if you have any doubts in this instructable.
Thank you.