Arduino Smart Home Automation
System Diagram
Hardware Feature
- 8 Digital Output Control
- 4 Analog Input Sensor
- Control via TCP/IP or Internet
- Control with Web Browser or Android App
Software Feature
- Arduino Web Server TCP/IP ( LAN )
- Set your device name and sensor name
- Sensor Control Output Automatically.
- Set your IP Address and port
- Real time status
Hardware Device
- Arduino MEGA Board or compatible board.
- Ethernet (WIZnet 5100) Shield
- Relay Board
- Light Sensor or Motion Sensor or other
Wiring Diagram
Device1 Arduino
Output PIN 2
Device2 Arduino
Output PIN 3
Device3 Arduino
Output PIN 4
Device4 Arduino
Output PIN 5
Device5 Arduino
Output PIN 6
Device6 Arduino
Output PIN 7
Device7 Arduino
Output PIN 8
Device8 Arduino
Output PIN 9
Analog Input Sensor1
- Arduino PIN A0 to Control Output 5
Analog Input Sensor2
- Arduino PIN A1 to Control Output 6
Analog Input Sensor3
- Arduino PIN A2 to Control Output 7
Analog Input Sensor4
- Arduino PIN A3 to Control Output 8
Android App. ( Free Version )
Control With Web Browser
If you don’t want use android app. You can control with Web
Browser also.
or Web Browser on Mobile Device.
or Web Browser on Mobile Device.
Arduino WebServer Source Code
http://www.softpowergroup.net/files/Arduino/WebServerControl.zip
Code for Active Low Relay Output
http://www.softpowergroup.net/files/Arduino/WebServerControl_ActiveLow.zip
Original Code
Code for Active Low Relay Output
http://www.softpowergroup.net/files/Arduino/WebServerControl_ActiveLow.zip
Original Code
Mirror Site : http://android-arduinocontrol.blogspot.com/2014/08/android-arduino-smart-home-automation.html
Install and Testing in Home
Some Problem about IP Address
I use TP-Link Wireless Router so it give gateway to 192.168.0.1
Then I use IP Address for Arduino Code to 192.168.0.199
IF YOUR GATEWAY NOT THE SAME MY GATEWAY.
YOU NEED CHANGE YOUR ARDUINO CODE For IP ADDRESS.
see below...
#include <SPI.h>
#include <Ethernet.h>
//
Define measurement variables
float
amplitude_current;
float effective_value;
float effective_voltage = 230; //
Set voltage to 230V (Europe) or 110V (US)
float effective_power;
float zero_sensor;
//
Variables to be exposed to the API
int power;
//
Enter a MAC address and IP address for your controller below.
//
The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD,
0xBE, 0xEF, 0xFE, 0x2D };
byte gateway[] = { 192,
168, 0, 1 }; // Your Gateway
byte subnet[] = { 255,
255, 255, 0 }; //
IPAddress ip(192,168,0,199); // Your IP Address
My Website
http://softpowergroup.net/
email : info@softpowergroup.net Tel .081-6452400
Google+ https://plus.google.com/+SoftpowergroupNetThailand/
My Blog
Raspberry Pi Project