Porte à puce

37
PORTE À PUCE Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors Based on Microcontroller Arduino Uno R3

Transcript of Porte à puce

Page 1: Porte à puce

PORTE À PUCESmart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors

Based on Microcontroller Arduino Uno R3

Page 2: Porte à puce

PRESENTED BY GROUP 6• Faqih Fadilla Ardiansyah• Indri Meilani• Meifani• Ziddan Dea Kudrat

From Refrigeration and Air Conditioning DepartmentPOLITEKNIK NEGERI BANDUNG

©2016

Page 3: Porte à puce

• SUPERVISOR : Mr. Muhammad Arman, S.T., M.Eng., S.Psi• INSTRUMENTATIONS 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: Porte à puce
Page 5: Porte à puce

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 7: Porte à puce

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.

Page 8: Porte à puce

SCHEDULE OF EXECUTION

Page 9: Porte à puce
Page 10: Porte à puce

WORKING PRINCIPLES OF PORTE À PUCE

Option MenuA = Option for enter the passcode to open PORTE A PUCEB = Option for display the relative Humidity of the room insideC = Option for display the dry bulb temperature of the room insideD = Option to close the door* = Option to process after enter the passcode # = Option to reset the previous pascode that had been entered

Page 11: Porte à puce

WORKING PRINCIPLES OF PORTE À PUCE

FLOWCHART

Page 12: Porte à puce

WHAT ARE MAIN MATERIALS AND TOOLS NEEDED TO BUILD PORTE

À PUCE?• Arduino UNO R3 as microcontroller• Servo motor as an actuators• I2C LCD• Hex Keypad 4x4 for Arduino• DHT Sensors• Red and Green (or White) LED for Arduino as an indicators• Some types of wires• Contactor• Bread Board• Project Board• PC to upload the program to arduino and also could used as Power Supply• Another support components and materials for prototype building design

Page 13: Porte à puce

ARDUINO UNO R3Features:

• ATmega328 microcontroller• Input voltage - 7-12V• 14 Digital I/O Pins (6 PWM outputs)• 6 Analog Inputs• 32k Flash Memory• 16Mhz Clock Speed

Page 14: Porte à puce

I2C LCD

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

Page 15: Porte à puce

DISPLAY DETAILS OF I2C LCDDisplay details:• 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• Display current draw is completely dependent on your usage: each OLED LED draws current when on so the more pixels

you have lit, the more current is used. They tend to draw ~15mA or so in practice but for precise numbers you must measure the current in your usage circuit.

• This board/chip uses I2C 7-bit address 0x3C

Page 16: Porte à puce

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.

Servo motors are great devices that can turn to a specified position. Usually, they have a servo arm that can turn 180 degrees. Using the Arduino, we can tell a servo to go to a specified position and it will go there. As simple as that! Servo motors were first used in the Remote Control (RC) world, usually to control the steering of RC cars or the flaps on a RC plane. With time, they found their uses in robotics, automation, and of course, the Arduino world.

Page 17: Porte à puce

DHT SENSORSDHT sensors is temperature & humidity sensors. These low cost sensors are very basic and slow, but are great for hobbyists who want to do some basic data logging. The DHT sensors are made of two parts, a capacitive humidity sensor and a thermistor. There is also a very basic chip inside that does some analog to digital conversion and spits out a digital signal with the temperature and humidity. The digital signal is fairly easy to read using any microcontroller. In this project we are using DHT11With spesification :• Ultra low cost• 3 to 5V power and I/O• 2.5mA max current use during conversion (while requesting data)• Good for 20-80% humidity readings with 5% accuracy• Good for 0-50°C temperature readings ±2°C accuracy• No more than 1 Hz sampling rate (once every second)• Body size 15.5mm x 12mm x 5.5mm• 4 pins with 0.1" spacing

Page 18: Porte à puce

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 19: Porte à puce

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 20: Porte à puce

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 21: Porte à puce

HOW MUCH WE SPENT THE MONEY TO BUILD PORTE À PUCE?

No Deskripsi Jumlah Harga (IDR) Keterangan 1 Arduino uno 1 160.000 Membeli2 I2C Display 1 35.000 Membeli3 Keypad 4x4 1 15.000 Membeli4 Protoboard 1 40.000 Membeli5 Motor servo 1 30.000 Membeli6 Led merah 1 8.000 Membeli7 Resistor 220 ohm 2 1.000 Membeli8 Kabel jumper 30 - Tersedia9 Buzer 1 15.000 Membeli10 PCB 1 8.000 Membeli11 Akrilik 30 x 30 (cm) - Tersedia12 Engsel Pintu 4 5.000 Membeli13 Kabel Male Female 40 30.000 Membeli14 Mur dan Baut 20 - Tersedia15 Timah Solder 1 roll 20.000 Membeli16 Solder 1 - Meminjam 17 Mata Bor 1 7.500 Membeli 18 Bor 1 - Meminjam 19 Lem Kaca 1 12.500 Membeli20 Kabel Male-Male 20 15.000 Membeli25 Terminal 1 5.000 Membeli26 Sensor DHT 1 36.000 Membeli

Total Rp. 443.000,00

Page 22: Porte à puce

WIRING OF PORTE À PUCE

Page 23: Porte à puce
Page 24: Porte à puce

THE LISTING PROGRAMS OF PORTE À PUCE

Page 25: Porte à puce
Page 26: Porte à puce
Page 27: Porte à puce
Page 28: Porte à puce
Page 29: Porte à puce
Page 30: Porte à puce
Page 31: Porte à puce
Page 32: Porte à puce
Page 33: Porte à puce

WE INCLUDE THE MODIFICATION TO 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 34: Porte à puce

CHALLENGE

CostIdea

Listing program

Design and Construction

Page 35: Porte à puce

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 36: Porte à puce

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 37: Porte à puce