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
Step 1: Some Components for This Project
3. Infrared photo transistor
4. LCD 16x2
5. USBASP debugger
Step 2: A Software Developed on Atmel Studio
Here's the main code...
current_rps = rps;
sprintf(rpm_lcd,"%.3f", current_rps * 60.0);
lcd_string("BPS = ");
lcd_string("BPM = ");
Step 3: Enjoy It on Video...
Thanks for reading