I have completed the interfacing but now i have to merge all the interfacing
I have tried to merge the codes but it isn't responding correctly could anyone please help me..
Thank you
I have completed the interfacing but now i have to merge all the interfacing
I have tried to merge the codes but it isn't responding correctly could anyone please help me..
Thank you
attached the program which is error free but is not working properly
Final.ino (10.5 KB)
Ok you need to get rid of this stuff and use the Keypad library.
pinMode(r1,OUTPUT);
pinMode(r2,OUTPUT);
pinMode(r3,OUTPUT);
pinMode(r4,OUTPUT);pinMode(c1,INPUT);
pinMode(c2,INPUT);
pinMode(c3,INPUT);
pinMode(c4,INPUT);
.
.
.
digitalWrite(c1,HIGH);
digitalWrite(c2,HIGH);
digitalWrite(c3,HIGH);
digitalWrite(c4,HIGH);//checking everything one by one
//case 1: col1 =0 while other col as 1
digitalWrite(r1,LOW);
digitalWrite(r2,HIGH);
digitalWrite(r3,HIGH);
digitalWrite(r4,HIGH);
Don't use String,
String key="";
String s;
String pass="1234";
Instead, use C strings which are char arrays. Actually you can combine the password library with Keypad library so it makes things easier for you.
I'm not sure why you have two of these,
Serial.begin(9600);
lcd.begin(16,4);And you can combine all the different setups and loops into one setup() and loop(), also this too,
#include <Adafruit_Fingerprint.h>
#if ARDUINO >= 100
#include <SoftwareSerial.h>
#else
#include <NewSoftSerial.h>
#endif#if ARDUINO >= 100
SoftwareSerial mySerial(51, 50);
#else
NewSoftSerial mySerial(51, 50);
#endif
You said things are not working correctly, that could be because of the delay( ); functions in your code. Look into the Blink Without Delay sketch.
These are all things you can actually do yourself if you sit down and take the time to understand what does what.