Smart Home System

This paper is about Smart Home System. We gonna investigate the Smart Home System project operational logic with bluetooth, arduino, servo motor and interface.


Department of Mechatronics Engineering

Tunahan Vatansever 

Hüseyin Sefa Ceren 

Mert Aydın 

Definition of ProjectSmart home system is a residence that uses internet-connected devices to enable the remote monitoring and management of appliances and systems, such as lighting and heating.Smart home technology, also known as home automation, provides homeowners security, comfort, convenience and energy efficiency by allowing them to control smart devices, often by a smart home app on their smartphone or other networked device. A part of the internet of things (IoT), smart home systems and devices often operate together, sharing consumer usage data among themselves and automating actions based on the homeowners’ preferences.

This project aims to control the heater, television and lights in the house.It also performs door opening and closing operations.This is done by taking voice commands with one audio receiver and comparing them with one microprocessor (arduino).The result of this comparison is sent via bluetooth to heater, television, lights and driver of the door.Thus,controls heaters, lights, television and the door this way.

Operating Logic 


Bluetooth technology is a short-range wireless communications technology to replace the cables connecting electronic devices, allowing a person to have a phone conversation via a headset, use a wireless mouse and synchronize information from a mobile phone to a PC, all using the same core system.

The Bluetooth RF transceiver (or physical layer) operates in the unlicensed ISM band centered at 2.4 gigahertz (the same range of frequencies used by microwaves and Wi-Fi). The core system employs a frequency-hopping transceiver to combat interference and fading.

Bluetooth devices are managed using an RF topology known as a “star topology.” A group of devices synchronized in this fashion forms a piconet, which may contain one master and up to seven active slaves, with additional slaves that are not actively participating in the network. (A given device may also be part of one or more piconets, either as a master or as a slave.) In a piconet, the physical radio channel is shared by a group of devices that are synchronized to a common clock and frequency-hopping pattern, with the master device providing the synchronization references.


Arduino is an open-source platform used for building electronics projects. This arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer, used to write and upload computer code to the physical board. The Arduino platform has become quite popular with people just starting out with electronics, and for good reason. Unlike most previous programmable circuit boards, the Arduino does not need a separate piece of hardware (called a programmer) in order to load new code onto the board – you can simply use a USB cable. Additionally, the Arduino IDE uses a simplified version of C++, making it easier to learn to program. Finally, Arduino provides a standard form factor that breaks out the functions of the micro-controller into a more accessible package.

Servo Motor

A servo motor is an electrical device which can push or rotate an object with great precision. If you want to rotate and object at some specific angles or distance, then you use servo motor. It is just made up of simple motor which run through servo mechanism. If motor is used is DC powered then it is called DC servo motor, and if it is AC powered motor then it is called AC servo motor. We can get a very high torque servo motor in a small and light weight packages. Doe to these features they are being used in many applications like toy car, RC helicopters and planes, Robotics, Machine etc.

Servo motors are rated in kg/cm (kilogram per centimeter) most hobby servo motors are rated at 3kg/cm or 6kg/cm or 12kg/cm. This kg/cm tells you how much weight your servo motor can lift at a particular distance. For example: A 6kg/cm Servo motor should be able to lift 6kg if the load is suspended 1cm away from the motors shaft, the greater the distance the lesser the weight carrying capacity.

The position of a servo motor is decided by electrical pulse and its circuitry is placed beside the motor.

Inter Face

Coding (Arduino Codes)

String voice;

#include <Servo.h>

int led2 = 3;

Servo door1;

int led1 = 2;

int led3 = 4;

void lighton() {

digitalWrite (led2, HIGH);

Serial.println(“Light is ON!”); }

void televisionon(){

digitalWrite (led1, HIGH);

Serial.println(“Television is ON!”); }

void heateron(){

digitalWrite(led3, HIGH);

Serial.println(“Heater is ON!”); }

void lightoff() {

digitalWrite (led2, LOW);

Serial.println(“Lights is OFF!”); }

void televisionoff(){

digitalWrite (led1, LOW);

Serial.println(“Television is OFF!”);

}void heateroff(){

digitalWrite (led3 , LOW);

Serial.println(“Heater is OFF!”); }

void dooropen(){


Serial.println(“Door is ON!”); }

void doorclose(){


Serial.println(“Door is OFF!”); }

void setup() {


pinMode(led1, OUTPUT);

pinMode(led2, OUTPUT);

pinMode(led3, OUTPUT);

door1.attach(5); }

void loop() {

while(Serial.available()) {


char c=Serial.read();


{break; }

voice += c; }

if (voice.length() > 0) {


if (voice == “Işıkları aç”)

{lighton() ; }

else if (voice == “Işıkları kapat”)

{lightoff() ; }

if (voice == “Televizyonu aç”)

{televisionon() ; }

else if (voice == “Televizyonu kapat”)

{televisionoff() ; }

if (voice == “ısıtıcıyı aç”)

{heateron() ; }

else if (voice == “ısıtıcıyı kapat”)

{heateroff() ; }

if (voice == “Kapıyı aç”)

{dooropen() ; }

else if (voice == “Kapıyı kapat”)

{doorclose() ; }

voice=””; } }


  1. Arduino
  2. Hc05
  3. Sg90 Servo motor
  4. 3 Led
  5. 3 Resistance
  6. Voice Receiver(Phone)
  7. Jumpers

Contact : https://tunavatansever.com/contact-a/

Leave a Reply

Your email address will not be published. Required fields are marked *