0% found this document useful (0 votes)
8 views

Project Report

Uploaded by

kumarharshh1001
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Project Report

Uploaded by

kumarharshh1001
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Home

Automation

Group-2 (2021-2025)
Electronics and Instrumentation Engineering
National Institute of Technology, Agartala
Submitted by: -
Group 2 {

}
Submitted to: -
Home automation is building automation for a home. A home
automation system will monitor and/or control home
attributes such as lighting, climate, entertainment systems, and
appliances. It may also include home security such as access
control and alarm systems.
The phrase smart home refers to home automation devices that
have internet access. Home automation, a broader category,
includes any device that can be monitored or controlled via
wireless radio signals, not just those having internet access.
When connected with the Internet, home sensors and
activation devices are an important constituent of the Internet
of Things ("IoT").
In this Project, we are going to control an LED and a Fan
using HC-05 Bluetooth Sensor, Arduino Uno and an Android
Application.

Arduino UNO is a microcontroller board based on the ATmega328P. It has 14 digital


input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16
MHz ceramic resonator, a USB connection, a power jack, an ICSP header and a reset
button. It contains everything needed to support the microcontroller; simply connect
it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to
get started. You can tinker with your UNO without worrying too much about doing
something wrong, worst-case scenario you can replace the chip for a few dollars and
start over again.
Bluetooth serial modules allow all serial
enabled devices to communicate with each
other using Bluetooth.
It has 6 pins,
1. Key/EN: It is used to bring Bluetooth
module in AT commands mode. If Key/EN pin
is set to high, then this module will work in
command mode. Otherwise by default it is in
data mode. The default baud rate of HC-05 in
command mode is 38400bps and 9600 in data mode.
HC-05 module has two modes,
1. Data mode: Exchange of data between devices.
2. Command mode: It uses AT commands which are used to change setting of
HC-05. To send these commands to module serial (USART) port is used.
2. VCC: Connect 5 V or 3.3 V to this Pin.
3. GND: Ground Pin of module.
4. TXD: Transmit Serial data (wirelessly received data by Bluetooth module
transmitted out serially on TXD pin)
5. RXD: Receive data serially (received data will be transmitted wirelessly by
Bluetooth module).
6. State: It tells whether module is connected or not.

Specification of HC-05 Bluetooth Module


Bluetooth version: 2.0 + EDR (Enhanced Data Rate)
Frequency: 2.4 GHz ISM band
Sensitivity: -80 dBm typical
Range: approximately 10 meters (or 33 feet) in open air
Profiles supported: SPP (Serial Port Profile), HID (Human Interface Device) and
others
Operating voltage: 3.3V to 5V DC
Operating current: less than 50mA
Standby current: less than 2.5mA
Sleep current: less than 1mA
Interface: UART (Universal Asynchronous Receiver/Transmitter)
Baud rates: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, and
460800
Operating temperature: -20°C to 75°C (-4°F to 167°F)

An This L298N Motor Driver Module is a


high-power motor driver module for
driving DC and Stepper Motors. This
module consists of an L298 motor driver
IC and a 78M05 5V regulator. L298N
Module can control up to 4 DC motors, or
2 DC motors with directional and speed
control.
Features & Specifications
Driver Model: L298N 2A
Driver Chip: Double H Bridge L298N
Motor Supply Voltage (Maximum): 46V
Motor Supply Current (Maximum): 2A
Logic Voltage: 5V
Driver Voltage: 5-35V
Driver Current:2A
Logical Current:0-36mA
Maximum Power (W): 25W
Current Sense for each motor
Heatsink for better performance
Power-On LED indicator
A resistor is a passive two-terminal electrical component that
implements electrical resistance as a circuit element. In
electronic circuits, resistors are used to reduce current flow,
adjust signal levels, to divide voltages, bias active elements, and
terminate transmission lines, among other uses.

A light-emitting diode (LED) is a semiconductor device that emits


light when an electric current flows through it. When current passes
through an LED, the electrons recombine with holes emitting light in
the process.

A jump wire (also known as jumper, jumper wire, DuPont


wire) is an electrical wire, or group of them in a cable, with a
connector or pin at each end (or sometimes without them –
simply "tinned"), which is normally used to interconnect the
components of a breadboard or other prototype or test
circuit, internally or with other equipment or components,
without soldering.

A printed circuit board, or PC board, or PCB, is a


non-conductive material with conductive lines
printed or etched. Electronic components are
mounted on the board and the traces connect
the components together to form a working
circuit or assembly.
Here we used MIT App Inventor website to create the android application to
control the LED and Fan.

#define ENA 3
#define in1 4
#define in2 7
#define led 9
int speed1=0;
int speed2=51;
int speed3=102;
int speed4=153;
int speed5=204;
int speed6=255;
int i;
void setup() {
Serial.begin(9600);
pinMode(ENA,OUTPUT);
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(led,OUTPUT);
}

void loop()
{
while(Serial.available()>0)
{
i=Serial.parseInt();
if(i>=0&&i<=255){
analogWrite(led,i);
}
else if(i==300){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed1);
}
else if(i==400){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed2);
}
else if(i==500){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed3);
}
else if(i==600){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed4);
}
else if(i==700){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed5);
}
else if(i==800){
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
analogWrite(ENA,speed6);
}
Serial.print("Received value: ");
Serial.println(i);
}
}

You might also like