This neat little gadget has a fingerprint sensor so you can secure your cool stuff in a personalised portable case. I use to hold a diary and pen and designs for my new projects. Features a 3d printed case and uses an Arduino nano. Great gift idea.
Infra Red LED Transmitter GL480
Infra Red Phototransistor PT481F
1k & 2k2 Resistor
The case was printed on a Creality Ender 3 Printer using three separate prints.
- Base Unit
- Internal case components
The print files and instructions for printing can be found here on Thingiverse.
How the Circuit Works
The Arduino Nano is programmed to communicate with a Servo and Fingerprint Sensor. The Fingerprint sensor is preprogrammed with a library of Fingerprints that you want to be able to unlock the Diary Door.
The door lock button is used to actuate the locking mechanism when the lid is closed. An infrared sensor is used to detect that the door is closed.
I have used WS2182 LEDs which have a built-in IC which enables them to be addressed by the Arduino using three separate wires however a broad range of colors and brightnesses color can be created by sending a command to the LED. This is done through a special library loaded into the Arduino IDE covered in the testing section.
Build and Test the Fingerprint Reader Circuit
Assemble the circuit on a Breadboard following the circuit diagram provided.
The following Libraries need to be downloaded and added to the Arduino IDE before loading the program into the Arduino Nano
Load the Adafruit_enroll_fingerprints.INO file and follow the prompts to enroll 10 new fingerprints in the first 10 locations. My advice is to use two separate fingers 5 times so that you can be sure of a reliable unlock of the unit.
Test the Unit
Load the Biometric_Personal_Diary.INO file and load the code into the Arduino Nano. Test the door lock button is operating the locking mechanism when the infrared sensor is blocked simulating the lid being is closed. On power up the blue LED startup sequence occurs. The Servo should be stable and not be chattering after initial powerup.
Once powered up, with the Infrared Sensor Blocked the green Light within the Finger Print Sensor should turn on. At this point, the unit is ready to read a fingerprint. Place your previously scanned and recorded finger on the sensor and hold until the LEDs indicate a reading has been completed. If the LEDs are red then the fingerprint is not recognized and the unit will try to continue to read. If the LEDs are green then the fingerprint has been recognized and you should see the Servo actuate. (See the video clip of the test above)
Mount the Arduino Nano on a piece of Vero Board cut to size to fit into the base cavity as per the photos. Follow the circuit diagram and photographs to add the resister and power connections using hookup wire.
Finger Print Sensor
Using hookup wire and heat shrink carefully solder additional extension wires on the Finger Print Sensor to ensure the wires can reach the Arduino. Lay the wiring through the base holes neatly as per the photos. Position the Finger Print Sensor in the base unit as per the photos provided.
Infra Red Sensor
Follow the circuit to connect the IR Sensor and LED and ix them into the 3D printed LED sensor mount provided using hot glue. Route the wires to the Arduino to ensure they fit neatly into the base unit and can reach the Arduino. Check that the gap between the Infra Red LED and Sensor will fit the closed door tab provided in the 3D print as per the photos. This is used to break the beam when the Diary door is closed.
Mount the Servo in the Servo Mount Bracket provided in the 3d Print. Carefully lay the cables inside the base so they can reach the Arduino. Using a paperclip attach the Servo Arm to the lock mechanism and position it in the base unit. Leave the Servo sitting in position so it can be aligned and fixed when final testing and assembly occurs.
Rechargeable Power Bank
Ensure the Powerbank you use will fit into the space provided and also enable access to the USB charging port of the Powerbank. Align the USB port to the front of the case and use a drill to create a suitable hole for charging purposes (See photo)
Connect the power and push button switches to hookup wire and use epoxy glue to fasten these into the holes provided in the base unit.
Ensure the Arduino board and cables will fit into the cavity by neatly routing wires and trimming lengths before soldering onto the Vero Board.
Testing the unit
Power on the unit using the switch and test the basic operation of the unit.
Once the unit is tested the final adjustments need to made to ensure smooth operation. Attach the lid to the base unit and check the door opens and closes freely.
Servo Lock Mechanism Alignment
Observe the position of the Servo in the video clip for the closure and opening of the door mechanism. Assemble the door mechanism and adjust the servo arm to ensure the door lock mechanism is not engaged. Place the door lock tab into the base unit to test the alignment of the locking mechanism. Power on the unit and test that the Door Mechanism engages correctly and travels freely. The sensor unit has a guide that assists with ensuring the door lock mechanism does not jam. Once correct then hot glue the Servo and Sensor unit in place.
Mount the Door Lock and Door Closed Tabs
WIth the wiring neatly tucked away place the L shaped cover in place to obscure the Nano, Servo, and wiring. Once satisfied put the Door Lock Tab and the Door Closure Tab into the base unit holes and check the lock mechanism works to open and close.
When aligned and tested put epoxy glue onto the tabs and then gently close the lid and leave for a few hours to dry. Finally test the operation of the unit before adding your Diary, Pen and other items you want secure from prying little fingers and hands.
I hope you enjoy the construction and use of this cool little gadget!!
No preview (download only).