loading

I made it for learn how to use the sensors.
And i want to turns on/off my ventillator if im not at home.
So if im not at home than i can watch my room status.

Later i want to make E-mail notification.
If you access your Arduino's ip in router forwarding (port:80) then you can connect to your Website everywhere are u.

If you want to made it you need:

  • Arduino Microcontroller
  • Ethernet Shield
  • DHT11 sensor
  • 4x4 matrix keypad
  • Raindrop sensor
  • Relay
  • Gas sensor
  • IR Flame sensor

The web server example: http://startingelectronics.com/tutorials/arduino/e...

Step 1: Relay. How to Work?

How to connect my lamp to Relay?
You can see the picture, its easy.

Relay connect to Arduino?
Relay -> Arduino
VCC -> 5V
GND -> GND
IN1 -> Choose a Digital Input

Arduino Program code:

#define RELAY1  6                       // Relay in Digital input 6
void setup()
{
pinMode(RELAY1, OUTPUT);
}
void loop()
{
digitalWrite(RELAY1,LOW); // Relay turns on
delay(2000); // Wait 2 seconds
digitalWrite(RELAY1,HIGH); // Relay turns off
delay(2000); // Wait 2 seconds
}

Step 2: 4x4 Matrix Keypad. How to Work?

How to connect 4x4 Matrix KeyPad to Arduino?
First 4 pin: ( Connect to Digital inputs )
Its return back with the column number when you press a button.
The last 4 pin: ( Connect to Digital inputs )

Returns back with the row number.

byte colPin[4]={22,24,26,28};   // Column Pins
byte rowPin[4]={23,25,27,29};  // Rows Pins

Example:
You have a 4x4 matrix keypad.

char keys[4][4]=
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}};

If you press the 2nd column and 2nd row button.
The program is write out the '5' in the serial port.


For Example:

#include 
char keys[4][4]={ {'1','2','3','A'},
{'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'}}; byte colPin[4]={22,24,26,28}; byte rowPin[4]={23,25,27,29}; Keypad keypad=Keypad(makeKeymap(keys),rowPin,colPin,4,4); void setup() {
Serial.begin(9600);
pinMode(8, OUTPUT);
}
void loop() {
char pressed=keypad.getKey();
if(pressed) {
Serial.println(pressed); }
}

Step 3: DHT11 Sensor. How to Use?



How to read templature and humidity?

For Example:

#include 

dht11 DHT11; #define DHT11PIN 3

void setup() { Serial.begin(9600); }

void loop() { DHT11.read(DHT11PIN); // This method is reading new humidity and temperature. Serial.print(DHT11.humidity, 1); Serial.println(DHT11.temperature, 1); delay(1000); }

Step 4: Raindrop Sensor. How to Work?

How to connect the sensor with your Arduino?

OV -> Analog input
GND -> GND
VCC -> 5V

The Sensor Value:
The sensor is returns back with a value.
More than 1000: Its Dry
If less than 1000: its Wet

For Example:

void setup()
{
Serial.begin(9600);   
}
void loop() {
int sensorValue = analogRead(A0); // Its read a value. 
Serial.println(sensorValue);
delay(100);
}

Step 5: IR Flame Sensor. How to Work?

How to connect the sensor with your Arduino?
OV -> Analog input
GND -> GND
VCC -> 5V

The Sensor Value:
The sensor is returns back with a value.
About 900: Normal
If less: Detected Fire

For Example:

void setup()
{
Serial.begin(9600); }
void loop() {
int sensorValue = analogRead(A0); // Its read a value.
Serial.println(sensorValue); delay(100);
}

Step 6: MQ-2 Gas Sensor. How to Work?

How to connect the sensor with your Arduino?
OV -> Analog input
GND -> GND
VCC -> 5V

The Sensor Value:
The sensor is returns back with a value.
About 100: Normal
If more: Detected Gas

For Example:

void setup()
{
Serial.begin(9600);   
}
void loop() {
int sensorValue = analogRead(A0); // Its read a value. 
Serial.println(sensorValue);
delay(100);
}

Thanks for Watching!

<p>This report would have more information with<br> &quot;Show verbose output during compilation&quot;<br> enabled in File &gt; Preferences.<br>Arduino: 1.0.6 (Windows 7), Board: &quot;Arduino Uno&quot;<br>DHT11Test2.ino:1:10: error: #include expects &quot;FILENAME&quot; or &lt;FILENAME&gt;<br>DHT11Test2:3: error: 'dht11' does not name a type<br>DHT11Test2.ino: In function 'void loop()':<br>DHT11Test2:13: error: 'DHT11' was not declared in this scope</p>
<p>This is good.<br>I have been searching some application references in which WIZnet solution is applied, and found your project using Ethernet Shield.<br>In the Ethernet Shield WIZnet's W5100 chip is embedded.<br>If you are O.K. I'd like to post this article in WIZnet Museum (<a href="http://wiznetmuseum.com" rel="nofollow">http://wiznetmuseum.com</a>) for others.</p>
<p>Sure, thanks so much! do it :)</p>
<p>Hi, I am new to arduino, planning to make monitoring system for my home based on arduino, can you please post link of this project complete sketch including the webserver. Thanks</p>
<p>Hello, its so old project, i dont know where is my files :/ am sorry</p>
<p>Just link it to me :)</p>

About This Instructable

5,685views

33favorites

License:

More by vktomi:Arduino Web Server with sensors 
Add instructable to: