Reference no: EM132875900
Mission Impossible Security System
To design a simple security system to protect against the theft of a priceless bust of George Mason sitting on a table in the Inner Sanctum of a 2-room vault. For the final, you must write either a Python or C program to provide the security functionality described in the bulleted list below. You must use a Raspberry Pi (Pi3 or Pi4), an MCP3008 analog-to-digital converter (download the datasheet from the web or use the notes in Molloy or in my lecture for guidance), and the sensors shown in the diagram below. You may not augment the system with sensors or hardware other than that stipulated here.
Please note: there is no requirement to build a hardware prototype for this final. If you have time and you wish to do build a prototype, feel free to do it. However, you will not receive additional credit for pursuing a hardware prototype.
The security vault can be entered through a door in the outer room. There is a single window in the outer room. There is no door to the entry to the Inner Sanctum.
The sensors in the inner sanctum include a BHT-11 sensor to measure temperature and barometric pressure sensor in the room, an ADXL-345 accelerometer to detect movement of the George Mason bust, and a PIR sensor to detect movement in the room. The outer room contains only a single photocell to detect whether the room is dark (night time) or light (day time). Entry into the outer room is controlled by a 4 x 4 matrix keypad.
Your system must be designed in accordance with the following rules:
» Analog sensors must be connected to the MCP3008 and the MCP3008 connected to the Raspberry Pi.
» An authorized person requesting entry into the vault must enter a 4-digit code. You can assign this code.
» The photocell must be queried once every hour to determine whether it is nighttime or daytime. The output is a simple binary, "Day" or "Night".
» If the PIR sensor detects the presence of a person in the room, the system must send an alarm to the system administrator. (Remember, the PIR sensor detects the presence of heat).
» The system must log temperature and humidity at the top of each hour but there is no need to send an alarm or message to the system administrator.
» The ADXL345 accelerometer will detect if the bust is moved. I'd like you to set up one of the sensor interrupts with an interrupt routine that notifies the system administrator if the bust is moved. You will need to study the ADXL345 data sheet closely to understand how to program an interrupt.
Attachment:- Mission Impossible Security System.rar