Introduction: Home Automation With Infrared and Bluetooth Controlled Relay Module
In this home automation project, I have shown how we can control light, fan and other home appliances from our smartphone app and IR remote using the Arduino control relay module circuit.
This Arduino controlled Smart relay circuit has two modes, Infrared mode and Bluetooth mode so we can control room lights, fan with Mobile Bluetooth and IR remote.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Components Required:
1. TSOP 1738 IR Receiver
2. 100uF Capacitor
3. Arduino Nano
4. HC 05 Bluetooth Module
5. Optocoupler PC817 (4 no)
6. Transistor BC547 (4 no)
7. LEDs (1.5 - 3V) (7 no)
8. Diode 1N4007 (4 no)
9. SPDT Relay 5v (4 no)
10. 220-ohm Resistors (8 no)
11. 1 k Resistor (6 no)
12. 2k Resistor (1 no)
13. 4.7k Resistor (1 no)
14. 10k Resistor (1 no)
15. Male & Female connectors (2mm Pitch Female BERG Strip)
Step 2: IR Control Relay Circuit
In this part, we will discuss the Infrared control circuit. When we press any IR remort button it sends an Infrared signal (the blink of the IR Led). The IR receiver (TSOP 1738) receives and decodes the signal. Then Arduino read and compare the Signal with predefine Hexcode and accordingly control the relay module.
For the related video, you can visit my youtube channel Tech StudyCell or click on https://youtu.be/QSpc1KMezOQ
Step 3: Bluetooth Control Relay Circuit:
In the Bluetooth controlled part, we will connect our smartphone with an HC05 Bluetooth module. You can use any Bluetooth App available in the google play store. We can send some predefine characters from the mobile to the hc05 Bluetooth module. Then Arduino read and compare the character received from hc05 and accordingly control the connected Relay Module.
For the related video, you can visit my youtube channel Tech StudyCell or click on https://youtu.be/xp2B9EbJsRM
Step 4: IR and Bluetooth Control Relay Module
Now we will implement both IR control and Bluetooth control circuit on a single PCB. As the circuit can be controlled by both IR and Bluetooth signals so we will use a push button to select the IR or Bluetooth Mode.
Download link of the Arduino code and circuit diagram.
After downloading the Arduino sketch you have to modify the sketch as per the IR remote and the Bluetooth app you will use to control the circuit.
I have mentioned all the details in the related videos.
Step 5: Select Infrared Control Mode
There are two indicator LEDs om the PCB. White LED for IR Mode and Blue LED for Bluetooth Mode.
If we press the push button once then a white LED will start glowing which indicates the circuit is in Infrared mode. At Infrared mode, we can control the relay module with any IR remote (Example TV remote).
Step 6: Select Bluetooth Control Mode
If we press the push button twice the Bluetooth Mode will activate and accordingly the blue LED will start glowing. In the Bluetooth mode, we can control the relay module from our smartphone through Bluetooth.
Step 7: PCB for the Project
As I will use this home automation circuit daily basis so I have designed a PCB layout for the IR and Bluetooth control relay module circuit.
To get the PCB for IR and Bluetooth control relay module, you follow the following steps:
1. Download the Garber file from the following link:
Step 8: Order the PCB
After downloading the Garber file you can easily order the PCB at $2 only
1. Visit https://jlcpcb.com and Sign in / Sign up
2. Click on the QUOTE NOW button.
Step 9: Uploading the Gerber File and Set the Parameters
3. Click on the "Add your gerber file" button. Then browse and select the Gerber file you have downloaded. Also set the required parameter like quantity, PCB color etc
4.After selecting all the Parameters for PCB click on SAVE TO CART button.
Step 10: Select Shipping Address and Payment Mode
5. Type the Shipping Address.
6. Select the Shipping Method suitable for you.
7. Submit the order and proceed for the payment.
You can also track your order from the JLCPCB.com
My PCBs took 2 days to get manufactured and arrived within a week using the DHL delivery option. PCBs were well packed and the quality was really good at this affordable price.
Participated in the
Assistive Tech Contest