New technology is helping scientists develop a gentler, less painful way to use electricity to stimulate the heart.