Working With Bluetooth And Relay Module

Introduction

 
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
  1. Arduino UNO
  2. Bluetooth Module
  3. Relay Module
  4. Lights
  5. Connecting wire
  6. Mobile App (BlueControl)
Circuit diagram
 
Connect the circuit diagram as per the below image.
 
IoT
 
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.
 
IoT
 
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.
 
IoT
 
Step 2
 
Initialize the serial communication, the use of the "Serial.Available()” function is to check whether the signal is received or not.
 
IoT
 
Step 3
 
Compile and upload the coding.
 
IoT
 
Relay module connected to Arduino
 
IoT
 
Step 4
 
Switch on your mobile's Bluetooth and then open the BlueControl application and pair it to your Bluetooth.
 

Summary

 
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.