An automated safety hatch system on a deep-sea research submarine uses inputs from pressure and depth sensors, alongside a manual lock switch, to determine when the hatch unlocking mechanism (UUU) should activate.
The table below shows the inputs to the system and the meaning of each input value:
| Letter | Input device | Input of 1 | Input of 0 |
|---|---|---|---|
| PPP | Cabin pressure sensor | Pressure is equalized | Pressure is unequalized |
| DDD | Depth sensor | Depth is safe | Depth is unsafe |
| LLL | Manual lock switch | Lock is active (disables hatch) | Lock is inactive |
The safety hatch unlocking mechanism (UUU) is designed to unlock (U=1U = 1U=1) only when the manual lock is inactive, the cabin pressure is equalized, and the depth is safe.
Draw a logic diagram for the safety hatch control system using standard 2-input logic gates (AND, OR, NOT).

Practise OCR GCSE Computer Science Boolean logic with exam-style questions for GCSE Computer Science. 27 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.