MECH_314_Module_8_1_Lab

.docx

School

Embry-Riddle Aeronautical University *

*We aren’t endorsed by this school

Course

314

Subject

Mechanical Engineering

Date

Dec 6, 2023

Type

docx

Pages

13

Uploaded by ConstableTank9184

Report
LAB REPORT 8.1 Lab: Construct an Alarm System Using Motion Sensor by ______________________________________________ Jason L. Wilson Submitted to Dr. Yuetong Lin MECH 314 Submitted on October 1, 2023 Embry-Riddle Aeronautical University Worldwide
1.0 Purpose The purpose of this lab is to use a low-cost PIR Motion Sensor to detect motion using the digital input on your myDAQ device and then output an alarm sound using the audio output lines on your myDAQ device when connected to computer speakers. We will follow the three steps that have been summarized in the previous module for developing the system. First, wiring hardware. Second, activating the DAQ Assistant for device configuration, and finally, adding additional VI structures to automate the process. 2.0 Theory A Passive Infra-red motion sensor, also known as a PIR sensor, is a type of electronic device that detects motion by measuring changes in infrared radiation levels in its surrounding environment. It works by detecting the heat signatures of moving objects or people within a certain range. PIR sensors are commonly used in security systems, home automation, lighting systems, and other applications where motion detection is necessary. They are energy-efficient, easy to install, and highly reliable, making them a popular choice for both commercial and residential use. PIR sensors are widely available in the market and are affordable.
3.0 Equipment and Supplies The following items will be needed to complete this Lab: Laptop Microsoft Word NI LabVIEW 2023 Q3 Ni myDAQ Tool PIR Motion Sensor Speakers with capable audio in/out jack 4.0 Observations/Measurements 4.1.0 Given The PIR Sensor requires a +12VDC power supply and GND connection to function properly. Additionally, the output of the PIR Sensor is a digital signal (True/False) that usually operates at a voltage of 5V or lower. Some sensors may have built-in voltage regulation circuits that can handle higher voltage inputs, but it is always recommended to verify the specifications of the particular sensor being used and follow the recommended voltage ranges to avoid damaging the sensor or other components in the circuit. Figure 1 has been given to show how to wire the PIR sensor and the speaker accordingly to the myDAQ tool.
Figure 1: Wiring PIR Sensor and Speaker to myDAQ The numeric control for the frequency of the alarm sound allows the user to set the frequency of the sound produced by the PIR motion sensor. This can be useful in situations where there are multiple sensors in close proximity, as the user can set different frequencies for each sensor for easy identification. The numeric control can range from low to high frequencies based on the user's preference. The Boolean indicator displays whether motion has been detected by the PIR motion sensor. This indicator can be useful for monitoring areas where motion should not be present, such as a restricted area in a corporate environment. The indicator can also be used in conjunction with other sensors to trigger specific actions, such as sending an alert to security personnel or turning on lights in the area where motion has been detected. By having a clear indicator, the user can quickly and easily assess the status of the sensor's motion detection feature. Figure 2 is given to show how the Front Panel has been created.
Figure 2: Given LabVIEW Front Panel To create a sound file in LabVIEW, you can use the Sound File VIs in the LabVIEW Sound and Vibration Toolkit. You can also use other third-party sound creation software to create a sound file and then import it into your LabVIEW project. Figure 3 has been provided to use for this lab. Once you have created your sound file, you can wire it to a case structure in LabVIEW. The Boolean indicator for motion detection can also be wired to the case structure to determine the case of the structure. To bring in the digital alarm signal from the motion sensor, you can use a digital input module or another appropriate input device. You can read the input signal using the DAQ Assistant in LabVIEW or by creating a digital input task. When the digital alarm signal reads True, the sound file should be output through the computer speakers. This can be achieved by wiring the Sound File VI or other sound output VIs to the true case of the case structure.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help