This is the wiring for the second version, I removed the push button as the opening from inside is done now by ‘B’ button. We have used EEPROM in the Arduino to store the password in it. The setup is as shown below.We have only added LEDs to show the state of the lock. And as the first version it waits for a valid fingerprint to open the lock. After learning how the 4×4 keypad with Arduino works, we can now demonstrate how this keypad can be used to make a simple keyword based door lock. To add new finger template press ‘A’ it will ask you for password that’s already in the code ‘1’ ‘2’ ‘3’ ‘4’, you can modify it there, you enter the code then you enter the ID number as a 3 digits format, examples “001”, “021” or “115” you can enter IDs from 1 to 127, after tapping the ID it will ask you to place the finger, remove it and place it again…Job done. The keypad is placed inside which means you can open the lock by pressing a button here I’ve chosed ‘B’ as ‘A’ is for adding a new person. That’s pretty much my wiring, so you won’t be confused by the push button, actually instead of getting the high level from the Arduino 5v pin which requires me to add other wires (and it will be more messy) I just put the pin 8 on High and I read the button state from pin 9 which has a pull-down resistor.Īs you can see in the 1st version you have to use a computer (or whatever you use to program you Arduino) in order to add new templates to the module flash drive, that’s why I made this more embedded version that requires only power source to work, and the new templates are now added via a keypad (which meant to stay on the inside as this project is based on access by fingerprint only, you can combine it with my other project based on keypad only, you’ll have to do some modification but they’re easy). Once the code begin working, the Arduino is constantly waiting for a finger to place on the sensor, otherwise if you’re inside just press the button to open, if the finger is valid (is in the database) it will opens the lock and shows a message and the name related to the fingerprint ID, if the ID isn’t paired with a name it will show some strange things :D… Then upload the second code and add the names you want for each user, upload the code and here we go, the fingerprint templates are stored in the modules internal flash drive. The first version uses: LCD + fingerprint sensor + l298n (to control the system) + push button with a resistor (I used 1k).įor the first version, you need to upload the “Enroll” code first from the fingerprint library (down bellow), and use it to add a fingerprint, upload it and open the serial monitor then type the ID and press “Enter” then follow the steps as in the fingerprint tutorial. Step by step on how to use the L298n dual H-bridge driver with Arduino Interfacing FPM10A (50DY) Fingerprint sensor with ArduinoĪrduino LCD I2C simple use and direct write from serial monitor And for the second version of the project you'll need a keypad, here I'm using 4x4Īnd don't forget about your door lock system, I used the one in the picture (10 Bucks from chinese store) but I used only the lock unit, and since that unit has a DC motor that should turn in both directions I had to use my L298n dual H-bridge module, you can use a little IC H bridge if you want, but it depends on the system you're using, you can replace all by a transistor and a solenoid lock.īefore you continue make sure you know how to use all the elements mentionned above, as it will make your project easy to adapt and spot any problem:Īrduino uno + 4×4 Keypad Matrix + LCD i2c screen Adafruit FPM10A optical fingerprint sensor Please if anyone has any idea of what is going on and why it is not working let me know pleaaaaase.The hardware needed for this project are: Furthurmore, I have installed all the necessary libraries that are needed for the LCD and the keypad. I have installed the same exact code but did not work with me and it didn't give me an error either. I bought the hardware and hook everything up. I was really interested on the idea of making similar project to what I have found. I found a tutorial online and the codes were posted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |