กลับไปหน้ารวมไฟล์
electronic-safe-with-arduino-62207b-en.md
Outside
Inside

Hello, and welcome to my latest project! In this showcase I will be displaying the safe with an Arduino Uno! This project includes a 6 digit password (123142), that must be entered if you want to unlock the safe.

Buttons

There are 4 buttons to submit characters(1, 2, 3, or 4), an enter button, and a clear screen/lock button. When the safe is unlocked, it will remain unlocked until the button to lock it is pressed. Above are two pictures - the inside, and the outside. The Arduino reads if the button is being pressed or not, and if they are, it displays the corresponding number, and stores that value. When the enter button is pressed, the code that was typed is submitted, and it will unlock if it is correct. If the clear button is clicked, the values will be reset.

EXPANDED TECHNICAL DETAILS: String Concatenation and Verification

  1. The user presses a sequence of buttons, for example, 1, 2, 3, 4.
  2. The Arduino uses a command like enteredCode += keyPress; to stitch those individual characters into a single string.
  3. When the user presses the 'Enter' button, the code checks if (enteredCode == secretCode).
  4. If correct, the safe unlocks. If wrong, the input can be cleared. More advanced systems might include a red LED flash and a buzzer. After several wrong attempts, the system could lock the user out for a set period using a command like delay(300000).

The Servo

The locking mechanism is simple - a servo motor is mounted to the shoebox, and a slit is cut in the shoebox and the door flap. When in the locked position, the motor is turned in between the openings, making it not possible to open.

unlocked position

Above is a photo of the servo in the unlocked position. This allows the shoebox to open and close with ease. When it is turned 90° and the door is shut, it isn't possible to open. When the door is unlocked and you click the clear button, the safe returns to being locked.

EXPANDED TECHNICAL DETAILS: Crucial Hardware for a Robust System While this project uses a servo for a simple demonstration, a more secure physical system would require sturdier components:

  • Arduino Uno/Nano as the controller.
  • 12V Solenoid Cabinet Lock for a strong, electromagnetic lock.
  • Relay Module & Heavy-Duty Power Supply to safely control the higher-voltage solenoid with the Arduino.
  • A sturdy metal or thick wooden box for the enclosure.

Below is a YouTube demonstration, as well as an Instructable page demonstrating how to build it.

Instructable - http://www.instructables.com/id/Electronic-Safe-With-Arduino

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "chummer1010"
category: "Home & Automation"
components:
  - "1x Breadboard (generic)"
  - "1x Resistor 330 ohm"
  - "1x Servos (Tower Pro MG996R)"
  - "1x Capacitor 100 µF"
  - "30x Jumper wires (generic)"
  - "6x Pushbutton switch 12mm"
  - "1x Standard LCD - 16x2 White on Blue"
  - "1x 9V battery (generic)"
  - "1x 9V Battery Clip"
  - "1x Arduino UNO"
description: "Lock it down! Construct an impenetrable mini-safe utilizing an electronic keypad matrix, an I2C LCD, and a heavy-duty solenoid lock to secure your valuables."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/666730bd-24d9-4ccb-93f8-e87589463cdb.ino"
  - "https://create.arduino.cc/editor/chummer1010/a7700d83-d6df-43fd-b8bb-7eb2ad200ddf"
  - "https://projects.arduinocontent.cc/666730bd-24d9-4ccb-93f8-e87589463cdb.ino"
encryptedPayload: "U2FsdGVkX18BBuAPjvIElb7RbN7D5aRfqvFIQwuo56xtDY1yjeab1nXoRrWMGZX4JRb/LUfmK+2G7RIJNEl1AEhadPCwfu6uCeaCxHF5Atc="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/electronic-safe-with-arduino-62207b_cover.jpg"
lang: "en"
likes: 69
passwordHash: "92da457eb087914e37bf1c6a038a7b53935f5ee0e3be0ff05ee53dbdf8c795bc"
price: 2450
seoDescription: "Build an Electronic Safe using Arduino with a 6-digit passcode system. Perfect DIY project for electronics enthusiasts."
tags:
  - "safe"
  - "security"
  - "lock"
title: "Electronic Safe with Arduino"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/R8IzDhwFYjU"
views: 81688