Hi All,
Am trying to do wireless heart beat monitoring system,
Can any one give me some suggestions, am planning to use HT12D & Ht12E for wireless communication and P89V51Rd2 MCU.
The Heart beat sensor[https://www.nskelectronics.com/heart_beat.html] from NSK electronics
Please give me an Algorithm How get readings from sensor and how to display that pulse rating in the receiver side.
I appreciate if any c reference code.
Thanks in advance!!!
Please comment !!
Please share with us your detailed specification and psuedo code.
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 void extrint (void) interrupt 0 // external Interrupt to detect the heart pulse { bt=tick; // number of ticks are picked tick=0; // reset for next counting } void timer0 (void) interrupt 1 // Timer 0 for one second time { TH0 = 0xdc; TL0=0x00; sec100++; tick++; if(tick>=3500) { tick=0; } if(sec100 >=100) { sec++; sec100=0; } } //main loop while(1) { if(sec >=1) { sec=0; lcdcmd(0x02); if(bt >=7) { bpm = 60000/bt; // for valid output bt is limited so that it should be greater than 6 MSDelay(100); lcdcmd(0x01); lcd_puts("Pulse: "); lcddata((bpm/100)+0x30); r=bpm%100; lcddata((r/10)+0x30); lcddata((r%10)+0x30); r=0; lcd_puts(" bpm "); // MSDelay(100); } else { lcdcmd(0x01); lcd_puts("Wait for 15sec"); } } }
Have you look at the signal (connected ) on a oscilloscope ? I think you must "clean" it with a buffer with some hysteresis.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?