Académique Documents
Professionnel Documents
Culture Documents
Features
Heart beat indication by led. Compact size. Total heart beat count can be obtained serially(TTL) every minute. Instant output digital signal for directly connecting to microcontroller. Module dual output mode, digital output is simple, serial output with exact readings.
Applications
Digital heart rate monitor. Bio-feedback control of robotics and applications exercise machines.
Specifications
Parameter Operating Voltage Operating current Heart beat detect Value +5v dc regulated 100mA Indicated by high active pulse
www.researchdesignlab.com
2|P ag e
DIGITAL HEART BEAT SENSOR
Pin Details
Pin 1 2 3 4 5 Name out +5v gnd rx tx Details Active high output Power supply Power supply gnd receiver transmitter
The output is active high for each beat and can be given directly to microcontroller for interfacing applications .
Working
The sensor consists of a super bright red LED and light detector. The LED needs to be super bright as the maximum light must pass spread in finger and detected by detector. Now, when the heart pumps a pulse of blood through the blood vessels, the finger becomes slightly more opaque and so less light reached the detector. With each heart pulse the detector signal varies. This variation is converted to electrical pulse. This signal is amplified and triggered through an amplifier which outputs +5V logic level signal. The output signal is also indicated by a LED which blinks on each heart beat.
www.researchdesignlab.com
3|P ag e
DIGITAL HEART BEAT SENSOR
Sample Application: In this application heart beats are displayed on LCD using
sensor.
www.researchdesignlab.com
4|P ag e
DIGITAL HEART BEAT SENSOR
An ISO 9001-2008 Certified Company Order Code RDL/HBM/13/001/V1.0 void main() { unsigned char CMD[]={0x38,0x01,0x0f,0x06,0x80},TEMP1,i, REC; for(i=0;i<5;i++) { TEMP1=CMD[i]; //write the commands to the LCD CMD_WRT(TEMP1); } TMOD=0X20; TH1=0XFD; SCON=0X50; TR1=1; DELAY(); DELAY(); DELAY(); DELAY(); CMD_WRT(0x01); CMD_WRT(0X80);
/* * Project name: Heartbeat sensor * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: Dev.Board: Oscillator: Software: */ #include<reg51.h> #define LCD_PORT P2 // LCD D0-D7 PINS connected P2 sbit rs=P3^5; sbit en=P3^7; sbit D7=P2^7; sbit rw=P3^6; void busy(); //LCD busy AT89S52 8051 11.0592 MHz Keil uVision3
void CMD_WRT(unsigned char); void DATA_WRT(unsigned char); void LCD_WRT(unsigned char *); void DELAY(); unsigned char SCI_ReceiveByte( void );
www.researchdesignlab.com
REC=SCI_ReceiveByte(); DATA_WRT(REC);
5|P ag e
DIGITAL HEART BEAT SENSOR
An ISO 9001-2008 Certified Company Order Code RDL/HBM/13/001/V1.0 rs=0; //cmd mode
{ REC=SCI_ReceiveByte(); DATA_WRT(REC); } } } void DELAY() { unsigned int X=800000,y=800000; while(X--); while(y--); } void busy() { D7=1; rs=0; rw=1; while(D7!=0) { en=0; en=1; } } void CMD_WRT(unsigned char val) { busy();LCD_PORT=val; } }
void DATA_WRT(unsigned char ch) { busy(); LCD_PORT = ch; //write cmd to P2 rs=1; rw=0; en=1; en=0;
//write
void LCD_WRT(unsigned char *string) { while(*string) DATA_WRT(*string++); } unsigned char SCI_ReceiveByte( void ) { // RECIVING SERIAL DATA
unsigned char byte; while(RI!=1); byte = SBUF; RI=0; return byte; // RETURN THE DATA}
rs=0;
//cmd mode
www.researchdesignlab.com
rw=0; //write
6|P ag e
DIGITAL HEART BEAT SENSOR
Board Dimensions
51.44mm
30.48mm
www.researchdesignlab.com