Introduction: Remotely Controlled Safe House

Picture of Remotely Controlled Safe House

Abstract:

The concept of a safe and secure house has originated from the misery that people face due to theft or unauthorized access. The project consists of a safe house and a server control room. The client house consists of a passkey based entry system. The entry to the house is granted by the control room upon correct entry of the passkey. The door is equipped with one LDR and an LED to know the door status. The control room also receives live temperature reading from the safe house. An AC bulb placed in the safe house can also be controlled from the control room. The control room simply consists of an LCD display and a joystick. Both the control room and the safe house are connected to a router.

Note: In this project, both the devices are connected to the same router for simplicity. To access an IP address on a different network/ through Internet, ‘port forwarding’ needs to be done.

This project is divided into two parts.

i) Safe House

ii) Control Room

Step 1: Safe House: Components Required

  1. Arduino UNO R3 x 1
  2. USB cable x 1
  3. Arduino UNO Ethernet Shield x 1
  4. Ethernet cable 1.5m x 1
  5. Breadboard x 1
  6. 4x3 Matrix Numeric Keypad x 1
  7. Micro Servo motor x 1
  8. A/C LED Bulb with holder x 1
  9. Relay module - 5V 220V 10A x 1
  10. DHT11 Temperature sensor x 1
  11. 5mm LED x 1
  12. LDR x 1
  13. Resistor 220Ω x 1
  14. Resistor 8.2KΩ x 1
  15. A/C male plug x 1
  16. Multi-core A/C wire 2m x 1
  17. Jumper Wires Male - Male (M-M) x 40
  18. Jumper Wires Male - Fe-Male (M-F) x 40

Step 2: Connecting LED and 220 Ω Resistor

Picture of Connecting LED and 220 Ω Resistor

5mm LED:

LED is expanded as Light emitting Diode. The main function of Diode is that it allows the current to flow in one direction only. The LED has two terminals:

1. Positive Terminal: The longer leg of the LED is positive

2. Negative Terminal: The shorter leg of the LED is negative

220 Ω resistor:

This fixed resistor is used to protect the LED from high current flow. This resistor provides a voltage a voltage drop and reduces high current from passing through the LED.

Circuit Connections:

  1. Place the Ethernet shield on top of Arduino UNO R3.
  2. Connect one M-M jumper wire from 5V pin of the Ethernet Shield to the top horizontal row of the breadboard (Henceforth referred as 5V line).
  3. Connect an M-M jumper wire from GND pin of the Ethernet Shield to the second horizontal row of the breadboard (Henceforth referred as GND line).
  4. Ensure that the entire horizontal row is getting the 5V supply by connecting jumper wire in the same row as shown in the figure.
  5. Ensure that the entire horizontal row is getting the GND supply by connecting jumper wire in the same row as shown in the figure.
  6. Connect an M-F jumper wire from the 5V line of the breadboard to the anode of the LED.
  7. Connect an M-F jumper wire from the cathode of the LED to the any vertical column of the breadboard.
  8. Place the 220 Ω resistor on the breadboard with one pin of the 220Ω resistor connected to the column where cathode of the LED is connected.
  9. Connect an M-M jumper wire from the other end of the resistor to the GND line.

Step 3: Connecting LDR and 8.2K Ω Resistor

Picture of Connecting LDR and 8.2K Ω Resistor

LDR:

LDR is expanded as Light Dependent Resistor. Depending upon the intensity of light projected to the surface of an LDR, it changes its resistance value. The value of resistance changes from few Ω under sufficient light condition to few Mega Ω under dark conditions.

8.2K Ω resistor:

This fixed resistor is used to build a voltage divider circuit. Using the correct resistor aids in obtaining the required sensitivity needed for this project.

Circuit Connections:

  1. Place the 8.2k Ω resistor on the breadboard.
  2. Connect an M-M jumper wire from the 5V line to one pin of the 8.2K Ω resistor.
  3. Connect an M-M jumper wire from the other pin of 8.2K resistor to pin A4 of the Ethernet Shield.
  4. Connect an M-F jumper wire from the other pin of 8.2K resistor to the LDR.
  5. Connect an M-F jumper wire from the other pin of the LDR to the GND line.

Step 4: Interfacing the 4x3 Matrix Numeric Keypad

Picture of Interfacing the 4x3 Matrix Numeric Keypad

4x3 Matrix Numeric Keypad:

A 4x3 Matrix Numeric Keypad consists of 12 keys. The twelve keys include ten numbers from 0-9 and two special characters such ‘*’ and ‘#’. There are seven pins on the keypad. Four pins represents four rows and the remaining three pins corresponds to three columns. All the pins are connected to the digital pins of the microcontroller/ microprocessor.

Circuit Connections:

  1. Connect an M-M jumper wire from Pin 8 of the Ethernet Shield to Pin 1 of the Keypad.
  2. Connect an M-M jumper wire from Pin 7 of the Ethernet Shield to Pin 2 of the Keypad.
  3. Connect an M-M jumper wire from Pin 6 of the Ethernet Shield to Pin 3 of the Keypad.
  4. Connect an M-M jumper wire from Pin 5 of the Ethernet Shield to Pin 4 of the Keypad.
  5. Connect an M-M jumper wire from Pin 4 of the Ethernet Shield to Pin 5 of the Keypad.
  6. Connect an M-M jumper wire from Pin 3 of the Ethernet Shield to Pin 6 of the Keypad.
  7. Connect an M-M jumper wire from Pin 2 of the Ethernet Shield to Pin 7 of the Keypad.

Step 5: Interfacing Servo Motor

Picture of Interfacing Servo Motor

Servo Motor:

A servo motor is a rotary actuator that allows for precise control of angular position. It consists of a motor coupled to a sensor for position feedback. By varying the pulse width of the output voltage to a servo, you can move a servo to a specific position. The servo motor has three pins. The darkest wire is the GND pin. The lightest wire is the VCC pin. Finally, the last one is the control pin.

Circuit Connections:

  1. Connect the orange wire of the servo to Pin 9 of the Ethernet Shield.
  2. Connect the red wire of the servo to 5V line on the breadboard.
  3. Connect the brown wire of the servo to the GND line of the breadboard.

Step 6: Connecting the DHT11 Temperature

Picture of Connecting the DHT11 Temperature

DHT11 Temperature and Humidity Sensor:

DHT11 sensor is a relatively accurate sensor for measuring temperature and humidity. This sensor has four pins. The first pin on left is VCC while the last two pins are separate GNDs. The second pin is the data pin.

Circuit Connections:

  1. Connect an M-M wire from the VCC pin of DHT11 to the 5V line of the breadboard.
  2. Connect an M-M wire from the GND pin of DHT11 to the GND line of the breadboard.
  3. Connect an M-M wire from the data pin (second pin) of DHT11 to A5 pin of the Ethernet Shield.

Step 7: Connecting Relay and Bulb

Picture of Connecting Relay and Bulb

Relay Module:

A Relay Module is a device used to switch on/off another device based on a control signal. Relay a VCC, GND and Signal pin on one side of the module. On the other side, relay contains 3 pins which says COM (Common), NC (Normally Closed) and NO (Normally Open).

Circuit Connections:

  1. Connect an M-F wire from the VCC pin of the relay to the 5V line of the breadboard.
  2. Connect an M-F wire from the GND pin of the relay to the GND line of the breadboard.
  3. Connect an M-F wire from the signal pin of the relay to Pin A1 of the Ethernet Shield.
  4. Connect the A/C plug with A/C multi-core wire.
  5. Connect the other end of the wire to the bulb.
  6. Cut open the neutral wire and connect one end to Common point and the other end to NC point.

Step 8: Upload the Arduino Sketch

Step 9: Reference Images for Construction

Picture of Reference Images for Construction

Step 10: Control Room: Components Required

  1. Arduino UNO R3 x 1
  2. USB cable x 1
  3. Arduino UNO Ethernet Shield x 1
  4. Ethernet cable 1.5m x 1
  5. Breadboard x 1
  6. 16x2 LCD Module x 1
  7. Joystick module x 1
  8. Wi-Fi - Router x 1
  9. Resistor 220Ω x 1
  10. Potentiometer 10K Ω x 1
  11. Jumper Wires Male - Male (M-M) x 40
  12. Jumper Wires Male - Male (M-F) x 40

Step 11: Interfacing 16x 2 LCD Display, 10KΩ Potentiometer and 220Ω

Picture of  Interfacing 16x 2 LCD Display, 10KΩ Potentiometer and 220Ω

16x2 LCD Module

The LCD is expanded as Liquid Crystal Display. The module used in this project is a monotone display. It has two rows and 16 columns. Hence, total of 32 characters can be displayed at a time. The contrast of the display is controlled by the 10K Ω potentiometer. The display also possess a backlight feature.

Circuit Connections:

  1. Place the Ethernet shield on top of the Arduino UNO.
  2. Connect M-F jumper wires from all the pins of LCD module to the breadboard.
  3. Connect an M-M jumper wire from 5V pin of the Ethernet shield to one of the horizontal rows of the breadboard.(Henceforth referred as 5V line)
  4. Connect an M-M jumper wire from GND pin of the Ethernet shield to another horizontal rows of the breadboard.(Henceforth referred as GND line)
  5. Connect an M-M jumper wire from the GND pin of the LCD to the GND line of the breadboard.
  6. Connect an M-M jumper wire from the VCC pin of the LCD to the 5V line of the breadboard.
  7. Place the 10K Ω potentiometer on the breadboard.
  8. Connect an M-M jumper wire from the CONTRAST pin of the LCD to the wiper pin of the potentiometer.
  9. Connect an M-M jumper wire from one pin of the potentiometer to the GND line.
  10. Connect an M-M jumper wire from the last pin of the potentiometer to the 5V line.
  11. Connect an M-M jumper wire from the RS pin of the LCD to Pin 7 of the Ethernet Shield.
  12. Connect an M-M jumper wire from the RW pin of the LCD to GND pin of the LCD.
  13. Connect an M-M jumper wire from the EN pin of the LCD to Pin 6 of the Ethernet Shield.
  14. Connect an M-M jumper wire from the D4 pin of the LCD to Pin 5 of the Ethernet Shield.
  15. Connect an M-M jumper wire from the D5 pin of the LCD to Pin 4 of the Ethernet Shield.
  16. Connect an M-M jumper wire from the D6 pin of the LCD to Pin 3 of the Ethernet Shield.
  17. Connect an M-M jumper wire from the D7 pin of the LCD to Pin 2 of the Ethernet Shield.
  18. Place the 220 Ω resistor on the breadboard such that one pin is connected to BACKLIGHT (+) pin of the LCD and the other end is connected to the 5V line.
  19. Connect a M-M jumper wire from the BACKLIGHT(-) pin of the LCD to the GND line. (or to the GND line in which one pin of potentiometer is connected )

Step 12: Interfacing Joystick With the Ethernet Shield

Picture of Interfacing Joystick With the Ethernet Shield

Joystick:

The Joystick module comes with five male header pins. The Joystick can be pushed in all the four directions and it also contains a switch which can be pressed when the Joystick is in its initial position. It primarily needs a 5V supply and GND. Of the remaining three pins, Xval pin represents the horizontal Joystick movement while the Yval represents the vertical movement of the Joystick. Finally, the SW pin gives a certain value when the switch is pressed.

Circuit Connections:

  1. Connect an M-F jumper wire from the GND pin of the Joystick to the GND line of the breadboard.
  2. Connect an M-F jumper wire from the VCC pin of the Joystick to the 5V line of the breadboard.
  3. Connect an M-F jumper wire from the Xval pin of the Joystick to the A0 pin of the Ethernet Shield.
  4. Connect an M-F jumper wire from the Yval pin of the Joystick to the A1 pin of the Ethernet Shield.
  5. Connect an M-F jumper wire from the SW pin of the Joystick to the A2 pin of the Ethernet Shield.

Step 13: Upload the Arduino Sketch

Step 14: Reference Images for Construction

Picture of Reference Images for Construction

Step 15: ​Final Steps:

  1. Connect Safe House Ethernet Shield to the router with an Ethernet cable.
  2. Connect Control Room Ethernet Shield to the router with an Ethernet cable.
  3. Upload respective sketches to both the Arduino boards.

That’s it, power up the entire setup and you are good to go.

Comments

About This Instructable

93views

5favorites

License:

Bio: Technomentis is a venture to foster innovation and hands on learning for youngsters at formative ages. We explore, create, design, tinker and innovate at Explorato ... More »
More by Explorato_Technomentis:MQTT Based Fire Detection SystemHow to Read Arduino Sensor Data on Android App Using BluetoothAutomated Garbage Collector
Add instructable to: