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.
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.
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
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:
2-fan 5 volt
6-3x resisters 220Ohm
9-step driver.(for step motor).
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**
-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 ##
## STEP MOTOR EXPLAIN ##.
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 :)