mySecuritySystem is a myRIO powered image analysis and wireless network data managing system aimed for monitoring a premises for any type of physical movement. The system acquires images using a web camera, detects if movement has occurred it sends an email with a picture of the situation and at the same time streams video and audio data to a laptop to be recorded and saved on a cloud data service such as Dropbox. The device can be considered a part of the Internet of Things as it independently sends data to the world wide web and could be integrated with the Cloud Dashborad.
This system could be used for any well-lit area to monitor, such as a room or office. The project objective was to show the myRIO’s capabilities of using Vision analysis along with UDP, TCP and SMTP communication protocols.
TCP communication is used to send video data from the myRIO to the PC. This allows to make sure that not frames are lost in the process.
UDP communication is used to send audio data from the myRIO to the PC. UDP is used to achieve real time audio broadcasting without worrying of any lost data.
SMTP communication protocol is used to send an email with a picture attachment straight from the myRIO to alert about an intruder as soon as possible. For this a generic Gmail account is used.
The State Machine architecture with AVI VI's is used to record each incident in a new file and save it to a folder on the PC (In this case uploading to Dropbox to allow to check recordings anywhere in the world)
IMAQ VI's are used to take two images and compare them, the difference is compared to an adjustable threshold to determine if movement has been detected.
Video is recorded and email also sent if the value of the myRIO's onboard accelerometer has rapidly changed (device has been picked up).
Figure 1 - Functionality
3. Host PC Front Panel
From the GUI the sensitivity of the motion detection, the location of the recordings, and email settings.
Figure 2 - Here you can see the room being monitored, the current movement value and the threshold set.
Figure 3 - Once someone has entered the room the threshold of change in acquired images has been reached and the recording stage has started.
Sending Email - "Send Email using SMTP Client" in NI Example Finder
Playing sound to PC - "Simultaneous Sound Input Output" in NI Example Finder
Saving to AVI file - "Grab and Save to AVI" in NI Example Finder
10. About the Developer
I am a student from University of Leeds studying Mechatronics and Robotics. Currently undertaking a yearlong placement at National Instruments UK. During my placement I was given a full week to do a project of my choice and I chose to do what you have seen above. This allowed me to get hands on experience with NI software and hardware in preparation for CLAD and CLD certification.