Being super original I've made a DIY Thermostat with an ESP8266. Being a bit of a novice (I'm learning). I've run in to some sticky bits with my kit. For the most part it works fine, but when turning on a 3v Relay to make a connection between AC Live and the Boiler (To turn it on) do I run in to an issue... The power from the transformer just,.. goes and then recovers a split second later. But this causes the ESP8266 module (and relay) to lose power causing a reset.
This isnt the ESP8266 shutting off, I have a cheap oscilloscope and I've monitored the V+ line and I can see when the relay goes on occasionally the power fails from the transformer.
Circuit (A Battery symbolises 3.3v input, sorry):
simulate this circuit – Schematic created using CircuitLab
The transformer is very similar to this:
The only thing I haven't tried is shutting off the WiFi every time there is a relay change, I've heard the current draw from both could be enough to cause a problem. Its annoying its intermittent, it used to be a lot worse. But its still far too regular. All help is much appreciated, Thanks in advance.