- Thu Jul 23, 2015 2:01 pm
#24047
I added a tactile switch and 10K pullup as a reset button and swapped the SPDT switch for another tactile button, as I have seen used with ESP8266 elsewhere. This has made working with the ESP easier.
20150723_194639.jpg
20150723_193305.jpg
I noticed that the serial port reported by Ubuntu kept swapping between /dev/ttyUSB0 and /dev/ttyUSB1. I think this must have been because the ESP was drawing too much current from the USB-Serial adaptor's feeble 3.3V output, causing it to reset each time the ESP restarted, as burkmurray suspected. So I have added a power supply for the ESP and sure enough this has stopped the USB/Serial adaptor from resetting every few seconds and Ubuntu reports it as /dev/ttyUSB0 all the time.
As suggested I tried swapping the order of reading the temp and humidity:
Code: Select allStarting Wire...
Wire Started
Temperature(C): 128.86 Humidity(%RH):
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x40100000, len 28780, room 16
tail 12
chksum 0x24
ho 0 tail 12 room 4
load 0x3ffe8000, len 1332, room 12
tail 8
chksum 0x8a
load 0x3ffe8540, len 1708, room 0
tail 12
chksum 0x21
csum 0x21
As with the humidity reading I was getting earlier, that temp of 128.86 also corresponds to a read of all "1"s on the i2c bus. And now the watchdog reset happens when the attempt is made to measure the humidity.
Thanks for the suggestion, certeza, I will try adding your suggested delay next.
You do not have the required permissions to view the files attached to this post.