In this article, we are going to see how to work with a Bluetooth module with a relay and Arduino to produce a wireless mobile controlled light. This will make our life simple and efficient. The Bluetooth module is paired with a mobile's Bluetooth and using a specified app we are going to control the lights and fan. This project will be very useful for ill patients and will be a stepping stone to create complete home automation.
Requirements
- Arduino UNO
- Bluetooth Module
- Relay Module
- Lights
- Connecting wire
- Mobile App (BlueControl)
Circuit diagram
Connect the circuit diagram as per the below image.
Connect Pin 8 to the IN1 of the Relay which will act as the output of the Arduino.
Connect the TX of the Arduino to the Rx of the Bluetooth module.
Rx of the Arduino to TX of Bluetooth
Relay Module
Since Arduino has a capacity to work only under 5V it cannot be operated at high voltages, so we use a relay module to act as a high supply trigger.
Software application required:
You need the Blue Control App, and it is available in the PlayStore. This app sends information in the form of binary digits to the Bluetooth; which is 1 for ON and 0 for OFF.
Steps to follow:
Step 1
Open the Arduino Software.
Step 2
Initialize the serial communication, the use of the "Serial.Available()” function is to check whether the signal is received or not.
Step 3
Compile and upload the coding.
Relay module connected to Arduino
Step 4
Switch on your mobile's Bluetooth and then open the BlueControl application and pair it to your Bluetooth.
In this article, we saw how to work with Arduino, Bluetooth Sensor, and Relay module. This article will be very useful for patients and physically challenged people to handle their daily needs just using their app.