By this week, I try to create my flow chart of software program. The figure below shows the flow chart of Electronic Stethoscope and the flow chart below was explained about the how program of Arduino function and how it's calculated to count the heart beat per minute. The programming not count for one minute to shows the result, but it's just calculate average for 30 second of heart beat detected by diaphragm.
Figure 1: Flow Chart of Electronic Stethoscope
This is a flow chart for this project
that is Electronic Stethoscope. First of all, when the button start is pull on,
the pre-scan for vibrating normal heart beats will count until 3 second. Then
this programming of Arduino will divide the instruction to run 2 programs at
the same time that is for the time setting 30 second and then for heart beats
that is counting in the time of 30 second. Then this program with mathematical calculation
will multiple with 2 for the result of heart beats per 30 second to get the output
result total that is in beats per minute, then display it at LCD monitor.