A mini safe locker comes in handy when you want to keep your precious little belongings safe but also close to you(r heart). Though the ones used at homes require a) a LOT of metal b) next-level tech, what we’re making is our own version of the DIY mini safe locker that kids can use to keep their cookies safe from their siblings 😉
Components for making this safe locker are available in the evive Starter kit and it can easily be programmed in PictoBlox – our graphical programming software based on Scratch blocks. You can download it from HERE.
Ready for making your own safe locker? Let’s begin!
|Image||Component||Quantity||Available in Kit|
|Micro Servo Motor with Accessories||1|
Step 1: Preparing the Box for the Safe Locker
For making the box for the safe locker, we first need to make a functional safe box that would help us store valuables in it. The box then needs a door, doorknob, and a locking mechanism.
We will start with how to make a safe locker with cardboard, but for now, we are going to make the safe box using the corrugated sheets.
Making the Top and Bottom of the Safe Box:
First, let’s make the top and bottom of the box.
- Take a yellow corrugated sheet of 30 cm * 15 cm and make a line at the center of the sheet and
- Now cut along the markings we would get two sheets of 15 cm * 15 cm each of which would act as the bottom and top of our safe box.
Making the Sides of the Safe Box:
The next step would be making walls for making the safe locker.
- For making the four walls, take a red corrugated sheet of 60 cm * 15 cm.
- Mark three lines on a red corrugated sheet at every 15 cm we would now get four equal squares each of these squares of dimension 15 cm*15 cm.
Making the Door of the Safe Box:
We would need a door to access the valuables inside of the safe box.
- Thus, mark a square of 10 cm *10 cm inside the last square on the red corrugated sheet on which we have marked the walls.
- Cut along the three sides of this 10 cm * 10 cm square, but make sure not to completely cut through the fourth side.
- Create a slit on the fourth side through the first layer, this will give the door, a hinge structure to make the opening and closing of the door smooth.
The door is done!
Making the Door Handle
To open and close the door easily we would make a small doorknob or the door handle.
- Take a circle master and mark a small circle on a piece of corrugated sheet of approximately 5 cm diameter.
- Cut out the circular disk for a knob.
- Take a straw and cut a 1 cm tube from it for making the shaft of the doorknob.
- Take this straw piece and attach it to the doorknob, with this our door handle is ready.
Thus, the different components of the Safe box are ready!
Step 2: Designing the Interlocking Mechanism
We are going to use the servo as the main element of our Interlocking mechanism. Where a part of the door gets hooked to the servo horn thus keeping the door of the safe locker closed. Thus, let’s make the structure that will interlock with a servo motor.
- Take another small strip of a corrugated sheet of about 10cm * 4cm size and mark the two lines at an equal distance from one another.
- Now fold along the markings and by using some hot glue make sure the bends hold its shapes and all the bends are perfectly perpendicular.
Once done, keep it aside.
Step 3: Assembling the Mini Safe Locker
We will start assembling the components of the safe box that we have prepared.
- Take one of the two yellow 15cm * 15cm sheets which would act as the bottom and now attach the 3 walls of the safe perpendicular to it. Make sure to keep the fourth side open.
- Also, attach the door handle assembly we have prepared above near the opening edge on the fourth side using the hot glue.
Step 4: Completing the Interlocking Mechanism
This interlocking mechanism will provide security to our safe locker.
- Thus, take the U-shaped piece of corrugated sheet and attach it at the back of the door exactly behind the door handle using hot glue.
- The servo motor acts as the actuator which controls the locking mechanism.
But before attaching servo, we would set the angle to 90 degrees by using the evive firmware menu.
Setting the servo angle
Setting the servo angle has never been this easy, the plug and play feature of evive. Just follow the steps:
- Attach the servo to evive’s servo channel 2
- Switch ON evive.
- From the menu, select Controls
- Navigate to Servo
- Than select Servo 2
- Use potentiometer 2 to set the servo angle to 90°
Disconnect the servo.
Attaching the Servo Motor
Before we attach the servo motor, let’s first attach servo horns to it which will hook the U-shaped structure in it.
- Take one single-sided and one double-sided servo horn and fix them both to servo motor using a 20mm servo screw.Make sure not to disturb the servo angle while attaching the horn.
- Attach the servo motor to the door frame using some hot glue such that it interlocks with U- shaped corrugated sheet that we attached on the inside of the door.
- Once done, close the fourth side by applying some hot glue to the edges of the fourth side.
With this most of the assembly is done but we need to make sure if our locking mechanism works properly or not before sealing off the top.
Step 5: Checking Whether our Locker Works Perfectly?
Upload basic PictoBlox code by using the PictoBlox to the evive.
Use the slide switch 1 on the evive to lock and unlock the door of the safebox.
Step 6: Completing the Assembly of the Safe Locker
Now when we are sure that mechanism in our safebox works perfectly as we tried locking and unlocking the safe box. We will close the safebox by attaching the top.
With this, the assembly and the connection of the safe box are ready!
Step 7: Writing the PictoBlox’s Code
Our safe locker will be operated with the help of a slide-switch of evive. Let’s write the code in PictoBlox.
- The program starts executing forever when evive starts up.
- When the slide-switch is pushed up, the servo angle changes to 100° which results in freeing the U-shaped structure which in turn opens the door.
- When the switch is at the center position or down position, the servo angle changes to or remains at 0° and the U-shaped structure gets hooked up to the servo horns thus the door remains locked.
Step 8: Making the Safe Locker Password Protected
For the advanced version, we will create a code using pictoblox which will help us open and close the locker only after entering a two-digit password for the safebox.
- The code, as usual, begins when evive starts up. We will set the password in the code itself.
- When slide switch is in the down position we would be allowed to enter the password by using the potentiometer 1 the display would show the entered password in real-time and access status of the door.
- As we are going to enter the password using the potentiometer, which gives a value between 0 to 1023 and we need our password to be any number between 0 to 100.
- Thus, we are going to use the map function for the same. Once the values are mapped, we need to check whether the slide-switch is up or not and if the value entered by us is similar to the password.
- If yes, then the servo angle changes to 100 degrees thus unlocking the door. And “Access Granted” is displayed on evive’s screen.
- If no, the servo angle is set to 0 degrees and the door is locked and TFT displays “Access Denied”.
Step 9: Conclusion
With this, your DIY mini-safe locker is ready!
Attach the servo to evive’s servo channel 2
|Password Protected Safe Locker Code||Download|
|Arduino Code for Password Protected Safe||Download|