Introduction: Smart House

Picture of Smart House

In this project i am going to explain how we can make smart house by using different types of sensors with simple code where it could do many functions.I believe such these application helps the student,engineers and all interested in electronic devices to become more familiar.

Step 1: Smart Home With Simple Tools

Picture of  Smart Home With Simple Tools

DONE BY:Louai Mikawi.

DATE: 04/02/2016

In this project i am going to explain how we can make smart house by using different types of sensors with simple code where it could do these function:


1-detect the motion so we will get different light alarm a)no motion one led blinking.

b)detect motion three led blinking.

2-we can control the step-motor manual by joystick,also by remote control as following.

a)-Remote: -up->forward step motor

-down->backward step motor

-press(1)->turn the first light

-press(2)->turn the first and second light

-press(3)->turn the first ,second,third light

-press(#)->turn the fan ON

-press(*)->turn the fan OFF

b)joystick: as Left->backward.step motor

Right->forward.step motor

The aim of this project to make practice by using different sensors and use them in Arduino code.

As beginners or medium level in arduino i recommend to have knowledge about all the function and how you can

change the code as you need.


In this project we need the following:


2-fan 5 volt



5-3x leds

6-3x resisters 220Ohm

7-Arduino UNO/mega

8-IR sensor.

9-step driver.(for step motor).

10-Remote control.

NOTE:it's not important if you don't have all the components.(the idea is the important here).

II) NOW is the steps of connection

as it shown in the schematic we can connect ,or we can use as what i did in reality as this


-Joystick=A3 (X_PIN)

-Joyswitch=3 (B) written on the part pin





-FAN =PIN-2 (+)


III)The CODE part.

First,we have to upload the library to the program by

Sketch-->include library-->Add.ZIP library

## IR-library ##


you can download the code directly and change the pin as you put in your ARDUINO.

IV)Please if you have any questions your are welcome to ask me :)


LoesF (author)2016-02-22

Please anyone have any question ask me :)

salvobill (author)2016-02-06

Hi there,

I have downloaded the .ino file but during the verify I had this error:

Arduino: 1.6.7 (Windows 10), Board: "Arduino Nano, ATmega328"

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope

int RECV_PIN = TKD2; // the pin the IR receiver is connected to


exit status 1

Error compiling.

Could you help me to fix this error?

I like your project and I would like to mke it.

Thanks a lot

LoesF (author)salvobill2016-02-07

thank you that you like my project ,to solve this error

1- make the program last version of Arduino software.

2-you should put and download all the library that i mention,then add them to your software.

hope that will solve your problem

tomatoskins (author)2016-02-04

Really cool! Thanks for sharing!

LoesF (author)tomatoskins2016-02-04

Thank you ?

About This Instructable




More by LoesF:Smart House
Add instructable to: