Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
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! 🙂