PinSafe

This safe is mainly used for keys. And used for people with sleeping accommodations. When the hosts aren't home they can give them a Pincode that they activate on the site. When the code is inserted in the safe it gets deactivated.

Supplies:

Electronics (included in BOM):
LCD display

  • 3*4 Membrane Keypad
  • PIR-Sensor
  • 2 x Hall-sensors
  • 3 x Led light
  • Speaker
  • RFID
  • Servo motor
  • Raspberry Pi
  • PCF8574
  • GPIO-extender
  • 9V power-adapter
  • 9 1kOhm resistors
  • 1 470Ohm resistor
  • Breadboard
  • Jumper wires

Other (Not included in BOM):

  • Magnetlock 4kg
  • 39cm hinge, 25,5cm hinge
  • 1 small door knob
  • 2 small magnets
  • plastic sliding lock
  • Nails
  • Multiplex
  • wood

Step 1: Circuit

LCD:

  • VSS - GND
  • VDD - 5V
  • V0 - Trimmer
  • RS - GPIO16
  • R/W - GND
  • E - GPIO12
  • DB0 - GPIO25
  • DB1 - GPIO24
  • DB2 - GPIO23
  • DB3 - GPIO26
  • DB4 - GPIO19
  • DB5 - GPIO13
  • DB6 - GPIO6
  • DB7 - GPIO5
  • LED(+) - 5V
  • LED(-) - GND

RFID:

  • 3.3V - 3.3V
  • GND - GND
  • MISO - GPIO9 (MISO)
  • MOSI - GPIO10 (MOSI)
  • IRQ - GPIO27
  • RST - GPIO22
  • SDA - GPIO8 SPI_CE0_N
  • SCK - GPIO11 SCLK

3*4 Keypad + PCF:

  • Key 1 - P0
  • Key 2 - P1
  • Key 3 - P2
  • Key 4 - P3
  • Key 5 - P4
  • Key 6 - P5
  • Key 7 - P6
  • A0,A1,A3,GND - GND
  • VCC - 3.3V
  • SDA - GPIO2
  • SCL - GPIO3

Servo:

  • + - 5V
  • - - GND
  • pulse - GPIO18 PWM

Hall 1:

  • GND - GND
  • Vin - 5V
  • S - 1kOhm resistor - GPIO 21 - 1kOhm resistor - GND

Hall 2:

  • GND - GND
  • Vin - 5V
  • S - 1kOhm resistor - GPIO 4 - 1kOhm resistor - GND

PIR:

  • GND - GND
  • SDA - 1kOhm resistor - GPIO 20 - 1kOhm resistor - GND
  • Vin - 5V

Step 2: Casing: Frame

Now that you have the electrical circuit you can start putting it in the case.

We begin by making the frame

  • The Height without the roof bit is 44.2cm
  • The Width is 31.2cm
  • The Roof frame height is 10.6cm

Step 3: Casing: Door

The door is 25cm on 11cm

It has a door knob, a magnet for the magnet sensor, an iron plate for the magnetlock and a hole for the sliding bolt.

Step 4: Casing + Component: the Lock + Magnet Sensors

We make the box behind the door and the lock for it.

The lock is moved by the sensor with an iron string. There is a magnet attached to the bolt so the magnet sensor can detect it if closed. The servo part's width is 8cm.

One sensor is mounted in the frame thats pointed towards the door so it can detect the door magnet.

The other one is mounted under the lock. So it can detect the lock magnet.

Step 5: Casing + Component: Roof + PIR

The PIR is mounted in the roof bit centrally. the PIR casing is 2.5cm on 2.5cm.

Step 6: Components

The LCD is mounted next to the door.

The Keypad is mounted under the LCD with the cable through the small hole.

The Led lights are mounted inside the headlight above the door.

The RFID is mounted inside the casing so we can badge.

Step 7: The Database

Step 8: Code (Github)

Step 9: Finished Product

Share

    Recommendations

    • Games Contest

      Games Contest
    • Paint Challenge

      Paint Challenge
    • Planter Challenge

      Planter Challenge

    Discussions