The ELEC-F cardboard freezer prototype with M5Stack and sensors
Back to projects
School projectTeam of 4
ELEC-F

Safe Freezer Storage System

ELEC-F is a safe freezer storage system my team of four built for an engineering course. It watches a walk-in freezer’s door and the room inside, and sounds an alarm if someone is shut in for too long.

Built with
M5StackFigmaPhotoshopDaVinci ResolvePowerPoint

Demo

The problem

As factories fill up with automation, safety has to keep up, and one risk that often gets overlooked is the walk-in freezer, where a worker can be trapped inside.

How it happens

  • The door can fail, because worn latches jam, moisture freezes the seals shut and emergency releases can be broken, missing or frozen over.
  • Nobody may realise a person is still inside, and experienced workers can get careless.

Why it is dangerous

  • The cold causes hypothermia, which brings on confusion and then unconsciousness.
  • A sealed freezer can run low on oxygen, which can lead to asphyxiation.
  • Panic and attempts to escape lead to falls and other injuries.
  • Without a timely rescue, being trapped for a long time can be fatal.

Being trapped also causes panic, especially for people with cleithrophobia, the fear of being unable to escape. ELEC-F is meant to shorten the time someone is stuck and let them know help is coming.

Goals

  • Stop workers from being stuck inside a factory freezer.
  • Keep in contact with anyone who does get trapped and reassure them.
  • Work reliably in a cold, damp, sealed room.

How it works

While the door is open, you set a time limit on the M5Stack, and closing the door starts the timer. If the timer runs out while someone is still inside, the alarm goes off.

The M5Stack screen during step 1, set the timer
Step 1 of 3 · Door open

Set the timer

When a worker walks in, the PIR sensor picks up their body heat and movement and the ToF sensor reads the door as open. You then set on the M5Stack how long the door may stay shut.

PIRPerson inside
ToFDoor open
AlertStandby

The system has four parts that run together:

  • The timer is set on the M5Stack while the door is open and starts when the door closes.
  • The door sensor is a time-of-flight (ToF) sensor that measures distance to tell whether the door is open or closed.
  • The presence sensor is a PIR sensor that detects body heat and movement to tell whether someone is still in the room.
  • The alarm flashes the RGB unit and sounds the buzzer if the door stays closed past the limit with someone inside.

We chose ToF and PIR sensors because both keep working below freezing.

Hardware

Everything is M5Stack, which made it quick to prototype and easy to swap modules. Two M5Stack Fire controllers run the logic and the display, and a Mini Hub unit splits the Fire’s single port so every sensor has somewhere to plug in.

The M5Stack Fire wired to the ToF, PIR and RGB units
The M5Stack Fire and its sensor units
ControllerM5Stack Fire ×2It runs the timer, reads the sensors and drives the screen, and it has the buzzer built in.
ExpansionMini Hub unitIt splits the Fire’s single port so every sensor can plug in.
Door stateToF sensorIt measures distance to tell whether the freezer door is open or closed.
PresencePIR sensorIt picks up body heat and movement to tell whether someone is still inside.
AlarmRGB unitIt flashes along with the buzzer when someone is inside past the limit.
ELEC-F wiring layout
How the units are wired together

Logic

The flow chart below shows the full loop the M5Stack runs. The buttons set the time limit while the door is open, and once the door closes, the timer runs and the sensors decide what happens next.

ELEC-F software flow chart, from setting the timer to sounding the alarm
ELEC-F system block diagram
System block diagram

Prototype

We made the freezer and its door out of cardboard to test the sensors and the timing end to end before thinking about a proper enclosure.

ELEC-F prototype with the sensors mountedThe door of the ELEC-F prototype
The ELEC-F project poster
The project poster
ELEC-F on GitHubThe repository has the M5Stack code for the door timer, the sensor readings and the alarm.
View the code on GitHub

Team

Md SadiqTeam lead
Profile
Tan Yong RuiTeam member
Profile
Braven (me)Team member
Profile
Abel GohTeam member
Profile
More to explore

Other projects

Personal
OCR Reader with DrumNet, an OCR water meter solution

OCR Reader

A battery-powered water meter reader where a 693K-parameter DrumNet pipeline on an ESP32-S3 reads the drums and reports over LoRaWAN, built on a custom KiCad PCB inside a 3D-printed shell.

Personal
Project June rover

Project June

A 5G rover with three live camera feeds, GPS, a laser pointer and seven sensors, driven from a web console.

Internship
Pip, a cyan desk pet, on the M5Stack Tab5

Pip

A desk pet on an M5Stack Tab5 whose brain is the DeepSeek Harness on my server, so it can drive a browser, build its own apps and watch my other agents.