Have you thought about running Espruino directly off the battery (it can run off up to 16v as it has its own 3.3v voltage regulator), and then running the relay off the regulated supply?
That should ensure the Espruino itself will keep going, even if the regulated supply dips momentarily.
Also are you connecting the heater itself to the battery, or to the regulated supply? You could probably connect that straight to the battery as well.
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.
Have you thought about running Espruino directly off the battery (it can run off up to 16v as it has its own 3.3v voltage regulator), and then running the relay off the regulated supply?
That should ensure the Espruino itself will keep going, even if the regulated supply dips momentarily.
Also are you connecting the heater itself to the battery, or to the regulated supply? You could probably connect that straight to the battery as well.