EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / R305 Finger print module with P89V51RD2

R305 Finger print module with P89V51RD2

|

Microcontroller › 8051 › R305 Finger print module with P89V51RD2

  • This topic has 17 replies, 10 voices, and was last updated 8 years, 8 months ago by gopal.
Viewing 15 posts - 1 through 15 (of 18 total)
1 2 →
  • Author
    Posts
  • February 27, 2013 at 7:01 pm #3854
    Disha raka
    Participant

     

    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");    //7
    code unsigned char mydata2[]=("SCAN UR FINGER 1st");  //  18
    code unsigned char mydata3[]=("SCANNING");   //9
    code unsigned char mydata4[]=("ACCESS GRANTED"); //14
    code unsigned char mydata5[]=("ACCESS DENIED"); //13
     
    code unsigned char mydata8[]=("THANKS");   //6
     
    code 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 mode
    lcdcmd(0x0C);  //
    lcdcmd(0x01);  // clear lcd
    lcdcmd(0x06);  //   lcd on pointer off
     
      
    do   //LOOP START 
    {
    lcdcmd(0x01);  // clear lcd
    lcdcmd(0x86);  //1st line 
    for(i=0;i<strlen(mydata1);i++) //WELCOME
    lcddata(mydata1);
     
     
     
    for(i=0;i<strlen(mydata2);i++)   //  SCAN UR FINGER 1st
    lcddata(mydata2);
     
     
    msdelay(500); //
     
    lcdcmd(0x01);   //clr lcd
    lcdcmd(0x86);  //1st line
    for(i=0;i<strlen(mydata3);i++)  //SCANNING
         lcddata(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 line 
    for(i=0;i<strlen(mydata8);i++) //THANKS
    lcddata(mydata8);
     
    msdelay(10);
    lcdcmd(0xc5);
     
     
      
    }
     
     
    }while(1);   //repeat forever
     
     
     
    }  //main end 
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    void 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 init 
            TMOD=0x20;
            TH1=0XFE;
            TR1=1;
            
    }
      
    March 5, 2013 at 3:10 pm #9246
    Disha raka
    Participant

    Hi all,

     

    please give me reply yaar….i m stuck  at only this point friends….please…

    March 13, 2013 at 6:00 pm #9310
    jay
    Participant

    hi 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 #9311
    Disha raka
    Participant

    can u give me ur c code

    March 17, 2013 at 9:22 am #9332
    Disha raka
    Participant

    but 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 #9333
    jay
    Participant

    add 1-1.5 second delay between two command

     

    March 19, 2013 at 7:36 am #9344
    Disha raka
    Participant

    hey 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 #10487
    ABHINAV OJHA
    Participant

    hey 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 #9317
    jay
    Participant

    call me for that

    January 11, 2014 at 6:56 am #10836
    shailav surve
    Participant

    hi 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 #11501
    Drona
    Participant

    Hey 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 #11506
    Muhsin
    Participant

    Hello, Please give me the correct code, its urgent. Please help me.

    September 24, 2014 at 4:39 am #12223
    priyanka shah
    Participant

    jay 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 #13855
    jay sharma
    Participant

    canprovide ur code which work for R305 module

    April 6, 2016 at 4:45 am #13856
    jay sharma
    Participant

    jay 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..

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 18 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • More fun with ws2812 this time XC8 and CLC July 17, 2025
  • Pic18f25q10 osccon1 settings swordfish basic July 16, 2025
  • Pickit 5 July 16, 2025
  • turbo jet fan - feedback appreciated. July 16, 2025
  • I Wanna build a robot July 16, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise