DIY

How to start a car/motorcycle technique with a fingerprint

How to start a car/motorcycle equipment with a print finger  How to start a car/motorcycle equipment with a fingerprint How to start a car/motorcycle equipment with a print finger From this article we will learn how to install on any car, motorcycle, scooter activation of the ignition system not with a key, but with a fingerprint. Specifically, the master installs this device on a scooter. The assembly is not difficult and can be done by any user.
During operation, the system is powered by a 12 V scooter battery. The Arduino and other components are powered by 5V, via a 12/24V to 5V converter. As a converter, the master uses a car adapter to charge the phone. The circuit includes a rocker switch that cuts off power to the system. The device has an enrollment process in which the user can enter one or more fingerprints into the database. Placing an authorized fingerprint on the reader will move the relay to the opposite position to its current state. This means that the relay has two states: normally closed (NC) and normally open (NO). The LED present in the circuit signals that the fingerprint has been read and is defined as “correct”.
Let's watch a short video.

Tools and materials: -Fingerprint sensor module R307; -Arduino Nano; -Car phone adapter; -5v relay; -LED; -DP-DT switch; -Soldering iron; -Drill;
-Knife;
– Drill;
The scheme of connecting components is very simple.
How to start a car/motorcycle equipment with a fingerprint How to start a car/motorcycle equipment with a fingerprint Before installation, you need to install the code on the Arduino. We connect Arduino to the computer. Install the Adafruit Fingerprint library.
After installation, go to File & gt; Examples & gt; Adafruit Fingerprint Librery & gt; enroll. Here you can add your fingerprint.
Then load the code below:

 #define RELAY1 9 #define RELAY_OFF LOW #define RELAY_ON HIGH #include #include int getFingerprintIDez (); //pin # 2 is IN from sensor (GREEN wire) //pin # 3 is OUT from arduino (WHITE wire) SoftwareSerial mySerial (2, 3); Adafruit_Fingerprint finger = Adafruit_Fingerprint (& amp; mySerial); //On Leonardo/Micro or others with hardware serial, use those! # 0 is green wire, # 1 is white //Adafruit_Fingerprint finger = Adafruit_Fingerprint (& amp; Serial1); boolean lastButton = LOW; boolean relayOn = false; void setup () & # 123; pinMode (RELAY1, OUTPUT); digitalWrite (RELAY1, RELAY_ON); pinMode (5, OUTPUT); digitalWrite (5, LOW); while (! Serial); //For Yun/Leo/Micro/Zero/... Serial.begin (9600); Serial.println (& # 34; Adafruit finger detect test & # 34;); //set the data rate for the sensor serial port finger.begin (57600); if (finger.verifyPassword ()) & # 123; Serial.println (& # 34; Found fingerprint sensor! & # 34;); } else & # 123; Serial.println (& # 34; Did not find fingerprint sensor & # 58; (& # 34;); while (1);} Serial.println (& # 34; Waiting for valid finger ... & # 34;) ;} void loop () //run over and over again & # 123; getFingerprintIDez (); delay (50); //don & # 39; t ned to run this at full speed.} uint8_t getFingerprintID () & # 123; uint8_t p = finger.getImage (); switch (p) & # 123; case FINGERPRINT_OK & # 58; Serial.println (& # 34; Image taken & # 34;); break; case FINGERPRINT_NOFINGER & # 58; Serial.println (& # 34; No finger detected & # 34;); return p; case FINGERPRINT_PACKETRECIEVEERR & # 58; Serial.println (& # 34; Communication error & # 34;); return p; case FINGERPRINT_IMAGEFAIL & # 58; Serial.println (& # 34; Imaging error & # 34;); return p; default & # 58; Serial.println (& # 34; Unknown error & # 34;); return p;} //OK success! p = finger.image2Tz (); switch (p) & # 123; case FINGERPRINT_OK & # 58; Serial.println (& # 34; Image converted & # 34;); break; case FINGERPRINT_IMAGEMESS & # 58; Serial.println (& # 34; Image too messy & # 34;); return p; case FINGERPRINT_PACKETRECIEVEERR & # 58; Serial.println (& # 34; Communication error & # 34;); return p; case FINGERPRINT_FEATUREFAIL & # 58; Serial.println (& # 34; Could not find fingerprint features & # 34;); return p; case FINGERPRINT_INVALIDIMAGE & # 58; Serial.println (& # 34; Could not find fingerprint features & # 34;); return p; default & # 58; Serial.println (& # 34; Unknown error & # 34;); return p; } //OK converted! p = finger.fingerFastSearch (); if (p == FINGERPRINT_OK) & # 123; Serial.println (& # 34; Found a print match! & # 34;); } else if (p == FINGERPRINT_PACKETRECIEVEERR) & # 123; Serial.println (& # 34; Communication error & # 34;); return p; } else if (p == FINGERPRINT_NOTFOUND) & # 123; Serial.println (& # 34; Did not find a match & # 34;); return p; } else & # 123; Serial.println (& # 34; Unknown error & # 34;); return p; } //found a match! Serial.print (& # 34; Found ID # & # 34;); Serial.print (finger.fingerID); Serial.print (& # 34; with confidence of & # 34;); Serial.println (finger.confidence); } //returns -1 if failed, otherwise returns ID # int getFingerprintIDez () & # 123; uint8_t p = finger.getImage (); if (p! = FINGERPRINT_OK) return -1; p = finger.image2Tz (); if (p! = FINGERPRINT_OK) return -1; p = finger.fingerFastSearch (); if (p! = FINGERPRINT_OK) return -1; //found a match! Serial.print (& # 34; Found ID # & # 34;); Serial.print (finger.fingerID); Serial.print (& # 34; with confidence of & # 34;); Serial.println (finger.confidence); if (finger.confidence & gt; 70) & # 123; digitalWrite (RELAY1, RELAY_OFF); Serial.println (& # 34; Opening door for 4 seconds & # 34;); digitalWrite (5, HIGH); Serial.println (& # 34; Stop that door, mate & # 34;); } return finger.fingerID; }  

How to start a car/motorcycle equipment with a print finger  How to start a car/motorcycle equipment with a fingerprint Then you need to select a location on the scooter panel and make a hole for the fingerprint sensor, LED and switch. Connect everything according to the diagram. It connects wires from the ignition switch to the relay.
 How to start a car/motorcycle equipment with a fingerprint For this example, such a system can be install on any equipment that has an ignition lock.

Source:

usamodelkina.ru

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button