Hi Francis,
Yes, I thought about using the accelerometer to set the heart rate trigger threshold. Ideally it would be nice the user can see the ECG trace when the threshold level is adjusting. It needs a button action when the threshold level indicator is moved to the right place. However, both thumbs of the user are tired up on the ECG electrodes. There is no free hand to push the button at that moment.
It would good if there is a push button at back of the STM32 Primer (just like the trigger at bottom of those game controllers for Sony playstation or X-Box) so the user can use the middle finger to push the button at back of the device for setting the threshold while both thumbs are touching the ECG electrodes. I also like a function to freeze the screen temporary. So, if the user can hold the button at back of the device, the threshold level indicator can be moved by tilting the device until the user release the button. If a single toggle at the button, it will stop or start the ECG trace. Because adding a button may violate contest rule so I did not do it. But it can be easily done. Do you have any better idea?
Regards,
Jingxi