A program that uses a camera to detect heart beats in real time. Each beat triggers a signal that is sent via an arduino board. This program has been used to trigger image acquisition using x-ray or confocal microscopes of hearts at equal time points during the heart beat cycle. Written in C# Visual Studio 2013.