coolbody
Newbie level 2
hi
I have a project about voice recognition project. I use pic16f877 and easyvr cards.I have a small problem between these cards.Main problem is ;
When I said my SD commands which loaded with Easyvr orginal program, it send " r " from serial communication. this is good. it means that easyvr can understand my sd commands. I added all my command in " Group 1 " .
I have 10 commands..
1) Camera
2) LED
3) TV
....
.
.
.
10) Fan
when I said command as " LED " , it should send me a command as " B " . But can not send. always sends " r "
when I said command as " FAN " , it should send me a command as" K " . But can not send.always sends " r "
Easyvr can understand my Sd commands very good.
why it never send A, B, C ................... K . why it send me always " r " . After r data , it should send me A,B, C .....
I added my code in the below. Can you check my code and say my mistakes please..
************************************************** **************
If you help me I will be so happy...
I think I have small mistake. can you show my mistake please...
best wishes...
I have a project about voice recognition project. I use pic16f877 and easyvr cards.I have a small problem between these cards.Main problem is ;
When I said my SD commands which loaded with Easyvr orginal program, it send " r " from serial communication. this is good. it means that easyvr can understand my sd commands. I added all my command in " Group 1 " .
I have 10 commands..
1) Camera
2) LED
3) TV
....
.
.
.
10) Fan
when I said command as " LED " , it should send me a command as " B " . But can not send. always sends " r "
when I said command as " FAN " , it should send me a command as" K " . But can not send.always sends " r "
Easyvr can understand my Sd commands very good.
why it never send A, B, C ................... K . why it send me always " r " . After r data , it should send me A,B, C .....
I added my code in the below. Can you check my code and say my mistakes please..
************************************************** **************
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 void main ( ) { int i; setup_psp(PSP_DISABLED); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_CCP1(CCP_OFF); setup_CCP2(CCP_OFF); output_low(pin_c5); lcd_init(); enable_interrupts(GLOBAL); while(1) // { //printf("%c",datas); delay_ms(50); printf("b"); enable_interrupts(int_rda); if (datas =='o' ){goto don;} } don: while(1){ delay_ms(50); printf("s"); printf("B"); enable_interrupts(int_rda); if (datas =='o' ){goto don1;} } don1: delay_ms(3000); printf("c"); //delay_ms(20); printf("B"); delay_ms(20); printf(" "); delay_ms(200); while(1){ delay_ms(20); printf("o"); printf("B"); if (datas =='o' ){goto don2a;} } don2a: while(1){ delay_ms(200); printf("v"); printf("B"); if (datas =='o' ){goto don2;} } don2: while(1){ enable_interrupts(int_rda); delay_ms(3000); printf("d"); printf("B"); if (datas=='s') { delay_ms(100); printf (" "); } // read if (datas=='r') { // recognize word delay_ms(30); printf (" "); // space acknowledge s, then it will send out a letter anwhere from A-K, 0-10 for(i=2; i<=11; i++) delay_ms (20); printf("d"); printf("B"); } // read if (datas=='t') { for(i=2; i<=11; i++) delay_ms (20); printf("d"); printf("B"); } // read if (datas=='e') { for(i=2; i<=11; i++) delay_ms (20); printf("d"); printf("B"); } // read } }
If you help me I will be so happy...
I think I have small mistake. can you show my mistake please...
best wishes...
Last edited by a moderator: