Heart Rate Monitor using Counter

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi all,

   

I am trying to make a heart rate monitor, which takes in the analogue signal of heartbeat pulses, processes them through a comparator to get a square wave, and input it to a Counter to measure the frequency of each pulse, calculate the no. heartbeats per minute, outputs it to two 7 segment LED displays. The analogue signal and 7 segment LED display works fine, and I suspect the problem is with the Comparator and the Counter. Attached here are the codes and schematics for this project, referenced from this page: http://www.cypress.com/forum/psoc-3-device-programming/frequency-measurement-using-timer-0 . There is no problem compiling and programming it to my PSoC, but I can't get a proper value for my no. heartbeats per minute, all it shows on my 7 segment LED display is 00. I am not sure if I have configured the Comparator and Counter properly in the schematic diagram, counted the frequency in a wrong method, or if I had coded anything wrongly in my main.c code file. Any help to detect what's wrong with my program is greatly appreciated, thank you! 🙂

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

CalebL You where missing a line in your program and I have fixed that so you don't have all the warnings . I am also sending the original program also fixed for your device.

0 Likes