![]() To activate the solenoid lock, we need to slightly modify the "fingerprint" code we used in the last step. If you test out the correct fingerprint, it should display the line "Found ID #_ with confidence of _" depending on how clear the match was.Ĭongratulations! The fingerprint sensor should be working now! If you are still having trouble, we recommend using this tutorial to get further clarification: Fingerprint Sensor Tutorial.ġ. Right now, the solenoid lock will not work but it will say that it is waiting for a valid finger. ![]() In order to see whether the fingerprint sensor will recognize your fingerprint, go to File -> Examples -> Adafruit Fingerprint Sensor Library -> "fingerprint" to open a new program. Also, make sure the baud rate for the Serial Monitor is 9600.ħ. **Note: If you see the message "Did not find fingerprint sensor :(" when you open the Serial Monitor after uploading the code, we recommend switching the RX and TX wire (without changing the code) or resetting the Arduino. You can enroll 127 fingerprints however, if you type in the same index again for a different fingerprint image, the previous one will be overridden. (You will need to place your finger on the sensor twice). Then follow the instructions in the Serial Monitor to correctly enroll your fingerprint. Type in whichever ID you want your fingerprint to have and press "send". It will prompt you to enter an ID from 1 to 127. ![]() To enroll your fingerprints, go to the Serial Monitor (Tools -> Serial Monitor). Then compile the code and upload it onto the Arduino.Ħ. (You can check this by going to Tools -> Port.) Also, make sure you are boarding the correct Arduino by going to Tools -> Board. Connect the Arduino to your computer and make sure that you are using the correct port. This will open up the code to enroll the fingerprints.ĥ. To access the code to enroll the fingerprints, go to File -> Examples -> Adafruit Fingerprint Sensor Library -> enroll. Most of the code is already included in the library. Look up the Adafruit Fingerprint Sensor Library and install it.Ĥ. Then in the Arduino IDE go to Tools -> Manage Libraries. Download the Adafruit Fingerprint Library from GitHub: Adafruit Fingerprint Sensor Library.ģ. Download the Arduino IDE (if you don't already have it installed) from this link.Ģ. Connect all the wires and components as per the circuit schematic above.ġ. ![]() Since the wires of the fingerprint sensor and solenoid lock are stranded, we recommend soldering solid wires to each stranded wire and adding heat shrink (to help with connections).Ĥ. Do the same thing for the solenoid wire: Remove the JST connector and strip the wires.ģ. Once you correctly attach the wire harness to the fingerprint sensor, remove the JST connector on the other hand and strip the wires. You can find more information about the fingerprint sensor and what each wire corresponds to by going to this link.Ģ. **Note: when referring to the diagram and comparing it to your own fingerprint sensor, make sure to hold the fingerprint sensor in the same orientation as the image! (In the image above, the fingerprint sensor is upside down). The only wires we will be using for the fingerprint sensor are the RX wire, TX wire, VCC (power) wire, and GND wire (refer to image). Make sure the orientation of the cables is correct (refer to the image above). Attach the ribbon cable to the fingerprint sensor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |