Matlab Coding animation required

profilealaaaaa
WeeklyReport1.docx

Running head: MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES

MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES 1

PROJECT TITLE:

AUTOMATED CAR PARKING INDICATOR SYSTEM

WEEK 1 REPORT 2018

ABSTRACT

For this project, we will be designing a motion sensor system inside a parking garage, to indicate how many parking slots are available. Therefore, the main idea behind this project is to solve the issue of parking and make it as easy and stress-free as possible for (student) commuters who make use of the University Student Center Parking Garage in Morgan State University by using motion sensors to notify and alert drivers about how many parking slots are available within the garage. If there are available slots on any level, the proposed sensors will turn green but if the parking slot is filled or that level of the garage has no empty slots, the sensors will turn red. Among other critical areas to be addressed throughout the paper is how the sensor system function and how MATLAB can be utilized in this project.

The proposed parking areas has the following components:- There are a total of 72 parking slots in each floor 6 of them for compact cars, and 2 handicaps. Furthermore, the parking garage has a total of 5 floors, meaning we will have a total of 72 x 5 = 360 parking slots. For the whole parking garage, the compact cars slots will have the following dimensions length 14 ft Width 8 ft. Lastly, the regular car slots will have dimensions of a length 16 ft by a width of 8 ft.

University Student Center

INTRODUCTION

Currently, garages and parking lots have shown a great improvement in terms of using motion sensors in detecting and monitoring the number of vehicles moving in and out of their environs. Use of motion sensors have resulted to a great improvement in terms of driver and pedestrian safety within parking garages and parking lots. Motion sensors or detectors serve as the linchpin of security system across garages and parking lots since it detects the number of vehicles moving in and out of the parking lots (Chavez, 2018).

Note that, motion sensor utilizes one or multiple technologies in detecting and monitoring movement of vehicles within an area. When sensors are tripped, a quick signal is transferred to the security system-control panel thus alerting you about a new vehicle moving in or out of the parking lots. Most of these motion sensors are designed in a way to detect the exact number of vehicles required in the garage parking lots (Chavez, 2018). So, in a situation where the parking lot is full, the motion sensors will indicate to the driver that there is no parking space available. So, in terms of time consumption, motion sensors help to make parking less time consuming.

METHOD

Nearly all motion sensor systems are programmed with MATLAB to ensure accuracy in results and to avoid errors, congestion and uncertainties within the parking lot. The motion detector will be designed in such a way that it will be able to detect vehicles moving in based on their sizes. Drivers will then be guided by these sensors on which floor slot to park their vehicles ("Motion Detector Vernier", 2010). The proposed sensor will be using the idea behind functioning of both Passive Infrared (PIR) sensor and active infrared detectors. A PIR is an electronic sensor that measures infrared light radiating from objects in its field of view, in which the moving cars are the objects in view. These sensors are capable of detecting changes in the infrared-radiation thus triggering an alarm and a lighting notification to guide drivers on which floor and where to park. PIR sensors have to be connected to one of the digital-input pins of the Raspberry Pi-hardware. When PIR sensor detects vehicle motion moving in to the parking lot, it outputs a logic-high-value displaying a green light with the floor and parking lot available.

Also, when PIR sensor detects vehicle motion moving out of the parking lot, it outputs a logic-low-value displaying a red light with respective details of the vehicle which has just left the parking. PIR detectors are designed with high magnification cameras for taking images on vehicles leaving and moving in to the parking lots. Such images are used for security purposes such as controlling vehicle theft cases in parking lots ("Motion Detector | Vernier", 2010). The following is a representation of a simple PIR sensor for monitoring vehicle flow in and out of the parking lots.

You

INFORMATION ABOUT PARKING GARAGE

The above PIR motion sensor will be placed at the main gate. Using the concept of MATLAB, all floors will be programmed using a wireless connection to the motion sensors. The system of study which is the proposed parking areas has the following components:

· There are a total of 72 parking slots

· On each floor, 6 of of the slots are for compact cars, and 2 for handicapped drivers.

· The garage has a total of 5 floors, meaning there are a total of 360 parking slots.

For the whole parking garage, the compact cars slots will have the following dimensions

· length = 14 ft

· Width = 8 ft.

Lastly, the regular car slots will have the following dimensions - length = 16 ft - width = 8 ft.

Therefore, the above information will be inputted on the MATLAB program and connected to the motion detector to determine the available slots in each of the parking lot ("Motion Sensors - Honeywell Security Group", 2010). Immediately a vehicle leaves the parking lot, the available slot will be recorded on the MATLAB program and set ready for the next car.

MATLAB

MATLAB Programming operates hand-in-hand with the motion sensor system by identifying the empty parking lots and sharing the parking conditions data with the motion sensors. For example, MATLAB programming monitors both occupied and empty parking slots in all floors. Furthermore, it monitors and tracks information about the number of vehicles leaving and moving in to the parking slots. The following images represents MATALAB information about parking slots in different floor ("Motion Sensors - Honeywell Security Group", 2010).

Figure: MATLAB parking slots that are occupied and empty

SUMMARY OF ACTIVITIES

In the first week, we have been able to accomplish the following tasks:

· Defined the problem.

· Defined the system of study (parking lot garage).

· Defined the method to solve the problem.

For the upcoming week, the plans are as follows:

· Generate a graph of a parking lot in MATLAB

· Identify graph by x and y coordinates and use matrices.

For the upcoming week, the plans are as follows:

· Convert the command codes to M-files

REFERENCES

Chavez, W. (2018). Application of MATLAB in motion sensors. London: ETP.

Motion Detector | Vernier (2010). Retrieved from https://www.vernier.com/products/sensors/motion-detectors/md-btd/

Motion Sensors (2010)- Honeywell Security Group. Retrieved from https://www.security.honeywell.com/hsc/products/intruder-detection-systems/sensor/motion/

http://www.ijste.org/articles/IJSTEV2I4038.pdf

>> rectangle('Position',[1,1,8,14])

>> axis([0 20 0 20])

>> axis([0 100 0 100])

>> rectangle('Position',[9,1,8,14])

>> rectangle('Position',[17,1,8,14])

>> rectangle('Position',[25,1,8,14])

>> rectangle('Position',[1,1,8,14],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[9,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> axis([0 50 0 16])

>> rectangle('Position',[17,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[17,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> title(‘Sample COmpact Parking Slots’)

SECOND GRAPH

>> rectangle('Position',[1,1,75,35])

>> rectangle('Position',[1,1,8,14])

>> rectangle('Position',[9,1,8,14])

>> rectangle('Position',[17,1,8,14])

>> rectangle('Position',[25,1,8,14])

>>

>> rectangle('Position',[1,1,8,14],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[9,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[17,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[17,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> title('Sample COmpact Parking Slots')

>> rectangle('Position',[33,1,8,14])

>> rectangle('Position',[41,1,8,14])

>> rectangle('Position',[49,1,8,14])

>> rectangle('Position',[25,1,8,14],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[33,1,8,14],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[41,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[1,20,9,16])

>> rectangle('Position',[9,20,9,16])

>> rectangle('Position',[1,1,75,41])

>> axis([0 85 0 45])

>> rectangle('Position',[1,26,9,16])

>> rectangle('Position',[10,26,9,16])

>> rectangle('Position',[19,26,9,16])

>> rectangle('Position',[28,26,9,16])

>> rectangle('Position',[37,26,9,16])

>> rectangle('Position',[46,26,9,16])

>> rectangle('Position',[1,26,9,16],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[10,26,9,16],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[19,26,9,16],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[28,26,9,16],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[37,26,9,16],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>> rectangle('Position',[46,26,9,16],'FaceColor',[0.6 0 0], 'EdgeColor','b')

>> rectangle('Position',[49,1,8,14],'FaceColor',[0 0.6 0], 'EdgeColor','b')

>>

https://www.mathworks.com/help/matlab/ref/figure.html

https://www.mathworks.com/help/matlab/ref/rectangle.html