In an emerging bioelectronics era, there is a clinical need for physiological devices incorporating biofeedback that permits natural and demand-dependent control in real time. Here, we describe a novel device termed a central pattern generator (CPG) that uses cutting edge analog circuitry producing temporally controlled, electrical stimulus outputs based on the real time integration of physiological feedback. Motivated by the fact that respiratory sinus arrhythmia (RSA), which is the cyclical changes in heart rate every breath, is an essential component of heart rate variability (HRV) (an indicator of cardiac health), we have explored the versatility and efficiency of the CPG for producing respiratory modulation of heart rate in anesthetized, spontaneously breathing rats. Diaphragmatic electromyographic activity was used as the input to the device and its output connected to either the right cervical vagus nerve or the right atrium for pacing heart rate. We found that the CPG could induce respiratory related heart rate modulation that closely mimicked RSA. Whether connected to the vagus nerve or right atrium, the versatility of the device was demonstrated by permitting: (i) heart rate modulation in any phase of the respiratory cycle, (ii) control of the magnitude of heart rate modulation, and (iii) instant adaptation to changes in respiratory frequency. Vagal nerve pacing was only possible following transection of the nerve limiting its effective use chronically. Pacing via the right atrium permitted better flexibility and control of heart rate above its intrinsic level. This investigation now lays the foundation for future studies using this biofeedback technology permitting closer analysis of both the function and dysfunction of RSA.