Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] SM 630 Fingerprint module interfacing with pic18f4550

Status
Not open for further replies.

mohamedbasheerkp

Newbie level 3
Joined
Nov 19, 2011
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,313
Hello all,
I am using SM-630 fingerprint module for my project. I have to interface it to PIC18f4550. I am using "mikroc pro for pic" compiler for my development purposes. But the module is not responding. As the datasheet suggested, I am using pullup resistor for tx pin. I interfaced to the computer and analysed using Realterm serial capture program. I tried to read the product id of the module both from PIC and PC. I used "0x4D 0x58 0x10 0x01 0x60 0x16" in order. but the module is not responding. I tried the following code to read the product id to the microcontroller.

I removed the declaration part of the code.

Code:
uart1_init(57600);
       delay_ms(100);
       uart1_write(0x4D);                  //packet head
               while(!UART1_Tx_Idle());
      uart1_write(0x58);                  //packet head
                while(!UART1_Tx_Idle());
      uart1_write(0x10);                  //command flag
                 while(!UART1_Tx_Idle());
      uart1_write(0x01);                   //packet length
                  while(!UART1_Tx_Idle());
      uart1_write(0x80);
                  while(!UART1_Tx_Idle());
      uart1_write(0x36);
                  while(!UART1_Tx_Idle());
                  
      for(count=6;count>=0;count--)
      {   while(!UART1_Data_Ready());
          datain = UART1_Read();
      }
while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();

       for (count=0;count<=23;count++)
       {   
                    while(!UART1_Data_Ready());
       id[count]=uart1_read();

       }
                     while(!UART1_Data_Ready());
       uart1_read();

I received datas sending from the microcontroller in pc using RealTerm. But the module is not responding. I used PIC's internal usart module and mikroc library for usart. Also using LCD. In order to reduce code, here, I removed that part also. PIC is working in 20Mhz frequency. Any help is welcomed...


Thanks,
basheer
 

Hello all,
I am using SM-630 fingerprint module for my project. I have to interface it to PIC18f4550. I am using "mikroc pro for pic" compiler for my development purposes. But the module is not responding. As the datasheet suggested, I am using pullup resistor for tx pin. I interfaced to the computer and analysed using Realterm serial capture program. I tried to read the product id of the module both from PIC and PC. I used "0x4D 0x58 0x10 0x01 0x60 0x16" in order. but the module is not responding. I tried the following code to read the product id to the microcontroller.

I removed the declaration part of the code.

Code:
uart1_init(57600);
       delay_ms(100);
       uart1_write(0x4D);                  //packet head
               while(!UART1_Tx_Idle());
      uart1_write(0x58);                  //packet head
                while(!UART1_Tx_Idle());
      uart1_write(0x10);                  //command flag
                 while(!UART1_Tx_Idle());
      uart1_write(0x01);                   //packet length
                  while(!UART1_Tx_Idle());
      uart1_write(0x80);
                  while(!UART1_Tx_Idle());
      uart1_write(0x36);
                  while(!UART1_Tx_Idle());
                  
      for(count=6;count>=0;count--)
      {   while(!UART1_Data_Ready());
          datain = UART1_Read();
      }
while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();
                    while(!UART1_Data_Ready());
       uart1_read();

       for (count=0;count<=23;count++)
       {   
                    while(!UART1_Data_Ready());
       id[count]=uart1_read();

       }
                     while(!UART1_Data_Ready());
       uart1_read();

I received datas sending from the microcontroller in pc using RealTerm. But the module is not responding. I used PIC's internal usart module and mikroc library for usart. Also using LCD. In order to reduce code, here, I removed that part also. PIC is working in 20Mhz frequency. Any help is welcomed...


Thanks,
basheer



SIR., can you post the complete code??
or send it to my email : whilmer_27@yahoo.com
thank you
 

same problem facing me ,, i send add finger print command but module (SM630) not sending back responce command correct or error command.plz any body help me.
 

Hi All,
The problem was because of some error in the datasheet (detected using RealTerm, Connect the module to PC using a MAX232 and check it). I am sharing the header file for SM630. I can't share the complete code with you.. I used MikroC for PIC

SM630 header file
 
hello all I.am a student, I am to design electronic voting machine with pic 18f4450 and sm630 finger print then display the result through visual basic application. this is my final year project. please I will be grateful for any assistance. my email is tonyforu2c@gmail.com
 

Basheer Sir ,,,thanx for sharing SM630 Header file i use. and its work perfectly ..my bad i m trying to run module on veroboad because of this Garbage data disturb me.but at least i run module successfully.lot of thanx sir.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top