Finger print , lcd 16x2 interfacing using LiquidCrystal and

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
umer
 
Posts: 9
Joined: Sun Jul 13, 2014 3:08 am

Finger print , lcd 16x2 interfacing using LiquidCrystal and

Post by umer »

hy i'm trying to interface adafruit Finger print sensor , 16x2 lcd using LiquidCrystal and Adafruit_Fingerprint libraries both are work well speratly but when interface together they lcd does't showing the output. i don't want to uses serial ports for lcd that's i use LiquidCrysta.h

my code is

Code: Select all

#include <LiquidCrystal.h>
#include <Adafruit_Fingerprint.h>
#if ARDUINO >= 100
 #include <SoftwareSerial.h>
#else
 #include <NewSoftSerial.h>
#endif
uint8_t getFingerprintEnroll(uint8_t id);
#if ARDUINO >= 100
//green 11 and white 12
SoftwareSerial mySerial(11, 12);
#else
NewSoftSerial mySerial(11, 12);
#endif
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);

//4 rs==10 and enable 6 ==9
LiquidCrystal lcd(10, 9, 5, 4, 3, 2);
void setup() {
  lcd.begin(16, 2);
 Serial.begin(9600);
  lcd.print("fingertest");
  delay(200);
  finger.begin(57600);
  if (finger.verifyPassword()) {
    delay(200);
    lcd.print("Found fingerprint sensor!");
  } else {
    lcd.print("Did not find fingerprint sensor smiley-sad");
    while (1);
  }
  delay(200);
  lcd.print("fp code not working");
}
void loop() {
}
lcd only showing "fingertest"

i think error is at this function

if (finger.verifyPassword()


plz suggest me urgently smiley-sad

Report to moderator 207.244.78.9
Last edited by umer on Sun Jul 13, 2014 11:32 am, edited 1 time in total.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by adafruit_support_rick »

You've commented out the finger.begin(57600) statement. It won't work without that.

Code: Select all

  finger.begin(57600);

umer
 
Posts: 9
Joined: Sun Jul 13, 2014 3:08 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by umer »

1st of all sorry for my multiple same posts
but i also use this without comment it giving me same blank screen after fingertest message..
and now i also update my code above..

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by adafruit_support_rick »

Not sure what to tell you. Your code works on my system. You may have a bad connection to the fingerprint sensor. Can you post a picture of your connections?

umer
 
Posts: 9
Joined: Sun Jul 13, 2014 3:08 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by umer »

bro i'm using JHD162 lcd not on serial mode and my lcd have not serial ports that's why i'm using lequidcrystal.h library i check my connection many times that are right i will post pic of connection as well it already running in my compiler with no error but after finger test msg it not execute or run if statement there is problem bcz if statement not taking any decision or i think finger.verifypassword function not throwing any value :/ i think u will got the problem sir do you use common JHD lcd 162 with adafruit finger print scanner ??

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by adafruit_support_rick »

No, I'm not using an LCD. I changed the lcd.print statements to Serial.print, and I'm just looking at the output in Serial Monitor. Does your fingerprint sensor work if you disconnect the LCD and do Serial.print instead?

umer
 
Posts: 9
Joined: Sun Jul 13, 2014 3:08 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by umer »

yes its working fine in serial monitor

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by adafruit_support_rick »

I don't know why LiquidCrystal would interfere in any way with the fingerprint sensor. I left all that in your sketch when I ran it - I simply didn't connect an actual LCD since those lines are all outputs. It still worked fine.

There must be some issue with the way you have the LCD wired? That's all I can think of.

umer
 
Posts: 9
Joined: Sun Jul 13, 2014 3:08 am

Re: Finger print , lcd 16x2 interfacing using LiquidCrystal

Post by umer »

ok i will post wiring pic as soon as possible

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”