Hi there.... I am Kaustav Malik
In the national capital of India, that s Delhi is more the 12% of vehicles have been stolen in Delhi, in 2018, which becomes an economical loss to the owner. The rate of stealing vehicles in our national capital is five vehicles every hour, on the other hand some children steal their parents vehicles key and drive the vehicle rashly and often cause accidents hurting themselves as well as the ones, whom they have hit and it becomes a problem for the parents.
So to prevent this here is my prototype. In this prototype, there is a fingerprint sensor in which my fingerprint is stored. As I keep my finger on the fingerprint sensor it checks, if the fingerprint matches with the fingerprint stored, then it passes the control to the camera, which perform the face recognition. In that the authorized person�s face is stored and the camera will scan our face and if it matches with face stored in it, then only the motor starts. The same process can be implemented by removing the key and the auto-ignition part of the vehicle
By adding this system the security of our vehicle will be secured at a higher level of security. Our daily life will be much easier. There will be no tension of misplacing the key of the vehicle and giving a kick start to the motorcycles. We have only just to place our finger on the fingerprint sensor, scan our face and if all those security steps satisfies, the vehicle would start and we can enjoy our ride.
My IDEATE FOR INDIA problem statement video
The code for the fingerprint part:
/***************************************************
This is an example sketch for our optical Fingerprint sensor
Written by KAUSTAV MALIK
BSD license, all text above must be included in any redistribution
****************************************************/
#include (Adafruit_Fingerprint.h)
// On Leonardo/Micro or others with hardware serial, use those! #0 is green wire, #1 is white
// uncomment this line:
// #define mySerial Serial1
// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (YELLOW wire)
// pin #3 is OUT from arduino (WHITE wire)
// comment these two lines if using hardware serial
#include
SoftwareSerial mySerial(2, 3);
//pin #12 is 12v dc motor
int motor=12;
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
pinMode(motor, OUTPUT);
Serial.begin(9600);
while (!Serial); // For Yun/Leo/Micro/Zero/...
delay(100);
Serial.println("\n\nAdafruit finger detect test");
// set the data rate for the sensor serial port
finger.begin(57600);
if (finger.verifyPassword()) {
Serial.println("Found fingerprint sensor!");
}
else {
Serial.println("Did not find fingerprint sensor :(");
while (1) { delay(1); }
}
finger.getTemplateCount();
Serial.print("Sensor contains "); Serial.print(finger.templateCount); Serial.println(" templates");
Se
rial.println("Waiting for valid finger..."
);
}
void loop() // run over and over again
{
ge
tFingerprintIDez();
delay(50); //don't ned to run this at full speed.
}
uint8_t getFingerprintID() {
uint8_t p = finger.getImage();
switch (p) {
case FINGERPRINT_OK:
Serial.println("Image taken");
break;
case FINGERPRINT_NOFINGER:
Serial.println("No finger detected");
return p;
case FINGERPRINT_PACKETRECIEVEERR:
Serial.println("Communication error");
return p;
case FINGERPRINT_IMAGEFAIL:
Serial.println("Imaging error");
return p;
default:
Serial.println("Unknown error");
return p;
}
// OK success!
p = finger.image2Tz();
switch (p) {
case FINGERPRINT_OK:
Serial.println("Image converted");
break;
case FINGERPRINT_IMAGEMESS:
Serial.println("Image too messy");
return p;
case FINGERPRINT_PACKETRECIEVEERR:
Serial.println("Communication error");
return p;
case FINGERPRINT_FEATUREFAIL:
Serial.println("Could not find fingerprint features");
return p;
case FINGERPRINT_INVALIDIM
AGE:
Serial.println("Could not find fingerprint features");
return p;
default:
Serial.println("Unknown error");
return p;
}
// OK converted!
p = finger.fingerFastSearch();
if (p == FINGERPRINT_OK) {
Serial.println("Found a print match!");
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {
Serial.println("Communication error");
return p;
} else if (p == FINGERPRINT_NOTFOUND) {
Serial.println("Did not find a match");
return p;
} else {
Serial.println("Unknown error");
return p;
}
// found a match!
Serial.print("Found ID #"); Serial.print(finger.fingerID);
di
gitalWrite(LED_BUILTIN, HIGH);
digitalWrite(motor, HIGH);
Serial.print(" with confidence of "); Serial.println(finger.confidence);
return finger.fingerID;
}
// returns -1 if failed, otherwise returns ID #
int getFingerprintIDez() {
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("Found ID #"); Serial.print(finger.fingerID);
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(motor, HIGH);
Serial.print(" with confidence of "); Serial.println(finger.confidence);
return finger.fingerID;
}
Link to download the library:
https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library