Hi everyone! I'm building my own observatory and trying to get things remotely controlled using Arduino MKR1010 WiFi and Blynk. It is pretty easy, I have configured all the 6 devices, building their net and making them work together (some have sensors, others control the moving roof basing on sensor data...)
Everything work fine.
The problem I am experiencing is about connection stability. I haven't mount anything in the observatory yet, actually making tests at home where I have a stable wifi ADSL signal.
Every device connects, then disconnects after some time (could be twice in an hour or once in 6 hours). I've looked for a solution in all threads already open about MKR1010 and then simply found the best and easiest code in the Blynk library examples under "handle disconnect" which has a simple sketch I copied and pasted in all my 6 sketches
if (WiFi.status() != WL_CONNECTED){
// check delay:
if (millis() - lastConnectionAttempt >= connectionDelay){
lastConnectionAttempt = millis();
// attempt to connect to Wifi network:
if (pass && strlen(pass)){
WiFi.begin((char*)ssid, (char*)pass);
}
else{
WiFi.begin((char*)ssid);
}
}
}
else{
Blynk.run();
}
This is in the loop, so the first thing to do is check connection. This way I am able to solve automatically a disconnection. Anyway this is not working forever: actually I cannot reach 24 hours of continuous communication.
I absolutely excluded a wiring problem: even with nothing connected to it but the micro USB for power, MKR1010 behave the same way. (It doesn't send any data, but Blynk app notifies me when it goes offline)
I thought about a powering problem, so I tried adding a LiPo battery to buffer power issues: no way. Absolutely the same behavior. I tried it connected to the Mac USB port (0,5A), to iPhone power adapter (1A) and to a power bank QC port (2,1A). It seems to last longer on the USB, but it is an impression.
This morning I found it offline so I tried stopping power supply via USB (iPhone charger 1A) but leaving the LiPo battery connected so the MKR1010 did NOT reboot. After about 30 seconds I switched on again. Now it is connecting for short periods and going offline for minutes.
My impression is that power supply is overheating something in Arduino board and sometimes it needs to cool down. Is this possible?
I cannot find any solution and it is a month I'm trying to solve
MacBook Pro 13" late 2015 with OS X Catalina up to date
Arduino IDE version 1.8.13 with up to date libraries
Arduino MKR1010 brand new with latest WIFI NINA version (problem occurring even with default version)