I don't undestand this problem. Everything works fine, wifi connection, mqtt receiving, publishing ... goes fine. But after some time something happend, blue led on ESP-01 quick flashes and everything is freez.
Display which is connected to arduino show something wrong ...
I think problem is caused by ESP-01 because I disconnect it then everything works fine for several days.
With ESP-01 it is very random. It can be 15 minutes at this problem but it can be 2hours or one day when it works fine ... It is unpredictable.
All components (display, SSR relays, RC receiver, RTC and ESP-01) are powered by 5V 2,4A external power supply.
Arduino itself is connected to 12V 1,2A power supply. Any component is not powered by Arduino directly. Ground of both supplies are connected together.
Code is more complex because there is more than one functions (reading temperature from outside wireless sensor, some wired temperature sensor, relay controls, ...). ESP-01 should by used to send information into MQTT only. I can give github repo if it is necessary.
yeah, esp01 is a little unpredictable. check your power supply must be very constant, and also dont save on pullsdown or pullups as well as capacitors , esp01 is very unpredictable sometimes and my little experience showed that....
Yes, GND si connected between this and arduino. Do you have some tool for creating wiring diagram? ESP-01 is connected through this adapter to Arduino Mega 2560 to Serial 1 pins (18 and 19). VCC and GND is connected to external power supply (not to Arduino) but external power supply has GND connected with Arduino GND. Communication works because I can see some data published by Arduino in Home assistance. But after some times it goes down.
One of the reasons we harp on separate power is that WiFi when starting up uses a lot of power so can cause a problem. Also, all comms can be flaky at times, just make sure you are aware of every possible return status of each wifi function and at a minimum write any non zero code to some central place.
It seams there is power supply problem. All devices are on 5V 2,4A power supply. I think it is enough to power them. Arduino is powered by 12V 1,2A power supply. I measured current through devices. Maximum which I measured is 150mA. ESP-01 was connected and there was some communication on wifi. But at some moment power supply voltage drop down from 5V to 2V and goes back to 5V. It was very fast moment. But I don't know why. I will try to bought another ESP-01. It is clear that it is caused by ESP-01 because without them it is not happened.
I have doubts, that your esp-01, even if defective, draws suddenly by itself amount of current that drops voltage down to 2V. Either PSU is not capable to provide sufficient current for your setup or there is some other hardware/wiring problem.
Those adapters are fairly decent, level shifters and on board regulator. Not perfect, but not a big issue. A slightly bigger capacitor on the 3.3v rail would be good.
Fragile yes, i found that too, but once you have it down it should be reliable enough. a dedicated 3.3v regulator helps a lot
Yep me too, i have never experienced that.
I would check all power connections and see if maybe something is getting warm.
Mind you the whole arduino & esp-01 combo is never ideal. and i would prefer to use a single board for reliability reasons and practical reasons. I now use an ESP-01 only if it can preform all functions that i want a processor to perform. If i need more exposed pins or other peripherals, i can use a single baord like a nodeMCU or ESP2 if i need the WiFi capability.
I tried to disconnect one by one device and check if voltage drop down will happend. There is SSR relay like this ( 4 channel Solid State Relay with Arduino | Robojax.com. As I wrote all devices are supplied by 5V 2,4A external power source. So ESP-01 and this SSR relay is supplied by same power supply. When I disconnected SSR relay it seems ESP-01 work fine.
I have plan to supply all devices except ESP-01 from Arduino directly. Only ESP-01 will supply by external power source.