Hello, I hope someone can point me in the correct direction to resolve this issue. I have a newish floor standing electric heater that is not used due to the horrendous difficulty in the user interface, so I thought to bypass this and use a simple plug in timer. This causes the heater to get very hot, so second thought was use an Arduino to cycle the heating element when it is on.
I decided on 4 settings; Initial warmup of 4 minutes; HI - 3min on 2min off; MED - 2min on 2min off; LO - 1min on 2min off. So far so good, just add a button to change setting, 3 LEDs red, yellow, green do display the current settings and a further red LED for heating on/off. The setting is initially read from EEPROM and written when the setting is changed with the button.
The code is very simple and works fine - until I connect up the swithcing relay to the mains. The heater works and cycles the current to the heater so it doesn't get too hot, BUT when it switches the setting gets changed, I suspect this is some sort of power glitch as the code works fine when not connected to the heater. Has anyone had similar problems?