Fingerprint sensor error

Can anyone help me how to solve 'Did not find fingerprint sensor' error message ?
I have a 6 pin fingerprint sensor.
I don't even know which pin does what.
Please help me out. I am stack with it almost a month.

asif_abdullah:
Can anyone help me how to solve 'Did not find fingerprint sensor' error message ?

Not without some details. What sensor? What code? How is it wired? Don't you think those are some pretty important things to tell someone if you want them to be able to figure out what is wrong with your project?

asif_abdullah:
I have a 6 pin fingerprint sensor.
I don't even know which pin does what.

Well working in the dark is never a good idea. Maybe you should spend a little time going over the datasheet for your sensor and figure out what the pins do. Why would you try to work with something without trying to figure out how it works first?

I am following this tutorial.
https://www.dfrobot.com/wiki/index.php/SEN0188_Fingerprint
I have the exact same sensor.
Is there a problem with my IDE?
I am using arduino-1.8.2 IDE.

Sigh. Do you want me to debug their project? I assume that theirs works since they posted it.

Or do you want me to try to help you debug YOUR project? In which case showing me the example you tried to follow and obviously failed isn’t going to help much is it? Why don’t you show us the code YOU have and the wiring as YOU have it.

Seriously, is this hard to understand?

My code:
/*
enroll.ino

Author:Vigoss.KK
www.elecrow.com
2013-10-5

enroll your finger

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <Adafruit_Fingerprint.h>
#include <Streaming.h>
#include <SoftwareSerial.h>

uint8_t getFingerprintEnroll(uint8_t id);

SoftwareSerial mySerial(2, 3); // rx, tx

Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);

void setup()
{

Serial.begin(38400);

Serial.println(“fingertest”);
finger.begin(19200);

if (finger.verifyPassword())
{
Serial.println(“Fingerprint sensor init ok”);
}
else
{
Serial.println(“Did not find fingerprint sensor :(”);
while (1);
}
}

void loop() // run over and over again
{
Serial.println(“Type in the ID # you want to save this finger as…\r\n(end with an ‘a’, such as 15a)”);
uint8_t id = 0;

while (Serial.available())
{
char c = Serial.read();
}

while (true)
{
while (! Serial.available());
char c = Serial.read();

if (! isdigit(c))
{
while(Serial.available())
{
c = Serial.read();
}
break;
}
id *= 10;
id += c - ‘0’;
}

Serial.print(“Enrolling ID #”);
Serial.println(id);

while (!getFingerprintEnroll(id));
}

uint8_t getFingerprintEnroll(uint8_t id)
{
uint8_t p = -1;
Serial.println(“Waiting for valid finger to enroll”);
while (p != FINGERPRINT_OK) {
p = finger.getImage();
switch (p) {
case FINGERPRINT_OK:
Serial.println(“Image taken”);
break;
case FINGERPRINT_NOFINGER:
//Serial.println(".");
break;
case FINGERPRINT_PACKETRECIEVEERR:
Serial.println(“Communication error”);
break;
case FINGERPRINT_IMAGEFAIL:
Serial.println(“Imaging error”);
break;
default:
Serial.println(“Unknown error”);
break;
}
}

// OK success!

p = finger.image2Tz(1);
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_INVALIDIMAGE:
Serial.println(“Could not find fingerprint features”);
return p;
default:
Serial.println(“Unknown error”);
return p;
}

Serial.println(“Remove finger”);
delay(2000);
p = 0;
while (p != FINGERPRINT_NOFINGER) {
p = finger.getImage();
}

p = -1;
Serial.println(“Place same finger again”);
while (p != FINGERPRINT_OK) {
p = finger.getImage();
switch (p) {
case FINGERPRINT_OK:
Serial.println(“Image taken”);
break;
case FINGERPRINT_NOFINGER:
//Serial.print(".");
break;
case FINGERPRINT_PACKETRECIEVEERR:
Serial.println(“Communication error”);
break;
case FINGERPRINT_IMAGEFAIL:
Serial.println(“Imaging error”);
break;
default:
Serial.println(“Unknown error”);
break;
}
}

// OK success!

p = finger.image2Tz(2);
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_INVALIDIMAGE:
Serial.println(“Could not find fingerprint features”);
return p;
default:
Serial.println(“Unknown error”);
return p;
}

// OK converted!
p = finger.createModel();
if (p == FINGERPRINT_OK) {
Serial.println(“Prints matched!”);
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {
Serial.println(“Communication error”);
return p;
} else if (p == FINGERPRINT_ENROLLMISMATCH) {
Serial.println(“Fingerprints did not match”);
return p;
} else {
Serial.println(“Unknown error”);
return p;
}

p = finger.storeModel(id);
if (p == FINGERPRINT_OK) {
Serial.println(“Stored!”);
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {
Serial.println(“Communication error”);
return p;
} else if (p == FINGERPRINT_BADLOCATION) {
Serial.println(“Could not store in that location”);
return p;
} else if (p == FINGERPRINT_FLASHERR) {
Serial.println(“Error writing to flash”);
return p;
} else {
Serial.println(“Unknown error”);
return p;
}
}

And connections are:
pin 3: 5v
pin 4: arduino digital port 2
pin 5: arduino digital port 3
pin 6: GND

Please read this before posting again. http://forum.arduino.cc/index.php/topic,148850.0.html You know, reading BEFORE you write is good in life, but critical in coding.

Please pay particular attention to point 7 about code tags and posting code so that it is readable. Try to have enough respect for the folks here who are volunteering their time for you to follow the rules.

You still haven't given me the name of the sensor so I can't look up how it should be connected. I'm tired of trying to pry information from you. Maybe someone else will be interested in helping.

My sensor name is: SEN0188 Fingerprint
Here is my code:

/*
  enroll.ino

  Author:Vigoss.KK
  www.elecrow.com
  2013-10-5
 
  enroll your finger
  
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
#include <Adafruit_Fingerprint.h>
#include <Streaming.h>
#include <SoftwareSerial.h>

uint8_t getFingerprintEnroll(uint8_t id);

SoftwareSerial mySerial(2, 3);                    // rx, tx

Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);


void setup()
{

    Serial.begin(38400);
    
    Serial.println("fingertest");
    finger.begin(19200);

    if (finger.verifyPassword()) 
    {
        Serial.println("Fingerprint sensor init ok");
    } 
    else 
    {
        Serial.println("Did not find fingerprint sensor :(");
        while (1);
    }
}

void loop()                     // run over and over again
{
    Serial.println("Type in the ID # you want to save this finger as...\r\n(end with an 'a', such as 15a)");
    uint8_t id = 0;
    
    while (Serial.available())
    {
        char c = Serial.read();
    }
            
    while (true) 
    {
        while (! Serial.available());
        char c = Serial.read();
        
        if (! isdigit(c)) 
        {
            while(Serial.available())
            {
                c = Serial.read();
            }
            break;
        }
        id *= 10;
        id += c - '0';
    }
    
    Serial.print("Enrolling ID #");
    Serial.println(id);

    while (!getFingerprintEnroll(id));
}

uint8_t getFingerprintEnroll(uint8_t id) 
{
    uint8_t p = -1;
    Serial.println("Waiting for valid finger to enroll");
    while (p != FINGERPRINT_OK) {
        p = finger.getImage();
        switch (p) {
            case FINGERPRINT_OK:
            Serial.println("Image taken");
            break;
            case FINGERPRINT_NOFINGER:
            //Serial.println(".");
            break;
            case FINGERPRINT_PACKETRECIEVEERR:
            Serial.println("Communication error");
            break;
            case FINGERPRINT_IMAGEFAIL:
            Serial.println("Imaging error");
            break;
            default:
            Serial.println("Unknown error");
            break;
        }
    }

    // OK success!

    p = finger.image2Tz(1);
    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_INVALIDIMAGE:
        Serial.println("Could not find fingerprint features");
        return p;
        default:
        Serial.println("Unknown error");
        return p;
    }

    Serial.println("Remove finger");
    delay(2000);
    p = 0;
    while (p != FINGERPRINT_NOFINGER) {
        p = finger.getImage();
    }

    p = -1;
    Serial.println("Place same finger again");
    while (p != FINGERPRINT_OK) {
        p = finger.getImage();
        switch (p) {
            case FINGERPRINT_OK:
            Serial.println("Image taken");
            break;
            case FINGERPRINT_NOFINGER:
            //Serial.print(".");
            break;
            case FINGERPRINT_PACKETRECIEVEERR:
            Serial.println("Communication error");
            break;
            case FINGERPRINT_IMAGEFAIL:
            Serial.println("Imaging error");
            break;
            default:
            Serial.println("Unknown error");
            break;
        }
    }

    // OK success!

    p = finger.image2Tz(2);
    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_INVALIDIMAGE:
        Serial.println("Could not find fingerprint features");
        return p;
        default:
        Serial.println("Unknown error");
        return p;
    }


    // OK converted!
    p = finger.createModel();
    if (p == FINGERPRINT_OK) {
        Serial.println("Prints matched!");
    } else if (p == FINGERPRINT_PACKETRECIEVEERR) {
        Serial.println("Communication error");
        return p;
    } else if (p == FINGERPRINT_ENROLLMISMATCH) {
        Serial.println("Fingerprints did not match");
        return p;
    } else {
        Serial.println("Unknown error");
        return p;
    }

    p = finger.storeModel(id);
    if (p == FINGERPRINT_OK) {
        Serial.println("Stored!");
    } else if (p == FINGERPRINT_PACKETRECIEVEERR) {
        Serial.println("Communication error");
        return p;
    } else if (p == FINGERPRINT_BADLOCATION) {
        Serial.println("Could not store in that location");
        return p;
    } else if (p == FINGERPRINT_FLASHERR) {
        Serial.println("Error writing to flash");
        return p;
    } else {
        Serial.println("Unknown error");
        return p;
    }
}

I found this page on the sensor. Power Adapter-5V 4A WIKI - DFRobot Scroll down to the wiring part. It would seem you have it wired backwards.

I wired the pins correctly.
But this error message is still displaying.

asif_abdullah:
I wired the pins correctly.
But this error message is still displaying.

Got a pic? How's it wired now?

Red for VCC
Green for tx
Blue for rx
Black for GND

That's a really great picture of some wires going into a breadboard. Unfortunately it doesn't really show anything about the connections to the Arduino or the camera. Did you really think that was going to help much?

Is it perfect ?

I can't see where the white wires go against the white breadboard background.

It looks to me like that furthest outside white wire is going to either the green or blue wires. Is that correct?

yes

OK, so go to that link for the sensor that I gave you and look about a quarter of the way down on the page. There is the pinout for the sensor. I can’t tell which side of what you are showing is pin 1 and which side is pin 6, BUT should either of those be going to one of the serial pins according to that pinout?

Is it possible to burn the chip of a fingerprint sensor ?
And one more question is there any IDE problem possible ?
I am using arduino-1.6.6

Why don't you answer my question? Should either 1 or 6 from the sensor be going to one of the serial lines?

Tnx for ur reply.
I have solved the problem.
Now I have enrolled my fingerprint in arduino.