HOME AUTOMATION ARDUINO AND BLUETOOTH
by TECHATRONIC in Circuits > Arduino
19 Views, 0 Favorites, 0 Comments
HOME AUTOMATION ARDUINO AND BLUETOOTH
We all have various automatic houses and places and are very fascinating and attractive so today I am going to tell you how you can make your own home automation with the use of Arduino and Bluetooth module. It is very easy to make and program for person who are in Arduino and robotics. Along this we will be using some other basic stuff to make it working.
We may make our custom app or used which are available on the google play store for free. These apps sends and receives data over Bluetooth connection. Rate of sending data is relatively high and it also depends upon the type of module used like HC-05,HC-06. 5v relays will be used to control 220v/110v AC devices.
DESCRIPTION
Arduino are most common microcontroller which can be used in various ways and also can be hooked to any module and sensor very easily. It is used widely among hobbyist to make different and interesting projects. Today we are using the most common Arduino available (uno) and HC-05 Bluetooth module to make some interning prioject5.
Bluetooth apps are available for free on google paly store or any other app store or you can make your own custom app in MIT app inventor or any other platform
*NOTE:- SPEED OF DATA TRANSFERRED DEPENDS UPON THE MODLE OF MODULE YOU ARE USING AND OPEN AREA OR OBSTACLES IN BETWEEN THE RECEIVER AND TRANSMITTER DEVICES.
FEATURES AND APPLICATIONS
- Accessible from any Bluetooth device.
- Easy to use
- Signals can be weak due to obstacles
- Low price
- High speed data transfer
- Can be used in small projects and home automation.
COMPONENETS NEEDED
- Arduino Uno and its cable
- Relay module
- Bluetooth module
- Bread board
- A LED
- Resistor(220ohm)
- Jumper wire
- AC Bulb and holder
CIRCUIT DIAGRAM
First take the power lines onto the bread board from microcontroller VCC/5v-->+ line and GND--> - line.
Then connect Bluetooth module on to the bread board and connect power to the module from powerlines using jumper wires.
Now connect Rx AND Tx PINS OF BLUETOOTH MODULE TO ARDUINO Tx and Rx PINS RESPECTIVELY OR AS SHOWN IN FIGURE ABOVE.
Now connect leds to the breadboard +to PIN 11 and - wire to GND in series with a resistor.
Now connect relay module to power lines on bread board and AC power lines in series with an AC bulb as shown. Also connect signal pin of relay module to PIN 12 of ARDUINO
CODE AND APP
LINK FOR APP IS THIS
//put this code in the ide of Arduino from this line
void setup()
{
Serial.begin(9600); // buart rate
pinMode(12,OUTPUT); // RELAY MODULE
pinMode(11,OUTPUT); // LED
digitalWrite(12,HIGH); // relay module high
}
void loop()
{
if(Serial.available()>0)
{
char data= Serial.read();
Serial.println(data);
if(data=='a')
{
digitalWrite(12,LOW); // RELAY ON
digitalWrite(13,HIGH); // LED ON
Serial.println("RELAY AND LED ON");
}
if(data=='b')
{
digitalWrite(12,HIGH); // RELAY OFF
digitalWrite(13,LOW); // LED OFF
Serial.println("RELAY AND LED OFF");
}
}
}
WORKING
As the code starts it initializes the pin to which relay module is connected and to which led is connected. After initializing it waits for the serial data to be received as soon as the data is received it check th condition for the received string.
Then according to the condition, it switches on or off AC bulb and simultaneously a led for indicating that data is successfully received.
PCB DESIGNING
Now as we
have developed our circuit and ordering it. For ordering PCB, I would prefer you NextPCB which is a great website for ordering custom PCB with high quality and precision on time delivery. Ordering PCB online in various sites are a step towards developing our own circuit. NextPCB provides very easy and fast delivery of PCB in different masks and paste with professional look. Also, they send you the picture of your PCB before shipping it to you, Now that very exciting….The Gerber File for the PCB is given below. You can simply download the Gerber File and order the PCB from :Gerber Viewer of NextPCB
Go to get your discount: NextPCB
#arduino #arduinouno #arduinoproject #arduinomega #arduinonano #arduino duo