Adapted Home Entry System
Total Page:16
File Type:pdf, Size:1020Kb
Tanvir Rasel
Adapted Home Entry System:
The main idea behind designing the control system is to be able to step a voltage down to a useable level for the part that is being operated, and switching mechanism to be able to turn ON or OFF the component with the PIC microcontroller.
The components to be controlled by this control system are listed below.
1. Motor – To open and close door, must be able to rotate in both direction. 2. Clutch – located between the motor shaft and the direct connection to the door. The clutch engages when the door is being opened by the remote control, and remains disengaged at other times. 3. Electric Strike plate – The Electric strike plate enables the door to be locked and unlocked by the home entry system 4. Motion detectors – The motion detectors keep track of any one within the range of movements of the door. 5. Electromagnet (solenoid actuation) – The electromagnet is used to give the door an initial push to break the door seal. After which the motor takes over and opens and closes the door completely.
The precise timing and sequence of operation for each component can be better understood from the software flow chart.
Most components were tested on a breadboard for functionality with the circuit shown the control system diagram. The motor cut off switch needs to be tested further for functionality before implementing the design
All the components needed for this design is readily available from mouser or digikey.
Motor Cut off switch:
1. Assemble the circuit shown in the circuit diagram 2. Block the path between the diode and the base of the transistor and watch for the voltage output at the collector of the transistor.
Test Plan: 1. Can it be remote activated? Test: Test with a remote. Check whether open button and close button function properly. Press buttons when the door is not fully closed or opened.
Pass criteria: a. If the door is closed, pressing open button should open door and the close button does nothing. b. If the door is opened already, pressing open button reset the 45 second timer while the closed button closes door. c. The remote input should be ignored when door is already in operation.
2. Can it be manually operated? Test: Make sure the door can be opened manually any time, even when it is in remote operation.
Pass criteria: a. The door can open and close as it normally would. b. When the door is in remote operation, one should be able to use it manually by making the clutch disengage easily.
3. Does manual operation have higher priority than remote control? Test: Use the remote first, then use manual operation.
Pass criteria: a. When the door is in remote operation, one should be able to use it manually by making the clutch disengage easily. b. The motor should stop turning since the current spike tells the system that something is blocking the way. c. System should go into Reset state if the door is closing and goes to 45 second timer if door is opening.
4. Range of remote activation Test: Start from really far and start walking towards the receiver, keep clicking the remote and determine the distance where it starts to respond. (the receiver should be tested inside the enclosure to take the material into account. Pass criteria: a. The distance of activation should be at least 10 feet.
5. Number of independent remote inputs accepted at one time Test: First press the open button to allow the door to open, then press open and close button repeatedly. These inputs should be ignored
Test by pressing the open button or closing button while the door is not closed nor fully open in the starting loop.
First press the open button to allow the door to open, then use the second remote and press its buttons repeatedly. Press close and open buttons repeatedly while the door is closing. Pass criteria: a. In all cases, the controls should ignore the inputs.
6. Range of detection of object in door's path Test: Put terminals on the motion sensors. Then hook it up to an A/D converter and test with microcontroller. Run the program for the sensors.
Test under various temperature and humidity.
Pass criteria: a. The sensors shouldn’t pick up insignificant material such as snow or rain b. The sensors should pick up objects 2-3 meters away from the door.
7. Speed of the door Test: use a protractor and set a predetermined number of degree and see how long it takes the door to get there. Pass criteria: a. Speed of the door should be no greater than 19 degrees/sec
8. Time to fully open/close the door Test: Use a timer. Pass criteria: a. Make sure that the amount of time it takes the door to open from close is greater than 4 seconds.
9. Amount of time required for door to stay open Test: Use a timer, once the door is fully open, start timer. Pass criteria: a. Make sure the program does what it's suppose to do which is to keep the door fully open for 45 seconds, or else, reprogram the clock.
10: Force needed to stop the door during operation Test: Measure with any type of scale and mount it vertically with the door or use spring. Have one person push the scale while the door is opening and read the force that it takes for the clutch to disengage.
Pass criteria: a. The reading is less than 15 lbs. 11: Outer wire length
Test: Use a ruler to measure all outer wires.
Pass criteria: a. Total lengths of all outer wires should be less than 10 feet.
12: Operating temperature Test: Build the system and place the system in the box and measure the temperature in the box.
If the temperature is needed to be known before the entire system is put in the box, test individual components with heat sinks on them and single out major heat generators.
Pass criteria: a. Temperature inside the box should not exceed 70 degrees c.
13: Repair interval Test: Let the system run continuously for about 3 days after it's assembled.
Let major components run longer than a week before they are assembled to make sure they can be relied upon.
Put the component with the shortest working time on a list of components require maintenance sheet.
Pass criteria: a. Major components should not fail after 1 week of constant use. b. The entire system should not fail after 3 days of constant use.
14: Maintainence time Test: Measure the time it takes to replace all the components on the maintenance list after the system is assembled.
Pass criteria: a. The time should not exceed 30 minutes.
15: Scale of simplicity of instruction manual ( 1 being easy to understand and follow - 5 being hard)
Test: Let Michelle or a technician read the manual after it's made for them to judge. Edit as needed. Pass criteria: a. A score of less than 3 should be given by customer. 16: Noise level during operation
Test: Use a device to test for noise of system operation under quiet environment or when no one is there.
Pass criteria: a. Noise should be under 45 dB
17: Number of exposed wires
Test: Look at the number of wires sticking outside of the enclosure.
Pass criteria: a. Should be less than 4 wires.
PIC:
1. Connect the circuit shown in figure 8 on a bread board. 2. Connect a 24 Vdc measure the output voltage.
Pass criteria: 1. Voltage reading ~5.5V. 2. PIC turns on without burning out, and current is under the specified rating (under 250mA)
Motor: 1. Connect the motor control unit through DPDT and the Transistor. 2. Apply 5 and 0 V to the base of the transistor to simulate the I/O pin of the PIC. 3. Develop a Test program to change direction of the motor after a predefined time. 4. Connect the circuit to the microcontroller.
Pass Criteria: 1. Motor turns both directions. 2. The test software works as specified.
Current sensor and motor:
1. Connector the motor control to the motor through the Current sensor. 2. Measure the Vout from the current sensor. 3. Develop test software to read the output of the current sensor into the PIC.
Pass Criteria: 1. Motor turns off at when predefined reference point is reached. Clutch: 1. Build Clutch circuit on a bread board. 2. Apply 5 and 0 Volts to simulate the PIC I/O pin. 3. Watch for clutch engaging and disengaging. (measure the voltage and the current across the clutch) 4. Develop a test program to turn on/off the clutch with PIC microcontroller.
Pass criteria: 1. Correct voltage across the clutch. 2. When Potentiometer varies the voltage across output varies. 3. The test program can properly turn on and off the clutch.
Sensors: 1. Build the circuit for the sensors. 2. Apply the simulated I/O pins 3. Measure the output of the sensors for when motion is detected and not detected 4. Build the motor circuit. (without the current sensors) 5. Develop a test program to stop the motor when motion is detected 6. Connect the sensor circuit and the motor control circuit to the PIC.
Pass criteria: 1. Motor stops when motion is detected. 2. Voltage and current is within specification.
Electric Strike Plate: 1. Build Strike plate circuit on a bread board. 2. Simulate I/O pin voltage level with a power supply 3. Measure voltage and current across the load.
Pass criteria. 1. Electric strike plate actuates as desired.
These are some of the suggestions for testing. Any testing