I'm using a 5v power supply directly connected to 5V pin of Arduino (avoiding the power regulator in the arduino Mega card).
I have completted the code and it's working perfectly. I have attached it. Variable names are in spanish.
The workig is as follow:
- Initialize the RTC, ethernet, read variables from ROM (I store it in order to recover them when the power is out), light sensor... etc.
- Show HTML code
- When a string from Web browser is received, read this and change variables. Show updated web again.
- Each 50 seconds update Central heating status and light status, in order to put ON or OFF when they are in AUTO mode.
Domotica_v16.ino (21.1 KB)