# Smart House

1,932

43

5

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.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: 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:

I)

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:

1-joystick

2-fan 5 volt

3-step-motor

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

**IN THE PICTURES WE CLARIFY THE CONNECTION**

-Joystick=A3 (X_PIN)

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

-LED1=PIN-8

-LED2=PIN-9

-LED3=PIN-10

-PIR SENSOR=PIN-13

-FAN =PIN-2 (+)

III)The CODE part.

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

## IR-library ##

https://github.com/z3t0/Arduino-IRremote

## STEP MOTOR EXPLAIN ##.

https://www.arduino.cc/en/Tutorial/StepperSpeedCon...

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 :)

## Recommendations

• ### Internet of Things Class

22,821 Enrolled

## 5 Discussions

Please anyone have any question ask me :)

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