Chat freely about anything...

User avatar
By piersfinlayson
#41870 I too found the Arduino framework a bit unreliable - this is how I started with the esp8266.

I moved over the the non-RTOS SDK, and it's been totally stable ever since - all crashes, resets, wifi failures, etc, I've hit I've been able to track down to bugs in my software.

Mind you I'm also using decent power sources and dev boards, rather than e.g. the esp12 module directly.
User avatar
By canta
#41875
piersfinlayson wrote:I too found the Arduino framework a bit unreliable - this is how I started with the esp8266.

I moved over the the non-RTOS SDK, and it's been totally stable ever since - all crashes, resets, wifi failures, etc, I've hit I've been able to track down to bugs in my software.

Mind you I'm also using decent power sources and dev boards, rather than e.g. the esp12 module directly.


Arduino framework is getting better...
I am using 2.0.0 now and with combination of non official arduino library and esp8266 arduino library.

one thing I found out is, I have to know what need to achieve,
ex: running mqtt client with many topics will kill esp8266 for sure, wifi will disconnect /reconnect or got reseted.

moving to lower than esp8266 arduino should give extra room in memory usage.

I am happy running esp8266 arduino, Total as today is 10 x esp01, 2 x esp12, and 3 X sonoff ( 9 will come later :D).
devices are running for sensors, relays, and others that based on device role.
devices are brodcasting mqtt every 20 seconds, and response topics that trigger devices on what to do.

btw.. I use good/real usb power adapter that got bougjt cheap during my arduino project. these was real BB playbook adapter for $5 each with freeshipping. Total bought was 30 adapters.
I use cheap analog 5 to 3.3V DC modules.
I see ESp8266 is not low power when wifi is on or connected. one glitch on powersupply line will casue dump/hang :D...

only sonoff has built in psu unit, the PSU ok, but.... if you turn on any noise motor such as powerful 120V powerdrill, wifi on sonoff will randomly disconnect and reconnect :P. the electrical noise goes through without good filtering to it's 5V/3.3V DC.


those are my experience.
User avatar
By dirknerkle
#43910 Power supply, bypass caps -- it would be helpful if you provided a brief diagram of what you're saying to solve this disconnect problem. On an ESP-01 module there are only 8 connections and only two GPIO ports, neither of which is used by the application I have.