Do It Yourself a Heart Beat Monitor With AVR
by arick in Circuits > Microcontrollers
10460 Views, 24 Favorites, 0 Comments
Do It Yourself a Heart Beat Monitor With AVR
![IMG_20131009_201857.jpg](/proxy/?url=https://content.instructables.com/FIN/MSSB/HMNNFVNT/FINMSSBHMNNFVNT.jpg&filename=IMG_20131009_201857.jpg)
Guys,
I want to share my weekend project on creating a heartbeat monitor with AVR.
In this experiment I'm using ATMEGA128 and LM358 as the sensor amplifier,
Let's get started
I want to share my weekend project on creating a heartbeat monitor with AVR.
In this experiment I'm using ATMEGA128 and LM358 as the sensor amplifier,
Let's get started
Some Components for This Project
![IMG_20131009_201857.jpg](/proxy/?url=https://content.instructables.com/FXG/C3XZ/HMMFBBNQ/FXGC3XZHMMFBBNQ.jpg&filename=IMG_20131009_201857.jpg)
![IMG_20131005_212201.jpg](/proxy/?url=https://content.instructables.com/FA8/EZE7/HMMFBBNR/FA8EZE7HMMFBBNR.jpg&filename=IMG_20131005_212201.jpg)
![IMG_20131005_212154.jpg](/proxy/?url=https://content.instructables.com/FYM/HGRZ/HMMF782Z/FYMHGRZHMMF782Z.jpg&filename=IMG_20131005_212154.jpg)
![IMG_20131005_212145.jpg](/proxy/?url=https://content.instructables.com/FOZ/TIYP/HMMF7830/FOZTIYPHMMF7830.jpg&filename=IMG_20131005_212145.jpg)
1. ATMEGA128
2. LM358
3. Infrared photo transistor
4. LCD 16x2
5. USBASP debugger
2. LM358
3. Infrared photo transistor
4. LCD 16x2
5. USBASP debugger
A Software Developed on Atmel Studio
![atmel studio heart beat monitor.jpg](/proxy/?url=https://content.instructables.com/FBG/JSXC/HMMF5P2Q/FBGJSXCHMMF5P2Q.jpg&filename=atmel studio heart beat monitor.jpg)
Then continue on developing the software for it,
Here's the main code...
cli();
current_rps = rps;
sei();
if (minute==1)
{
lcd_cmd(0x01);
sprintf(rps_lcd,"%.3f",current_rps);
sprintf(rpm_lcd,"%.3f", current_rps * 60.0);
lcd_xy(0,0);
lcd_string("BPS = ");
lcd_string(rps_lcd);
lcd_xy(1,0);
lcd_string("BPM = ");
lcd_string(rpm_lcd);
}
Here's the main code...
cli();
current_rps = rps;
sei();
if (minute==1)
{
lcd_cmd(0x01);
sprintf(rps_lcd,"%.3f",current_rps);
sprintf(rpm_lcd,"%.3f", current_rps * 60.0);
lcd_xy(0,0);
lcd_string("BPS = ");
lcd_string(rps_lcd);
lcd_xy(1,0);
lcd_string("BPM = ");
lcd_string(rpm_lcd);
}
Enjoy It on Video...
![IMG_20131009_201857.jpg](/proxy/?url=https://content.instructables.com/FOJ/BDLJ/HMMF922Z/FOJBDLJHMMF922Z.jpg&filename=IMG_20131009_201857.jpg)
Enjoy it on video...
Thanks for reading
Thanks for reading