Hello, I need help with the following.
I'm programming a Mega + Ethernet shield with SD card + 3 x LM35 + DS3231 + 3 x HC-SR04 + triacs card for 12 outputs (home made) . It is working using AJAX communication with a Web Page mounted SD and with a simple interface. All was working fine.
The problems (that must be the same cause):
- To give a best view of the Web, I added 12 x 3D buttons and LEDs of different colors, using the checkbox mode. All was working fine.
Then I programmed a pair of circular gauges in the index.htm and worked, but adding 5 of them to show more analog measurements, something happen and the gauges dont work. Or the page loads without any parts. The web page Works fine offline.
- Eliminating the gauges, I started working to stabilize the LM35 measurements because they move a lot. I try to fix it with a a dead band and including an average of 25 readings por each of the 3 LM35. In the begining everything worked OK. The system was continuous connected overnight.
But the next day the page began to have trouble loading and sometimes when it cannot load. When the page load ok, sometimes (near 50% of the times) the checkboxes send the signal to the Arduino but it dont respond. It is the same program that worked before without touching anything.
Apparently there are some limitation on the weight of the web page or the runtime of the sketch. I have the Buffer 120 in the simple version. 150 does not fixed the problem.
The sketch is less 13% of memory and the website less than 20Kb in all cases. The 5 gauges add 53Kb.
Someone has an idea that might be happening?