- Toggle your lamp on and off.
- Open your door with a pattern.
- Tweet a picture if the entered pattern is not correct.
- Control your window using the slider.
How can you simply make all these things !? using 1Sheeld and any Arduino board and other peripherals you can connect your house to your smartphone.
Shields used from 1Sheeld application:
- Camera
- Pattern
- Push Button
- Slider
Step 1: Gather your components, and connect the hardware as shown in the hardware section diagram.
Step 2: Download all code files and put them in one folder with the name 'Home Automation' the upload it to you Arduino board.
Step 3: Install 1Sheeld android application and connect with your smartphone via Bluetooth. You may use 1Sheeld's getting started page to help with this step.
Step 4: Activate all of the needed shields then start testing your project using:
- Push button shield to toggle your lamp state.
- Slider shield to position the window.
- Pattern shield to open the door.
Correct pattern: Green LED should light up.
Incorrect pattern: Green LED is off and a capture from the front camera with the caption 'Robber' is tweeted.
Warnings:
- Check that your are logged in with your account in the twitter shield.
- The tweeted picture maybe the second last picture not the last.
Step 5: Customize it to go with your own preferences
- Change stored pattern from this line of code. Each element indicates a node the first number is the row number and the second is the column number just like a matrix.
PatternNode patternStored[] = { {2,0}, {1,1}, {0,2}, {1,2}, {2,2} };
Comments