Microcontroller › 8051 › R305 Finger print module with P89V51RD2
- This topic has 17 replies, 10 voices, and was last updated 7 years, 10 months ago by gopal.
-
AuthorPosts
-
February 27, 2013 at 7:01 pm #3854Disha rakaParticipant
Dear all,
here i m using R305 Finger print module with P89V51RD2
but my program is not working please see my program n say me corrections,
or give me your code please…
its urgent friends…
reply me plz plz,,,,
program:
#include<reg51.h>#include<string.h>sfr ldata=0x90;sbit rs=P2^3;sbit rw=P2^4;sbit en=P2^5;sbit busy=P1^7;sbit S1=P3^2;sbit S2=P3^3;sbit S3=P3^4;//===================================================================/void fingerprint(void);void UARTSendByte(unsigned char[],unsigned char dt );unsigned char UARTGetByte(void);void fingerdata(char);void conv();void elect();void lcdcmd(unsigned char);void lcddata(unsigned char);void lcdready();void msdelay(unsigned int);void UARTInit(void);//==============================================================================/unsigned int i,j,g,h,k,l,key,m,n;code unsigned char mydata1[]"WELCOME"); //7code unsigned char mydata2[]"SCAN UR FINGER 1st"); // 18code unsigned char mydata3[]"SCANNING"); //9code unsigned char mydata4[]"ACCESS GRANTED"); //14code unsigned char mydata5[]"ACCESS DENIED"); //13code unsigned char mydata8[]"THANKS"); //6code unsigned char mydata12[]">");code unsigned char mydata11[]"<<");unsigned char dec1,dec2,asc1,asc2,adc1;//===============================================================================/code char GenImg[12] = { 0xEF, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x03, 0x01, 0x00, 0x05 };//==================================================================================/void conv(){dec1=adc1%10;dec2=adc1/10;asc1=dec1 | 0x30;asc2=dec2 | 0x30;}//=========================================================================================/void main(){lcdcmd (0x38); //8 bit LCD modelcdcmd(0x0C); //lcdcmd(0x01); // clear lcdlcdcmd(0x06); // lcd on pointer offdo //LOOP START{lcdcmd(0x01); // clear lcdlcdcmd(0x86); //1st linefor(i=0;i<strlen(mydata1);i++) //WELCOMElcddata(mydata1);for(i=0;i<strlen(mydata2);i++) // SCAN UR FINGER 1stlcddata(mydata2);msdelay(500); //lcdcmd(0x01); //clr lcdlcdcmd(0x86); //1st linefor(i=0;i<strlen(mydata3);i++) //SCANNINGlcddata(mydata3);lcdcmd(0x06);for(k=0x94;k<0xA8;k++){lcdcmd(k); //>>>>>>>>>>>>>>>>>>>>>>>>>for(i=0;i<strlen(mydata12);i++)lcddata(mydata12);}UARTInit();UARTSendByte(GenImg,12);UARTGetByte();fingerdata(i);msdelay(500);lcdcmd(0x01);lcdcmd(0x9b); //3rd linefor(i=0;i<strlen(mydata8);i++) //THANKSlcddata(mydata8);msdelay(10);lcdcmd(0xc5);}}while(1); //repeat forever} //main endvoid UARTSendByte(unsigned char GenImg[],unsigned char dt){for(i=0;i<dt;i++){TI=0;SBUF = GenImg;while(TI==0);TI=0;}}//unsigned char UARTGetByte(void){ RI=0;while(RI==0);RI=0;return SBUF;}void fingerdata(char i){i=SBUF;adc1=i;conv();lcddata(asc2);lcddata(asc1);}//======================================================================/void lcdcmd (unsigned char value){lcdready();ldata=value;rs=0;rw=0;en=1;msdelay(1);en=0;return;}//====================================================================================================/void lcddata (unsigned char value){lcdready();ldata=value;rs=1;rw=0;en=1;msdelay(1);en=0;return;}//====================================================================================================/void lcdready(){busy=1;rs=0;rw=1;while (busy==1){en=0;msdelay(1);en=1;}return;}//==========================================================================================================/void msdelay(unsigned int value){unsigned int i,j;for(i=0;i<value;i++)for(j=0;j<1275;j++) ;}//====================================================================================/void UARTInit(void){PCON=0X80;SCON=0X50; //232 COM initTMOD=0x20;TH1=0XFE;TR1=1;}March 5, 2013 at 3:10 pm #9246Disha rakaParticipantHi all,
please give me reply yaar….i m stuck at only this point friends….please…
March 13, 2013 at 6:00 pm #9310jayParticipanthi there
first you have to creat seril nturrept routeen for 9600 baud rate.
the get all command from user manule of r305. it is there. then creat string with that commands.
to add or scan first you have to
1. collect image,
2 store to buff-1
3 collect image again
4. store it to buff-2.
5. combine buff1 and buff-2 and generate tamplet
6. store that tamplet to your address.
i spent 12-13 days for it so i can understand your condition.
i have suscesfully made electronic votting machine with fingerprint module
March 13, 2013 at 6:22 pm #9311Disha rakaParticipantcan u give me ur c code
March 17, 2013 at 9:22 am #9332Disha rakaParticipantbut i have problem while i sending packet for templete number gen.
controller does not got any kind of response for this command.
can u please say how to do it
March 17, 2013 at 10:18 am #9333jayParticipantadd 1-1.5 second delay between two command
March 19, 2013 at 7:36 am #9344Disha rakaParticipanthey jay ,
thanks, now i getting response from finger print module
and its working fine.
but now problem is “I Can not get response for Templete Number Gen command”
So can u say how i get templete number of scanned finger in to the microcontroller.
also i can’t upload char to microcontroller
i got ACk response for UP Char command but they mention in datasheet “After sending ACK to MCU module waits to respond MCU and Then it Sends The Data Package to MCU
SO HOW to Do this.
Please Help me Yaar.
September 27, 2013 at 2:31 pm #10487ABHINAV OJHAParticipanthey disha or jay, has anyone of u figured out how to store more fingerprints using r305 sensor….i need to increse it to atleast 500 fingerprints…plz reply
December 26, 2013 at 10:43 am #9317jayParticipantcall me for that
January 11, 2014 at 6:56 am #10836shailav surveParticipanthi everyone..please can anyone give me the code of interfacing r305 fingerprint module with p89v51rd2 controller?? its urgent..
April 8, 2014 at 2:35 am #11501DronaParticipantHey i am working on a projeoct can u please help me out with the connection and how to send instruct the sensor to scan.
April 8, 2014 at 3:56 pm #11506MuhsinParticipantHello, Please give me the correct code, its urgent. Please help me.
September 24, 2014 at 4:39 am #12223priyanka shahParticipantjay can u please send me the codes….its urgent…my project has a deadline of a week…
my project is a similar one….ATTENDENCE SYSTEM USING R305.
..PLEASE ITS URGENT..
April 6, 2016 at 4:43 am #13855jay sharmaParticipantcanprovide ur code which work for R305 module
April 6, 2016 at 4:45 am #13856jay sharmaParticipantjay can u please send me the codes….its urgent…my project has a deadline of a week…
my project is a similar one….ATTENDENCE SYSTEM USING R305.
..PLEASE ITS URGENT..
-
AuthorPosts
- You must be logged in to reply to this topic.