Smart Mailbox (Howest Mct)

Hello!
My name is Jada Guerzoni and I’m a student at Howest in Kortrijk. In our first year, we were assigned to create a project 1. This is a hands-on assignment we work on throughout the month of June and present to our teachers.
For my project, I came up with the idea to build a smart mailbox, which I named MailMate. It looks like a regular mailbox, but it’s equipped with sensors that you can monitor through a website. The system detects when new mail arrives and sends a notification. If the mail gets too wet (for example, when it’s raining), you’ll also receive a warning.
And here’s the best part: by clicking a button on the website, you can activate a servo motor that opens the mailbox door making it easier to collect your mail.
I got this idea because we often forget to check our mailbox at home. Sometimes our mail gets soaked in bad weather, so I wanted to create something practical that solves this everyday problem.
You can find all the code and more information on my GitHub:
Supplies
- The central control unit that processes data and manages all components.
- Breakout board for easy GPIO access on the Raspberry Pi using Broadcom pin numbering.
- A badge scanner that identifies who opens or closes the mailbox door.
- A humidity sensor that measures the moisture level inside the mailbox and alerts when the mail gets wet.
- An ultrasonic distance sensor that detects when new mail is delivered and counts how often it happens per day.
- Displays the IP address of the Raspberry Pi and shows the name of the person who scanned their badge to open the mailbox.
- Used for adjusting the contrast of the LCD display.
- A motor that automatically opens and closes the mailbox door.
- A physical button to safely shut down the Raspberry Pi.
- Supplies power to the Raspberry Pi and connected components.
Resistors
- male to male
- female to female
- male to female
- For insulating and protecting wire connections.
- Used to build the physical structure of the smart mailbox.
Hinges (x4)
- Small metal hinges for mounting the mailbox door, allowing it to open and close smoothly.
- Attached to the mailbox door so it can be opened manually if needed.
- Can be used as a locking mechanism.
- Used to glue to pieces together.
- Glue sticks
- Used to glue the sensors to the mailbox.
+-180 euro
Normalizerd Database

The first step is to make a database where you will store all your data and ensure it is organized in a structured, efficient way. This includes setting up tables for components, RFID logs, history and user data. Each table should follow at least the Third Normal Form (3NF) to eliminate redundancy and support future expansion.
Designing the Mailbox




Overall Dimensions:
- Height: 33 cm
- Width: 16 cm
Mailbox Door:
- Height: 24 cm
- Width: 22 cm
- This is the front-facing door that opens and closes using a servo motor, allowing you to collect your mail.
LCD Display Opening:
- Positioned on the front of the mailbox, there’s a cut-out for the LCD screen:
- Height: 2 cm
- Width: 7 cm
- This displays real-time information such as IP address and badge names.
Top Mail Slot:
- Located under a hinged flap at the top of the mailbox.
- Mail can be inserted through this slot.
- Slot size:
- Height: 3 cm
- Width: 19 cm
False Floor Compartment:
- Inside the mailbox is a false floor that hides all electronics neatly underneath. This keeps the sensors, Raspberry Pi, wiring, and components protected and organized, while leaving space above for incoming mail.
Coding and Connecting Every Sensor/ Motor to Its Place on the Raspberry Pi

In these adobe PDF files you can see how to connect all the wires and where they belong on the Raspberry Pi.
Designing a Website

The MailMate website has been designed with UX and UI in mind, allowing users to quickly access important information at any time. On the homepage, users can instantly see whether new mail has been delivered, monitor the humidity level inside the mailbox, and activate the servo motor to open the mailbox door remotely.
The second page, titled "Users," provides a detailed log of who accessed the mailbox, including timestamps and whether each access attempt was authorized. Additionally, this page includes a secure option to safely shut down the Raspberry Pi that powers the system.
The MailMate project is developed using a combination of Python for the backend and HTML, CSS, and JavaScript for the frontend.
Building the Mailbox and Painting It
I built the mailbox using 3mm MDF, which I laser cut for precise shapes and dimensions. After assembling it, I painted the surface to make it waterproof and give it a cleaner, more finished look.
Installing the Electronics

Putting in the electronics was quite tricky because I used very thin and sensitive wires. However, by staying calm and connecting each wire one by one, I managed to get everything working perfectly.
Final Revisions
If you’ve completed all the previous steps, your MailMate system should now be functioning correctly.
Take a moment to double-check that all connections are secure—both on the breadboard and the individual components. Make sure you are using the correct sensors and that power (VCC) and ground (GND) lines are properly connected to each component.
If you encounter any issues or unexpected behavior, don’t hesitate to reach out for support.