Pacemaker
Wilson Greatbatch was working on a contraption that would record human heart beats when he accidentally inserted the wrong resistor. It ended up perfectly mimicking the heart’s rhythm, creating the first implantable pacemaker.