To drive relay coils, most circuits use a diode across (in parallel with) the coil pointed so that current doesn't flow when power is applied to the relay coil. When the power is removed from the relay coil the diode suppresses the inductive kick from the coil. Some example diagrams: http://www.bowdenshobbycircuits.info/r_ctrl.htm
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
To drive relay coils, most circuits use a diode across (in parallel with) the coil pointed so that current doesn't flow when power is applied to the relay coil. When the power is removed from the relay coil the diode suppresses the inductive kick from the coil. Some example diagrams:
http://www.bowdenshobbycircuits.info/r_ctrl.htm