Introduction: Smart Anti-theft Mailbox (S.A.M.)
A smart mailbox, designed to store packages when no one is home to receive them in person.
Attachments
Supplies
- Raspberry Pi 4B
- 2*16 LCD screen with PCF
- RFID sensor
- 2 load sensors
- 2 HX711 load cell amplifier boards
- 2 buttons
- 3 servo motors
- 2 contact sensors
- 2 LED bars
- 0.8mm multiplex wood
- Old computer PSU
- Jumper cables
- Breadboard's or PCB's
Attachments
Step 1: Power Supply Preparation
Make sure the power supply is OFF and NOT plugged into an outlet before doing this step!!!
- Cut the connectors of the wires, so you're left with just the cables.
- Either look up the data sheet for the power supply you are using to see which cables are for which voltage, or measure the outputs with a multimeter.
- I'm using a Dell PCB030, the following colors and voltages apply.
- Yellow: 12V DC
- Red: 5V DC
- Orange: 3.3V DC
- Black: Ground
- To make connectors you can either solder the cables to a jumper cable with a pin for a breadboard, directly on a PCB or use a connection lever clamp.
- You only need one of each theoretically, but I find it more practical to have a ground cable for each voltage.
- After prepping these cables, you will need to connect the "power good" or "pwr_ok" cable, and connect it to a ground.
- For the last step, you have two options:
- Connect the green "PS_ON" cable to a ground directly
- This will cause the PSU to go on as soon as you plug it in.
- Connect it with a toggle switch/button.
- This will allow you to switch the PSU on and off without touching the power cord.
Step 2: Circuit
The first step is making the circuit on either breadboards or pcb's.
- Make sure to place resistors where needed to protect your raspberry pi.
- Make sure to check the voltages of the pc power supply.
- Make sure to connect the grounds of separate devices, i.e.: the raspberry pi ground to the psu ground.
Step 3: Code
When you have the wiring figured out, it's time to add some software.
The code for the website and the app are found here.
- Open the file called "index.html" with the live server to get on the website.
- Copy paste your raspberry pi's IP address in lieu of the live server address.
- It should look something like this:
- `http://172.30.252.17:5500/front/index.html`
- Run the App.py.
Step 4: Enclosure
Of course it's up to you to decide how large you want it to be, but here are the measurements I used.
8mm Multiplex wood, length and width are in cm:
- 3 * 5x40
- 2 * 4x38.4
- 2 * 20x30
- 1 * 15x40
- 2 * 45x38.4
- 1 * 45x40
- 1 * 40x35
- 1 * 40x40
- 1 * 38.4x38.4
- 1 * 30x38.4
- 2 * 37x18
Step 5: Putting It All Together
Now it's time to add the last finishing touches. Choose where all your components should go, make a plan on how to route the wires, make the necessary cutouts and most of all, have fun.




