I'm using three Nodemcu's for my home automation and these much it works fine. But from last week one of the Nodemcu giving trouble as it suddenly goes offline and within a minute it comes back online and it turns on some relay output high within a fraction of seconds. So at that time my Garage door is automatically opening due to the Triggering.
Other Nodemcu is working fine as that one doesn’t even disconnect and both of them are in same place.
I thought the there must be an issue with the node and I even replaced to a new one even though the same is happening. Goes offline and randomly turns on relay.
Don’t know what might be the issue
I have uploaded the Pic below.
At a guess, I’d say that it’s probably either a power supply issue or bad coding.
It’s impossible to help further without more information.
The issue with the relay energising at startup could be caused by using Digital datastreams rather than Virtual, a poor choice of GPIO for the relay, or poor coding.
I’m afraid my psychic powers are a bit depleted today. Maybe posting your code and serial output (correctly formatted with triple backticks of course) would help me to understand what this means.
It seems like you’ve taken the Edgent example and hacked-out all the important bits, then added-in most of what should be needed to get your device online.
However. You’ve left this…
Instead of using the required Blynk.run(); line of code.
You’re also missing the three lines of firmware configuration from the Device > Device Info screen and when you add that in you should change this…
to this…
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
You can also delete this…
and this…
It’s also a bad idea to use Blynk.syncAll() for the reasons described at the end of this post…
Next time it would be better if you started with a non-Edgent example!
Hey pete,
The problem is solved finally with the corrections you have to told to do and its been working fine for a week. thanks to you and I’ll paste the program aferwards