loading

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

<p>Please anyone have any question ask me :)</p>
<p>Hi there,</p><p>I have downloaded the .ino file but during the verify I had this error:</p><p>Arduino: 1.6.7 (Windows 10), Board: &quot;Arduino Nano, ATmega328&quot;</p><p>C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope</p><p> int RECV_PIN = TKD2; // the pin the IR receiver is connected to</p><p> ^</p><p>exit status 1</p><p>Error compiling.</p><p>Could you help me to fix this error?</p><p>I like your project and I would like to mke it.</p><p>Thanks a lot </p>
<p>thank you that you like my project ,to solve this error </p><p>1- make the program last version of Arduino software.</p><p>2-you should put and download all the library that i mention,then add them to your software.</p><p>hope that will solve your problem </p>
<p>Really cool! Thanks for sharing! </p>
Thank you ?

About This Instructable

1,482views

42favorites

License:

More by LoesF:Smart House  
Add instructable to: