Lab 8.1

pdf

School

Embry-Riddle Aeronautical University *

*We aren’t endorsed by this school

Course

313

Subject

Mechanical Engineering

Date

Dec 6, 2023

Type

pdf

Pages

5

Report

Uploaded by MasterEel3825

MECH 313 Data and Acquisitions Laboratory Lab 8 Construct an Alarm System Using Motion Sensor Prof. Yuetong Lin Nathan Hernandez 9-29-2023
Hernandez 1 Purpose This purpose of this week’s lab was to construct an alarm system using a motion sensor and myDAQ. We were provided a vi and an example from LabView to follow and were asked to add additional functionality to the program by creating a 30 second delay. We recorded our results and posted them to YouTube which can be viewed at the following link: https://youtu.be/hnqPtPEqaN8 Objectives The objective of this lab was to create an alarm system using a motion sensor, myDAQ, and LabView. The alarm system has a 30 second delay before activating and when triggered it creates an audible tone and illuminates and indicating LED. Equipment and Supplies For this lab the equipment we used was a motion detector, NI myDAQ, jumper cables, and an aux cord connected to a set of headphones for audio output. We used NI LabView as the software to read the signals given by the motion detector and perform the output functions. We also used a cellphone and uploaded our results to YouTube.
Hernandez 2 Observations
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
Hernandez 3 Discussion Overall, our lab was a success. We were able to connect the motion sensor to our PC via the myDAQ and have the signals be read by LabView. We created a time delay function to hold the alarms for 30 seconds, after which when the alarm would receive a signal of motion it would create an audible tone and illuminate an LED. By studying the vi provided by LabView we can interpret the basic functions of the program. Inside a while loop a DAQ Assistant is created to read the signal from the myDAQ, the signals being read are then passed to an index array where only the first index is taken because the first index is the Boolean logic for the motion detector. That signal is then given to an LED indicator and a second DAQ Assistant which will tell the myDAQ to output the audible tone or not. Outside of the while loop the alarm tone is being generated by the Simulate Signal function and controlled by a frequency control on the Front Page. Conclusion In conclusion, we were able to verify that our set up works, and the provided video can verify the results. This lab was pretty straightforward and easy to follow and it was very fun playing with the program until I was able to make the alarm work.
Hernandez 4 References Embry-Riddle Aeronautical University Worldwide, MECH 303. LAB PDF