Smart Anti-theft Mailbox (S.A.M.)
by ArnoVanBrussel in Circuits > Raspberry Pi
95 Views, 0 Favorites, 0 Comments
Smart Anti-theft Mailbox (S.A.M.)
![IMG_9255.jpg](/proxy/?url=https://content.instructables.com/FEA/ML2P/LJ1FUZYP/FEAML2PLJ1FUZYP.jpg&filename=IMG_9255.jpg)
![nobackground.png](/proxy/?url=https://content.instructables.com/FTX/HKDO/LJ1FUZYS/FTXHKDOLJ1FUZYS.png&filename=nobackground.png)
![01914db6-a983-49d5-ae23-ddbf9f147760.png](/proxy/?url=https://content.instructables.com/FKT/TMKB/LJ1FUZYE/FKTTMKBLJ1FUZYE.png&filename=01914db6-a983-49d5-ae23-ddbf9f147760.png)
A smart mailbox, designed to store packages when no one is home to receive them in person.
Downloads
Supplies
![images.jpg](/proxy/?url=https://content.instructables.com/FZ0/FDBE/LJ1FV3BT/FZ0FDBELJ1FV3BT.jpg&filename=images.jpg)
![images.png](/proxy/?url=https://content.instructables.com/FBQ/WERC/LJ1FV3BU/FBQWERCLJ1FV3BU.png&filename=images.png)
![AC460AD-00-6__57670.jpg](/proxy/?url=https://content.instructables.com/FBA/MAG4/LJ1FV3C1/FBAMAG4LJ1FV3C1.jpg&filename=AC460AD-00-6__57670.jpg)
![13247-01_1.jpg](/proxy/?url=https://content.instructables.com/F2M/7W6T/LJ1FV3C2/F2M7W6TLJ1FV3C2.jpg&filename=13247-01_1.jpg)
![download (1).jpg](/proxy/?url=https://content.instructables.com/FM2/7VLF/LJ1FV3C3/FM27VLFLJ1FV3C3.jpg&filename=download (1).jpg)
![download.jpg](/proxy/?url=https://content.instructables.com/F74/1IJ4/LJ1FV3C4/F741IJ4LJ1FV3C4.jpg&filename=download.jpg)
![169147187_max.jpg](/proxy/?url=https://content.instructables.com/F9V/CHX7/LJ1FV3C5/F9VCHX7LJ1FV3C5.jpg&filename=169147187_max.jpg)
![6131KRlni3L.jpg](/proxy/?url=https://content.instructables.com/FI1/0W6L/LJ1FV3CC/FI10W6LLJ1FV3CC.jpg&filename=6131KRlni3L.jpg)
![display_instructables.jpg](/proxy/?url=https://content.instructables.com/FQU/A9D3/LJ1FV3CD/FQUA9D3LJ1FV3CD.jpg&filename=display_instructables.jpg)
![pi_instructables.jpg](/proxy/?url=https://content.instructables.com/FU9/OF4H/LJ1FV3CE/FU9OF4HLJ1FV3CE.jpg&filename=pi_instructables.jpg)
![61+csZ7bWNL._AC_SL1500_.jpg](/proxy/?url=https://content.instructables.com/FJN/YYF0/LJ2VA4QE/FJNYYF0LJ2VA4QE.jpg&filename=61+csZ7bWNL._AC_SL1500_.jpg)
- 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
Downloads
Power Supply Preparation
![AC460AD-00-2__12954.jpg](/proxy/?url=https://content.instructables.com/FRK/OYMH/LJ1FV095/FRKOYMHLJ1FV095.jpg&filename=AC460AD-00-2__12954.jpg)
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.
Circuit
![breadboard_final_bb.png](/proxy/?url=https://content.instructables.com/FYQ/INC1/LJ1FV01Z/FYQINC1LJ1FV01Z.png&filename=breadboard_final_bb.png)
![Scheme_Final_schem.png](/proxy/?url=https://content.instructables.com/FRJ/BMN1/LJ1FV042/FRJBMN1LJ1FV042.png&filename=Scheme_Final_schem.png)
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.
Code
![download.png](/proxy/?url=https://content.instructables.com/FF1/1VZY/LJ1FV2B0/FF11VZYLJ1FV2B0.png&filename=download.png)
![IMG_9265.jpg](/proxy/?url=https://content.instructables.com/FF2/Z4LI/LJ2VA4S4/FF2Z4LILJ2VA4S4.jpg&filename=IMG_9265.jpg)
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.
Enclosure
![IMG_9007.jpg](/proxy/?url=https://content.instructables.com/FKJ/SEQB/LJ1FV1AD/FKJSEQBLJ1FV1AD.jpg&filename=IMG_9007.jpg)
![IMG_9009.jpg](/proxy/?url=https://content.instructables.com/F9J/XQTI/LJ1FV1AE/F9JXQTILJ1FV1AE.jpg&filename=IMG_9009.jpg)
![IMG_9010.JPG](/proxy/?url=https://content.instructables.com/FXG/9DM3/LJ1FV1AF/FXG9DM3LJ1FV1AF.jpg&filename=IMG_9010.JPG)
![IMG_9012.JPG](/proxy/?url=https://content.instructables.com/FU5/QIRC/LJ1FV1AG/FU5QIRCLJ1FV1AG.jpg&filename=IMG_9012.JPG)
![IMG_9014.jpg](/proxy/?url=https://content.instructables.com/F3Z/J4KM/LJ1FV1AH/F3ZJ4KMLJ1FV1AH.jpg&filename=IMG_9014.jpg)
![Screenshot 2023-06-18 231856.png](/proxy/?url=https://content.instructables.com/F3A/179T/LJ1FV1B9/F3A179TLJ1FV1B9.png&filename=Screenshot 2023-06-18 231856.png)
![Screenshot 2023-06-18 231833.png](/proxy/?url=https://content.instructables.com/FIO/NMND/LJ1FV1BG/FIONMNDLJ1FV1BG.png&filename=Screenshot 2023-06-18 231833.png)
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
Putting It All Together
![nobackground.png](/proxy/?url=https://content.instructables.com/FET/988P/LJ1FV2Q5/FET988PLJ1FV2Q5.png&filename=nobackground.png)
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.