Open photogeen opened 5 years ago
Hey Eugen,
I could not reproduce your behaviour. To my knowledge this is by 90% a power issue. Could you verify your power source? To check you could hook up a oscilloscope and observe the voltage when the WDT happens.
Another possibility could be a faulty ESP. Do you have a second board to test?
Cheers, Patrik
Hi Patrik,
I have two identical NodeMCUs and both are getting the same WDT reset. After reading other posts in the last two days I also think it has to do with the power source. First I tried it just by powering the whole thing through the USB-C>Micro-USB cable from my mac (to also have serial output). I think it happens on WiFi load. I removed the OTA part and it started to work for an indefinite time than stops again.
Today I tried to power the MCU trough the VCC pin with a dedicated 5V 2A power adapter. But still the same WDT reset after a few minutes.
My next try will be a professional power supply (where I can set voltage and amps separately) to power the MCU and the two sensors separately with 3.3V.
This is my first project where I have more than one device on the I2C bus. This never happend with only one sensor.
Could you also please tell me where to place the pull-ups.
Thank You! I'm from Germany too ;-)...
Oh, hi from Hessen then :-)
I don't know which DC-DC-Converter the NodeMCU uses and if it can provide power fast enough in voltage peaks. I had no success with different ones which delivered 3.3V directly. Currently I have good resulst with an AP2112k. A good linear power supply (Labornetzteil) should be feasable.
For the pullups, jusst connect 4k7Ω or 10kΩ between VDD and SDL/SDA. Explained here: https://www.edn.com/design/analog/4371297/Design-calculations-for-robust-I2C-communications. The Rp resistors...
Cheers!
Hi there, I have been unsuccessful to get a CJMCU ccs811, that’s the one with the pink PCB, to work with any ESP8266. The reason seems to be that it uses I2C clock stretching which is not supported on these. I tried an ESP32 and it worked right away. The model used for the setup described here seems to work in a different manner. Greetings from Cologne
Hi,
I have a very strange behavior on my NodeMCU. Everything is connected the right way so I2C scanner is seeing both sensors. My BMP280 is not a SparkFun one. It's a chinese one with address 0x76 (changed that in the code). It already worked for me some hours but then stopped.
Right now I'm stuck with this resets:
I added some lines of code because I wanted to calculate an Air Quality Value for Homebridge (String: GOOD, BAD, POOR, ...) but this was also before it stopped working. I don't know where i made the mistake.
I have no pullups (I know it is recomended) but I haven't found out so far where to place them and how big the need to be (10k?). Sorry, I'm new to this and trying to find out by myself. Had no luck so far.
Here is the code:
Could someone please point me in the right direction? Great work! Thank you for that!
Eugen