DIY Fingerprint-Secured Cardboard Safe
by tech_nickk in Circuits > Arduino
16 Views, 0 Favorites, 0 Comments
DIY Fingerprint-Secured Cardboard Safe








Introduction
Do you have small valuables you want to keep secure? In this Instructable, I'll show you how to build a fingerprint-secured cardboard safe using affordable electronic components. This project combines basic cardboard construction with electronics to create a functional safe that only opens for your fingerprint.
Project Overview:
- A cardboard safe secured with biometric (fingerprint) authentication
- OLED display for system status and instructions
- Servo motor locking mechanism
- Push button for lock/unlock operations
- Perfect weekend project for beginners in electronics
Supplies
Electronics:
- ESP32 microcontroller
- Adafruit Fingerprint Sensor
- SSD1306 0.96" OLED I2C Display
- Micro Servo Motor (SG90 or similar)
- Momentary Push Button
- Jumper Wires
- Mini Breadboard (optional)
- USB-C Cable (for programming and power)
- 5V Power Supply (if not using USB)
Construction Materials:
- Corrugated Cardboard (Amazon boxes work great!)
- Hot Glue Gun & Glue Sticks
- Box Cutter or Craft Knife
- Ruler
- Pencil
- Clear Tape
- Masking or Painter's Tape
Tools:
- Soldering Iron & Solder (optional but recommended)
- Wire Cutters/Strippers
- Computer with Arduino IDE
Design and Build the Cardboard Safe





Now it's time to build the physical safe!
Basic Design:
- For a simple box design, you'll need six cardboard pieces:
- Front: 15cm × 6cm
- Back: 15cm × 6cm
- Left side: 10cm × 6cm
- Right side: 10cm × 6cm
- Bottom: 15cm × 8cm
- Top (lid):15cm × 8cm
Construction Steps:
- Cut all pieces according to the dimensions above
- Use masking tape to connect the front, sides, and back, forming a rectangular frame
- Attach the bottom piece using tape or hot glue
- Create a hinge for the top lid using clear tape along one edge
- Reinforce all edges with additional tape for durability
Component Mounting:
- Cut a small rectangular hole in the front panel for the fingerprint sensor
- Cut a circular hole for the OLED display above or next to the fingerprint sensor
- Create a hole for the button on the front panel
- Mount the servo motor inside the box, positioned to block the lid when activated
- Secure all components with hot glue
Create the Locking Mechanism
The servo motor will act as the locking mechanism for your safe:
- Cut a small piece of cardboard or plastic to act as a latch
- Attach this piece to the middle of the lid using hot glue
- Position the servo so that when it's at 0 degrees, the latch blocks the lid from opening
- When the servo rotates to 90 degrees, the servo arm should move away, allowing the lid to open
- Test the mechanism manually by moving the servo arm before connecting it to power
Wire the Components
Now let's connect all the electronic components:
Fingerprint Sensor:
- VCC → 3.3V on ESP32
- GND → GND on ESP32
- TX → Pin 16 on ESP32
- RX → Pin 17 on ESP32
OLED Display:
- VCC → 3.3V on ESP32
- GND → GND on ESP32
- SDA → SDA pin on ESP32 (default GPIO 21)
- SCL → SCL pin on ESP32 (default GPIO 22)
Servo Motor:
- Signal (usually orange or yellow) → Pin 18 on ESP32
- Red → 5V (External power recommended for stability)
- Brown/Black → GND
Button:
- Connect one terminal to GND
- Connect the other terminal to Pin 19 on ESP32
Wiring Tips:
- Use different colored wires to avoid confusion
- Double-check connections before powering on
- Consider using a mini breadboard for easier connections
- For a more permanent build, solder the connections or use a custom PCB
Assemble and Install Electronics



Now it's time to put everything together:
- Mount the ESP32 inside the box, ideally on the side or back panel
- Secure the fingerprint sensor in its cutout using hot glue
- Mount the OLED display in its position
- Install the push button in its hole
- Arrange all wiring neatly inside the box, using tape to secure if needed
- If using external power, create a small hole for the power cable
Install Required Libraries
let's set up the software environment:
- Install Arduino IDE from arduino.cc
- Add ESP32 board support:
- Open Arduino IDE
- Go to File > Preferences
- In "Additional Boards Manager URLs", add: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Go to Tools > Board > Boards Manager
- Search for "esp32" and install "ESP32 by Espressif Systems"
- Install required libraries via Sketch > Include Library > Manage Libraries:
- Adafruit SSD1306
- Adafruit GFX Library
- Adafruit Fingerprint Sensor Library
- ESP32Servo
Upload the Code
- Open Arduino IDE
- Create a new sketch and paste the following code:
- Select your board: Tools > Board > ESP32 Arduino > ESP32 Dev Module
- Select the correct port: Tools > Port > (select your ESP32's port)
- Upload the code by clicking the Upload button (right arrow)
Test the System





Before sealing everything up:
- Power on the system using USB or external power
- The OLED should display "Fingerprint Safe" followed by initialization messages
- For first-time setup, follow the onscreen prompts to register your fingerprint
- Test the locking mechanism by scanning your finger and pressing the button
- Make any necessary adjustments to the servo position or latch design
Final Assembly and Customization




- Once everything is working correctly, secure all internal components with hot glue
- Add additional cardboard reinforcement to areas that might need strengthening
- Consider waterproofing the electronics area with a layer of clear tape
- Personalize your safe by painting or decorating the exterior
Optional Enhancements:
- Add a battery pack for portable operation
- Install LEDs for visual feedback (green for successful unlock, red for denied)
- Add a simple alarm that sounds if incorrect fingers are scanned multiple times
How to Use Your Fingerprint Safe
First Time Setup:
- Power on the safe
- The OLED will prompt you to register your fingerprint
- Place your finger on the sensor when instructed
- Remove and replace your finger when prompted for the second scan
- Wait for confirmation that enrollment is complete
Normal Operation:
- To unlock: Place your registered finger on the sensor, then press the button
- The servo will rotate 90 degrees, allowing the lid to open
- To lock: Press the button again
- The servo will return to 0 degrees, securing the lid
Troubleshooting
Fingerprint Sensor Not Responding:
- Check wiring connections, especially TX/RX crossed connections
- Ensure the sensor is receiving 3.3V power
- Try cleaning the sensor surface with a soft cloth
Servo Not Moving:
- Check wiring and power supply (servos may need more current than USB can provide)
- Verify that it's properly connected to pin 18
- Test the servo independently using a simple sweep code
OLED Display Issues:
- Verify I2C address (0x3C is most common, but some displays use 0x3D)
- Check SDA/SCL connections
- Ensure proper voltage (3.3V)
System Resets or Crashes:
- Use an external 5V power supply instead of USB
- Add a capacitor (100-470μF) between power and ground to stabilize voltage
- Reduce servo movement speed in code
Conclusion
Congratulations! You've built your own fingerprint-secured cardboard safe. While not meant for high-security applications, this project demonstrates the principles of biometric authentication and electronic locking mechanisms in a fun and educational way.
This project combines skills in electronics, programming, and basic construction, making it perfect for hobbyists, students, or anyone interested in learning about security systems. Feel free to modify and enhance the design to suit your specific needs!
Safety Notes:
- This project uses low voltage and is generally safe, but always be careful with electrical connections
- Use caution when working with hot glue and cutting tools
- This is designed as an educational project and not for securing valuable items
Happy making :)