* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download design_review
Spark-gap transmitter wikipedia , lookup
Electrification wikipedia , lookup
Ground (electricity) wikipedia , lookup
Electric power system wikipedia , lookup
Ground loop (electricity) wikipedia , lookup
Audio power wikipedia , lookup
Solar micro-inverter wikipedia , lookup
Brushed DC electric motor wikipedia , lookup
Electrical ballast wikipedia , lookup
Three-phase electric power wikipedia , lookup
Power engineering wikipedia , lookup
Power inverter wikipedia , lookup
Stepper motor wikipedia , lookup
Electrical substation wikipedia , lookup
Current source wikipedia , lookup
History of electric power transmission wikipedia , lookup
Distribution management system wikipedia , lookup
Pulse-width modulation wikipedia , lookup
Resistive opto-isolator wikipedia , lookup
Surge protector wikipedia , lookup
Power MOSFET wikipedia , lookup
Variable-frequency drive wikipedia , lookup
Stray voltage wikipedia , lookup
Schmitt trigger wikipedia , lookup
Power electronics wikipedia , lookup
Voltage regulator wikipedia , lookup
Buck converter wikipedia , lookup
Alternating current wikipedia , lookup
Immunity-aware programming wikipedia , lookup
Voltage optimisation wikipedia , lookup
Opto-isolator wikipedia , lookup
AUTOMATIC HOTEL CHECK-IN AND OUT SYSTEM Group 31 Design Review ECE 445 September 26, 2015 Tianyuan Feng Tingting Dang Yuncong Hao TA: Cara Yang 1 Table of content 1. Introduction 1.1 Statement of Purpose 1.2 Objectives 1.2.1 Goals & Benefits 1.2.2 Functions & Features 3 3 3 3 2. Design 2.1 Block Diagrams 2.2 Block Descriptions and Schematics 2.2.1 Overall Summary 2.2.2 User Interface 2.2.3 Microcontroller Module 2.2.4 Keypad Module 2.2.5 Speaker Module 2.2.6 Motor Module 2.2.7 LED Module 2.2.8 Power Module 2.3 Schematics of Overall System and Simulation 4 5 5 6 6 6 6 6 6 6 7 3. Requirements and Verification 3.1 Requirements & Verifications 3.1.1 Requirements Summary 3.1.2 Verifications Summary 3.1.3 Microcontroller Module 3.1.4 Keypad Module 3.1.5 Speaker Module 3.1.6 Motor Module 3.1.7 LED Module 3.1.8 Power Module 3.2 Tolerance analysis 3.3 Ethical Issues 16 16 17 18 18 18 18 18 18 18 19 4. Cost and Schedule 4.1 Cost Analysis 4.4.1 Labor 4.4.2 Parts 4.4.3 Grand Total 4.2 Schedule 20 21 21 21 22 Reference 23 2 1.0 Introduction 1.1 Statement of Purpose Traditionally, travelers have to go to front desk to do check-in and check-out process at hotel, which means hotels will need to pay extra money for hiring front desk employees for long working hours. Besides, it will increase the waiting time for travelers to get checked in especially during busy hours. Our project aims to solve this problem with an automatic hotel check-in and check-out system. Comparing to high cost automatic checkin system on market, our project will largely decrease the implementation cost budget in order to save money for hotels while save waiting time for travelers. 1.2 Objectives 1.2.1 Goals & Benefits: • Automatic check in and check out system with no need of front desk employees • Reduce hotel costs by hiring less employees working at front desk • Reduce guests waiting time to get checked-in 1.2.2 Functions & Features: • Wireless communicate between lock and PC • Input key code verification between PC and lock • Keypad for user input • Red LED light when entering wrong key input • Green LED light when entering correct key input • Beeping sound performing with wrong key input 3 2.0 Design 2.1 Block Diagrams As shown in Figure 1, the PC, which is the main controller and database, connects to the check-in/out terminal and locks. Inside the lock, there is a controller, which accepts keypad input, sent out signal to LED, speaker, and motor. There are a power source to supply the controller and motor. Figure 1. Block diagram of design 4 2.2 Block Descriptions a. User Interface The check-in/put terminal and the PC are the user interface, which is a pure program. Any PC, tablets are suitable for this part. b. Micro-controller Module This module is the “brain” of the entire circuit which is powered by our power unit. Micro-controller sends signal to and receives signal from PC through WIFI. It will get key input from keypad, and matching the input with the command and data it receives from PC. Then it will send out control signals to LED module, speaker module and motor module. c. Keypad Module Keypad is the input unit to the micro-controller, which collects key strokes from the user. It sends out the key input data from our user to our micro-controller to do data processing. d. Speaker Module The speaker gives out notify signals, such as correct passcode, wrong passcode and lower power. The speaker should be small and less power consumption. e. Motor Module Motor is the unit to actual open the lock, which drives the mechanism to open the door controlled by the controller. f. LED Module LED is the indicator of the circuit, which tell the correctness of the passcode. g. Power Module Power unit is a 12 voltage long term battery, which provides different voltage level to each module in the circuit via different voltage regulators. 5 2.3 Module Circuit & Simulation Result a.User Interface: The user interface implementation is pure software programming, software flow chart for this is attached below: b. Microcontroller Module Because of the special need of the WIFI connection, Taxes Instrument SimpleLink Wi-Fi CC3200 LaunchPad suits for this project. Taxes Instrument SimpleLink Wi-Fi CC3200 LaunchPad has a CC3200 chip, which is the industry's first single-chip Microcontroller with built-in Wi-Fi connectivity for the LaunchPad™ ecosystem. CC3200 LaunchPad communicate with PC through the on-board antenna, and use the on-board M4 processor to run the program stored in the on-board flash memory. The board has 11 general purpose input/output ports, which can read and send signals through. Figure 1 shows a photo of the CC3200 LaunchPad.with pin layout. 6 P1 P3 Dev Dev Pin# Pin# Signal Ref Signal 1 3.3V 5V 2 ADC_CH1 58 GND 3 UART0_RX 4 57 ADC_CH0 4 UART0_TX 3 60 ADC_CH3 5 GPIO 61 58* ADC_CH1 6 ADC_CH2 59 59* ADC_CH2 7 8 9 10 SPI_CLK GPIO I2C_SCL I2C_SDA 5 62 1 2 63 53 64 50 AUD_SYNC AUD_CLK AUD_DOUT AUD_DIN P4 P2 Dev Dev Signal Re PWM 2* Pin# Signal GND 1 Pin# PWM 1* 18 GPIO 2 PWM 17* 8 SPI_CS 3 PWM 64* 45 GPIO 4 CCAP/GPIO 21* RESET_OUT 5 CCAP/GPIO 18* 7 SPI_DOUT 6 GPIO 62* 6 SPI_DIN 7 GPIO 60* 21 GPIO 8 GPIO 16 55 GPIO 9 GPIO 17 15 GPIO 10 Fig1. CC3200 LaunchPad EVM Overview with pin layout In this project, 7 GPIO on the board will be used to read data from keypad. 1 GPIO will be used to signify the motor module, LED module, speaker module. Based on the data sheet, the power range for this board is from 2.1V to 3.8V, and the recommended voltage is 3.3V. The electronic characteristic is shown below at voltage supply=3.3V and temperature= 25°C. 7 GPIO Pins Except 29, 30, 45, 50, 52, and 53 (25°C) PARAMETER CIN Pin capacitance VIH High-level input voltage Low-level input VIL IIH IIL VOH VOL IOH IOL voltage High-level input Low-level input current current High-level output voltage (VDD = 3.0 V) Low-level output voltage (VDD = 3.0 V) Highlevel source current, VOH = 2.4 TEST CONDITIONS MIN NOM MAX 4 0.65 × –0.5 VDD pF VDD + 0.5 0.35V× 5 5 UNIT VDD 2.4 V V nA nA V 0.4 V 2-mA Drive 4-mA Drive 2 mA 4 mA 6-mA Drive 6 mA Low2-mA level Drive sink current, VOL = 0.4 4-mA Drive 2 mA 4 mA 6-mA Drive 6 mA 8 GPIO Pins 29, 30, 45, 50, 52, and 53 (25°C) PARAMETER CIN VIH Pin capacitance High-level input VIL voltage Low-level input IIH High-level input voltage IIL Low-level input current VOH High-level current output voltage (VDD= 3.0 V) VOL Low-level output voltage (VDD= 3.0 V) IOH IOL VIL Highlevel source current, VOH = 2.4 Lowlevel sink current, VOL = 0.4 nRESET TEST CONDITIONS MIN NOM MAX UNIT 7 0.65 ×–0.5 VDD VDD +0.35 0.5V × 50 50 VDD 2.4 0.4 pF V V nA nA V V 2-mA 4-mA Drive 6-mA Drive Drive 1.5 2.5 3.5 mA mA mA 2-mA 4-mA Drive 6-mA Drive Drive 1.5 2.5 3.5 mA mA mA 0.6 V The flowchart for implementing the software of the microcontroller is attached below: 9 Fig2. Microcontroller software implementation flow chart c. Keypad Module The Automatic Hotel Check-in and out system will use a 3×4 keypad as the input device of the door. When guests entering their passcode, the keypad sends the password signal to the microcontroller, and then send to PC for verification. There are 7 pins on the keypad board, which are connected to the microcontroller directly. The table below shows the code for each key on the keypad. 10 Figure3. Codes for the keypad (Grayhill’s series 96 keypad handbook, p.8) Note: Dots in the chart indicate connected terminals when switch is closed. Terminals are identified on the keyboard. d. Speaker Module Speaker takes the output from micro-controller as control signal. When the input key from the user didn’t match the key assigned from the front desk, the speaker gives out beeping sound as a reminder. The connecting circuit of our speaker circuit is attached below: Fig4. Speaker connection Circuit 11 e. Motor Module Motor, lock style solenoid, is the physical unit to open the lock. Solenoids of the locker are basically electromagnets: they are made of a big coil of copper wire with an armature (a slug of metal) in the middle. When the coil is energized, the slug is pulled into the center of the coil. This makes the solenoid able to pull from one end. Normally the lock is active so you can't open the door because the solenoid slug is in the way. Based on the data sheet, when 9-12V is applied, the door can be opened. The lock is designed for 1-10 seconds long activation time. The lock style solenoid is controlled by the output signal from microcontroller. The circuit for this module is shown below. When the input key code matches the data in the database, the controller sends out a high voltage from microcontroller to the base gate of the transistor. Thus, the circuit of solenoid is closed, and the voltage applies to solenoid. The door can be open. According to the datasheet of our lock, it requires large amount of current (600mA – 1200mA) to go through in order to open the lock. Our simulation shows that under a higher control signal within the range of 3-5 V, the current goes through is always beyond 600mA to get the lock open which meets our implementation requirements. The simulation diagram and connecting circuit is shown below: 12 Fig5. Motor connection circuit 13 Fig6. Motor current output result f. LED Module The lock use a Bi-color LED to indicate the status of the locker in the door. These show one color (red) when the password is wrong so the door is still locked and another color (green) when the password is correct so the door is unlocked. The control signal which deciding the color of the LED is coming from the micro-controller. The graph below shows the circuit for this module. Fig7. Control circuit of the Bi-color LED 14 Transistor T1 and T2 is used here as switch, driving the one half of Bi-color LED each in order to show the result come from the microcontroller. The transistor T1 stops conducting due to lack of forward bias. At the same time transistor T2 takes base bias voltage from the battery through resistor R1 and conducts. This allows the red half of bicolor LED1 to illuminate. Transistor T1 conducts when the positive voltage through resistor R3 is given to base of transistor T1and light up the green half of LED1. In conduction of transistor T1 transistor T2 turns off and vice-versa. Thus, when the logic from the microcontroller unit is high, the Bi-color LED is in green, when the logic from the Micro-control unit is low, the Bi-color LED is in red. e. Power Module The entire circuit inside the lock is powered by a 12V long-term battery. However, the requirement of the value of voltage for each device in our system is variable, so the DC/DC voltage regulator will be installed in the power circuit to step down the 12V voltage to the specific voltage. The ground line of the different values of voltages should be made common. Specifically, here are the power requirements for each component in the system: Devices Voltages CC3200 LaunchPad 3.3V Lock style solenoid 12V (9V - 12V) Bi-color LED 5V Speaker 5V (3V - 7V) The power supply for the motor module is directly come from the 12V long-term battery. The voltage will be stepped down to 5V by the regulator circuit in order to supply the power to Bi-color LED and Speaker. Furthermore, the voltage will be stepped down to 3.3V by the regulator circuit in order to supply the power to Micro-controller. The 15 regulator circuit contains LM78XX series regulator and two capacitors. Below is the circuit of the power circuit. Fig8. Fixed-Output Regulator (Fairchild’s LM78XX/LM78XXA handbook, p.19) 3. Requirements and Verification 3.1 Requirements & Verifications Requirement Verification Points 1. CC3300 LaunchPad 1. CC3300 LaunchPad 15 1) Power: Vdd=+3.3 ±0.5 V 1) Connect CC3300 LaunchPad to power, use multimeter to measure the voltage difference between the positive 2) Should connect to WIFI probe and negative probe of the source 3) Output low voltage should less than on the board. If the voltage difference is within 2.8 to 3.8, the LaunchPad works. 0.4V 3) Output high voltage should greater than 2.4V 2) Use the sample program provided to test the WIFI function of the board ( refer to the chip manuel) 3) Use the sample program provided to pull up the GPIO of the board ( refer to the chip manuel), then use multimeter to measure the voltage difference between the each GPIO and the ground probe on 16 board. If the GPIO voltage is greater than 2.4, the GPIO works correctly. 4) Use the sample program provided to pull up the GPIO of the board ( refer to the chip manuel), then use multimeter to measure the voltage difference between the each GPIO and the ground probe on board. If the GPIO voltage is greater than 2.4, the GPIO works correctly. 2. Keypad 2. Keypad 15 1) Output low voltage should less than 1) Press one key at a time. Measure the 0.35V output voltage of the 7 pins (positive probe at the pin, and the negative probe 2) Output high voltage should greater at ground on board), and check with the expected value referring to the keypad than 0.65V datasheet. The logic-0 voltage should less than 0.35 V. The logic-1 voltage should greater than 0.65 V. 2) Repeat the step for each key button. 3. LED 3. LED 1) Blue diode lit when output low voltage at logic-1(greater than 2.4V) 1) Give the LED a voltage of 2.4V, observe the lightening, if the green lit up, it works fine. 2) Red diode lit when output low voltage at logic-0 (less than 0.4V) 15 2) Give the LED a voltage of 0.4V, observe the lightening, if the red lit up, it works fine.to the data sheet. 4. Speaker 4. Speaker 1) Current go through Speaker should be with the range of 22+/- 5 mA. 1) Connect the speaker circuit as shown before in the circuit and simulation section. Apply DC voltage at 5 +/- 1V at the gate and use current meter measure the current at Q1 to make sure it's within the current range. 15 17 5. Motor 5. Motor 20 1) Current go through Motor should be 1) Connect the motor circuit as shown within 600mA to 900 mA for it to gets before in the circuit and simulation open. section. Apply DC voltage at 5 +/-1 V at the gate and use current meter measure the current go into the lock to make sure it's within the voltage range. 6. Power 6. Power 20 1) Supply 5V +/-0.25V at a minimum of 1) Place Digital Multimeter in parallel 1A +/- 0.25A. with the power source. Measure the voltage difference across the power source. The voltage should read 5V +/0.25V 2) Place Digital Multimeter in series with the power source and heating elements. Measure the current difference from the power source. The current should read 1A +/- 0.25A 3.2 Tolerance Analysis Our motor module and speaker module is controlled by the transistor driven control signal from our control unit. To make sure that there will be gate voltage around 3-5V at the MOSFET gate to turn on the switch in order to have enough current go through the lock (600mA-1200mA) and the speaker (25 +/-1 mA) to realize their functionality, we need to make sure that there is stable control signal sending from our microcontroller. From our research we found that the output signal from our microcontroller is within 5V+/- 25mV, which meets our requirements. And our microcontroller module requires stable power 5V supply input to drive. Our voltage regulator gives out supplying voltage at 5V +/- 0.25 V which also meets the requirements. 3.3 Ethical Issues 18 1. To accept responsibility in making decisions consistent with the safety, health, and welfare of the public, and to disclose promptly factors that might endanger the public or the environment; Our project aims to create a safe electric lock under low cost, which will help to create a safe living environment for our guests in the hotel. We’ll take our responsibilities to make the lock as reliable as possible in order to create this environment for our guests. 2. to seek, accept, and offer honest criticism of technical work, to acknowledge and correct errors, and to credit properly the contributions of others; While working on this project, we are open to accept all the comments and criticism from our peer workers and teaching assistants. Based on their feedback and recommendations, we modified our circuit and implementation. 3. to avoid injuring others, their property, reputation, or employment by false or malicious action; We will make sure that the electrical lock we developed in this project will create a safe living environment for the guests in the hotel and will not have malicious action under any situation to result in any injuries of the property and health of our guests and reputation damage of our hotels. 3.4 Safety Statement The goal for this project is to build an affordable, user-friendly and safety automatic hotel check-in and out system. In the steps of developing such a project, it is paramount that all steps involved should ensure the safety for both of the developer and the final user. There are several parts of potential dangerous should be noticed. The motor module part of the system contains the mechanical installation which may cause unintentional physical damage to the manipulator if it is not installed correctly. The final product must have a suitable case for this mechanical part to prevent the potential damage causing from the moving parts driven by the motor. The second part of the potential dangerous is coming from the power module. Though, the voltage of the power supply is not high enough to cause the directly damage to the human being. It may still harm the manipulator because of the high temperature coming form the regulator in the power circuit. In order to remove this potential dangerous, a radiator should be installed near each of the regulator. Finally, the user of this system should never be exposed to any of the circuit used in the design. The circuit will have some sharp edge that may cause cut and scratch. It should also have a suitable case to prevent the user directly contact with the circuit. During the installation and testing of the circuit, the developer should avoid the burning and lead exposure. In case of burning hurt, cold ice or cold water should be covered the scaled area immediately. Furthermore, an severe hurt by the circuit or mechanical device should cause a medical concern, emergency help should be called. 19 4.0 Cost and Schedule 4.1 Cost analysis 4.1.1 Labor Name Hourly Rate Total Hours Total (Hourly Rate *2.5* Total Hours) Yuncong $30 200 $15000 Tingting $30 200 $15000 Tianyuan $30 200 $15000 Total $45000 4.1.2 Parts Item Quantity Cost CC3200 LaunchPad 1 $40 Keypad 1 $10 LED 2 $3.43 Buzzer 1 $5.45 Motor 1 $14.95 Batteries 4 $15 20 Voltage Regulator 2 $5 4.1.3 Grand Total Section Total Labor $45000 Parts $110 Grand Total $45110 21 4.2 Schedule week Task 15-Sep work on preparing project proposal work on preparing project proposal Do Research on purchasing suitable parts 22-Sep Research and select microcontroller elements Finish up with design review Research and select Display, speaker and keypad elements 29-Sep Assemble Soc circuit for microcontroller User interface implementation Assemble power converter unites for the lock microcontroller intial test, test the signal sent and 6-Oct received from the microcontroller test signal sending from PC side test/improve 5V power supply stablity 13-Oct Finish up microcontroller test with real key code Finish up PC side signal sending test with real key code Signal Test after connecting PC side and microcontroller 20-Oct Assemble LED display & Keypad Assemble the lock with power supply, microcontroller work on the functionality of Speaker 27-Oct Individual Project report Individual Project report Individual Project report 3-Nov Assemble components together Prepare mock demonstration Assemble speaker with the lock 10-Nov Continue hardware test running & fixing Continue software test running & fixing Continue general test running & fixing 17-Nov Entire functionality test Entire functionality test Entire functionality test 24-Nov Fix any remainning issues Finalize design Finalize design 1-Dec Prepare final paper Prepare final paper Prepare final paper Responsibility Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan Yuncong Tingting Tianyuan 22 Power module (regulator): https://www.fairchildsemi.com/datasheets/LM/LM7805.pdf Keypad module: http://media.digikey.com/pdf/Data%20Sheets/Grayhill%20PDFs/96%20Series.pdf Bi-color LED : http://bestengineeringprojects.com/electronics-projects/all-in-one-tester-circuit/ Lock style solenoid https://learn.adafruit.com/remote-controlled-door-lock-using-a-fingerprint-sensor-andadafruit-io/setting-up-the-electronic-door-lock Speaker http://www.edaboard.com/thread272422.html 23