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

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.

LETS START WITH PROJECT :).

In this project we need the following:

1-joystick

2-fan 5 volt

3-step-motor

4-breadbord

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 (+)

-RECEIVER=PIN-11

III)The CODE part.

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

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

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