hello..
i trying to get pulse from CNY70 or any other sensor like this for heart rate....I added LCD with atmega32 to show heart rate but result was nothing without any heart rate or maybe on LCD....my circuit is here..
what is the problem and what i must to do ?
this my program its simple for now:
Mod note: Applied CODE-tags.
i trying to get pulse from CNY70 or any other sensor like this for heart rate....I added LCD with atmega32 to show heart rate but result was nothing without any heart rate or maybe on LCD....my circuit is here..
what is the problem and what i must to do ?
this my program its simple for now:
C:
#include<mega32.h>
#include<delay.h>
#include<lcd.h>
#include<stdio.h>
#include<stdlib.h>
#asm
.equ __lcd_port=0x1b
#endasm
int x;
char s[5];
void main(void)
{
DDRB=0x00;
lcd_init(16);
lcd_clear();
TCCR0=0x06;
while(1)
{
x=TCNT0;
itoa(x,s);
lcd_clear();
lcd_puts(s);
delay_ms(30);
}
Attachments
-
214.2 KB Views: 51
Last edited by a moderator: