smart safety door based on arduino uno r3

41
Porte à puce SMART SAFETY DOOR WITH SERVO MOTORS AS ACTUATORS, PASSCODE AND DHT SENSORS BASED ON MICROCONTROLLER ARDUINO UNO R3

Upload: ziddan-kundrat

Post on 15-Apr-2017

71 views

Category:

Engineering


7 download

TRANSCRIPT

Page 1: Smart Safety Door based on Arduino Uno R3

Porte à puceSM ART S AFETY DOOR WITH SERVO M OTORS AS ACTUATORS , PASSCODE AND DHT SENSORS

BASED ON M ICROCONTROLLER ARDU INO UNO R3

Page 2: Smart Safety Door based on Arduino Uno R3

Presented by group 6 Faqih Fadilla Ardiansyah (151611009)

Indri Meilani (151611)

Meifani (151611)

Ziddan Dea Kudrat (151611031)

From Refrigeration and Air Conditioning DepartmentPOLITEKNIK NEGERI BANDUNG

©2016

Page 3: Smart Safety Door based on Arduino Uno R3

SUPERVISOR : Mr. Muhammad Arman, S.T., M.Eng., S.PsiINSTRUMENTATIONS LECTURERS :

Mr. C. Bambang Kuncoro S.T., M.T.Mr. Eddi Erham, S.T., M.Eng.Mr. Ismail Welid, M.T.Mr. Ari Sujanto, S.T., M.T.

Page 4: Smart Safety Door based on Arduino Uno R3
Page 5: Smart Safety Door based on Arduino Uno R3

wiring of porte à puce

Page 6: Smart Safety Door based on Arduino Uno R3
Page 7: Smart Safety Door based on Arduino Uno R3

Photos Of Prototype Porte a Puce

Page 8: Smart Safety Door based on Arduino Uno R3

Design of Prototype Porte a Puce

Page 9: Smart Safety Door based on Arduino Uno R3

Open and Close The Door

Page 10: Smart Safety Door based on Arduino Uno R3

RH and Tdb Monitoring

Page 11: Smart Safety Door based on Arduino Uno R3

What the Purpose of the project?

As the Final Project to complete the requirement of Instrumentation Subject

As the geat step and lessons to improve hard skills and softskills

To apply the knowledge in instrumentation that have acquired during the lectures in class

Page 12: Smart Safety Door based on Arduino Uno R3

Where we found the Source of an ideas?

http://www.instructables.com/id/Arduino-door-lock-with-password/

http://www.open-electronics.org/arduino-door-lock-using-4x4-keypad-and-servo-motor/

http://belajarduino.blogspot.co.id/2014/07/sistem-pembuka-pintu-menggunakan.html

http://www.harisprasetyo.web.id/2015/10/membuat-sistem-keamanan-rumah-berbasis.html

http://at-moproduction.blogspot.co.id/2016/09/cara-membuat-password-menggunakan.html

Page 13: Smart Safety Door based on Arduino Uno R3

Description Porte à Puce is derived from the french words /Porte/ meaning /door/ and /puce/ meaning

/chip = the incredibly complex yet tiny modules that store computer memory or provide logic circuitry for microprocessors/.

So, Porte à Puce defined as the smart door with various useful fuction in simple circuit display.

The following spesification of Porte à Puce :

1. Security door with passcode and buzzer security alarm (To open the door password required, if the password is wrong, buzzer will on )

2. Monitoring RH and Tdb (RH and Tdb value will display on LCD 16 x 2)

3. Control Tdb (when the value Tdb reach the setpoint the door will open automaticaly to exhaust heat from the room)

Page 14: Smart Safety Door based on Arduino Uno R3

Schedule of execution

Page 15: Smart Safety Door based on Arduino Uno R3
Page 16: Smart Safety Door based on Arduino Uno R3

Working principles of porte à puce

Option Menu

A = Option for enter the passcode to open PORTE A PUCE

B = Option for display the relative Humidity of the room inside

C = Option for display the dry bulb temperature of the room inside

D = Option to close the door

* = Option to process after enter the passcode

# = Option to reset the previous pascode that had been entered

Page 17: Smart Safety Door based on Arduino Uno R3

Working principles of porte à puce

FLOWCHART

Page 18: Smart Safety Door based on Arduino Uno R3

What are main materials and tools needed to build Porte à puce?

Arduino UNO R3 as microcontrollerServo motor as an actuatorsI2C LCDHex Keypad 4x4 for ArduinoDHT SensorsRed and Green (or White) LED for Arduino as an indicatorsSome types of wiresContactorBread BoardProject BoardPC to upload the program to arduino and also could used as Power SupplyAnother support components and materials for prototype building design

Page 19: Smart Safety Door based on Arduino Uno R3

Arduino uno r3Features:

ATmega328 microcontrollerInput voltage - 7-12V14 Digital I/O Pins (6 PWM outputs)6 Analog Inputs32k Flash Memory16Mhz Clock Speed

Page 20: Smart Safety Door based on Arduino Uno R3

lcd 16 x2

Dimensions: PCB: 20mm x 35mm (0.8" x 1.4") Display area: 7mm x 25mm Thickness: 4mm

Page 21: Smart Safety Door based on Arduino Uno R3

I2c lcdFeatures :

Diagonal Screen Size: 0.91"

Number of Pixels: 128 × 32

Color Depth:Monochrome (White)

Module Construction: COG

Module Size (mm): 46.30× 11.50 × 1.45

Panel Size (mm): 30.00 × 11.50 × 1.45

Active Area (mm): 22.384 × 5.584

Pixel Pitch (mm): 0.175 × 0.175

Pixel Size (mm): 0.159 × 0.159

Duty: 1/32

Brightness ( cd/m2): 150 (Typ) @ 7.25V

Interface: I2C

Page 22: Smart Safety Door based on Arduino Uno R3

Servo MotorsServo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note that servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

Page 23: Smart Safety Door based on Arduino Uno R3

Dht11 sensorsspesification :Ultra low cost3 to 5V power and I/O2.5mA max current use during conversion (while requesting data)Good for 20-80% humidity readings with 5% accuracyGood for 0-50°C temperature readings ±2°C accuracyNo more than 1 Hz sampling rate (once every second)Body size 15.5mm x 12mm x 5.5mm4 pins with 0.1" spacing

Page 24: Smart Safety Door based on Arduino Uno R3

Hex Keypad 4x4 Hex key pad is simply an arrangement 0f 16 push button switches in a 4X4 matrix form. Typically a hex keypad will have keys for number 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and letters A, B, C, D, *, #. The hex keypad will have 8 connection wires namely R1, R2, R3, R4 and C1, C2, C3, C4 representing the rows and columns respectively. The schematic diagram and photo of a typical hex keypad is shown in the figure.

The program identifies the pressed key by a method called column scanning. In this method a particular row is kept low and other rows are held high. The the logic status of each column line is scanned. If a particular column is found low, then that means the key that comes in between that column and row is short(pressed). Then the program registers that key being pressed. Then the same procedure is applied for the subsequent rows and the entire process is repeated. For example if row 1 is kept low and column 1 is found low during scanning, then that means key”1″ is pressed.

Page 25: Smart Safety Door based on Arduino Uno R3

Buzzer or Piezoelectric speaker for arduino

A Piezoelectric speaker or buzzer is a loudspeaker that uses the piezoelectric effect for generating sound. The initial mechanical motion is created by applying a voltage to a piezoelectric material, and this motion is typically converted into audible sound using diaphragms and resonators.

Piezos have polarity, commercial devices are usually having a red and a black wires indicating how to plug it to the board. We connect the black one to ground and the red one to the output. Sometimes it is possible to acquire Piezo elements without a plastic housing, then they will just look like a metallic disc.

Page 26: Smart Safety Door based on Arduino Uno R3

LED A light-emitting diode (LED) is a two-lead semiconductor light source. It is a p–n junction diode, which emits light when activated. When a suitable voltage is applied to the leads, electrons are able to recombine with electron holes within the device, releasing energy in the form of photons. This effect is called electroluminescence, and the color of the light (corresponding to the energy of the photon) is determined by the energy band gap of the semiconductor.

Page 27: Smart Safety Door based on Arduino Uno R3

How much we spent the money to build porte à puce?

No Deskripsi Jumlah Harga (IDR) Keterangan

1 Arduino uno 1 160.000 Membeli

2 I2C Display 1 35.000 Membeli

3 Keypad 4x4 1 15.000 Membeli

4 Protoboard 1 40.000 Membeli

5 Motor servo 1 30.000 Membeli

6 Led merah 1 8.000 Membeli

7 Resistor 220 ohm 2 1.000 Membeli

8 Kabel jumper 30 - Tersedia

9 Buzer 1 15.000 Membeli

10 PCB 1 8.000 Membeli

11 Akrilik 30 x 30 (cm) - Tersedia

12 Engsel Pintu 4 5.000 Membeli

13 Kabel Male Female 40 30.000 Membeli

14 Mur dan Baut 20 - Tersedia

15 Timah Solder 1 roll 20.000 Membeli

16 Solder 1 - Meminjam

17 Mata Bor 1 7.500 Membeli

18 Bor 1 - Meminjam

19 Lem Kaca 1 12.500 Membeli

20 Kabel Male-Male 20 15.000 Membeli

26 Sensor DHT 1 36.000 Membeli

Total Rp. 443.000,00

Page 28: Smart Safety Door based on Arduino Uno R3

The listing programs of porte à puce

Page 29: Smart Safety Door based on Arduino Uno R3
Page 30: Smart Safety Door based on Arduino Uno R3
Page 31: Smart Safety Door based on Arduino Uno R3
Page 32: Smart Safety Door based on Arduino Uno R3
Page 33: Smart Safety Door based on Arduino Uno R3
Page 34: Smart Safety Door based on Arduino Uno R3
Page 35: Smart Safety Door based on Arduino Uno R3
Page 36: Smart Safety Door based on Arduino Uno R3
Page 37: Smart Safety Door based on Arduino Uno R3

Modification We include the function of the door not only as the automatic safety door from a burglar, but porte à puce is also the safety door from fire and extreme temperature by using :

The buzzer as the alarm if someone enter the wrong passcode, and also if fire or extreme temperature occurs

The DHT Sensors that could identify the relative humidity and temperature

We controll the door to open (servo to rotates for about 90 degrees) if the room temperature reach 35ºC

Page 38: Smart Safety Door based on Arduino Uno R3

CHALLENGE

CostIdea

Listing program

Design and Construction

Page 39: Smart Safety Door based on Arduino Uno R3

ConclutionWe live in an age where the crime rate is high, while technology has changed rapidly, the thief become a genius thief. So we must to be a genius too, increasing the level of security and safety is necessary, no more for manual, it’s time for automation.

Our Porte a Puce is right choice to increase our security system with low cost and worthed features.

Page 40: Smart Safety Door based on Arduino Uno R3

Hope for the futureMay this project could be useful for improvement of safety and security efforts in this automation era. We hope someday we could upgrade Porte a Puce with another features, by :

◦ Adding the fingerprint sensor, so only authorized people can access Porte a Puce for entry◦ Adding the fire sensors, gas sensor, Liquefied Petroleum Gas (LPG) sensor, and smoke sensor

to improve the safety functions. So, when the sensor detects the presence of fire, LPG, toxic & flamable gases and smoke, the buzzer will ring and the door will automatically open to rescue people inside.

◦ Implanting the chip inside Porte a Puce, to simplify the circuit display

Page 41: Smart Safety Door based on Arduino Uno R3