0

ESP8266 WiFi Weather Station Build
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ESP8266 WiFi Weather Station Build

by jabruder on Fri Jan 18, 2019 2:31 pm

Hello,
I ordered the recommended parts for the ESP8266 WiFi Weather Station https://learn.adafruit.com/wifi-weather-station-with-tft-display/overview. I've followed the steps outlined here https://learn.adafruit.com/adafruit-feather-huzzah-esp8266 and was able to get the Feather to run the blink program and it is able to connect to WiFi and pull the sample web page without issue.

When I try to upload the latest weather station color code https://github.com/adafruit/esp8266-weather-station-color/archive/master.zip I'm seeing the following error in the console:

Code: Select all | TOGGLE FULL SIZE
5
Mounting file system...
Formatting file system...

Exception (0):
epc1=0x4000e25d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffd70 end: 3fffffc0 offset: 01a0
3fffff10:  00000004 00004b00 0000003c 401009d8 
3fffff20:  40213810 402138cc 40213a08 ffffb000 
3fffff30:  00400000 00001000 00000000 00000000 
3fffff40:  3ffefbf4 00000cfd 00000cfd 40100594 
3fffff50:  3fffdad0 3ffefbd8 3fffff90 3ffefb60 
3fffff60:  00000000 3fff10f0 3fff10ec 40213281 
3fffff70:  3fffdad0 3ffefbd8 3ffefa50 402141a5 
3fffff80:  3fffdad0 3ffefbd8 3ffefa50 402082ee 
3fffff90:  00000000 00000000 00000000 feefeffe 
3fffffa0:  feefeffe 00000000 3ffefb2c 402129f0 
3fffffb0:  feefeffe feefeffe 3ffe8668 40100a35 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset


I've tried to use different USB cables to upload the sketch and I've used different upload speeds. These do not result in a change in the error. Some searches on Google have indicated it might a problem with the hardware. Any help would be greatly appreciated.

Thank you,
Jason

jabruder
 
Posts: 1
Joined: Wed Jan 09, 2019 1:54 pm

Re: ESP8266 WiFi Weather Station Build

by Skydude on Fri Jan 18, 2019 8:54 pm

I had a similar issue just now. Check ALL your Arduino settings per the tutorial. I discovered that I had "Flash Size: 4M (no SPIFFS)" and it needs to be "Flash Size: 4M (3M SPIFFS)." (in the "Tools" menu)
That fixed it for me.

But I have a different problem – I appear to be getting a five-day-old forecast, and the three forecast icons flash on and off frequently. This is the latest version of the software, with the "Open Weather Map" amendments.

Skydude
 
Posts: 17
Joined: Sat Apr 25, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Thu Jan 31, 2019 6:40 pm

Hi!
Did you ever get the fix for your flashing forcast icons?

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by adafruit_support_carter on Mon Feb 04, 2019 5:55 pm

If you got blink to upload OK, then the USB cable and basic hardware are OK. And you were able to connect to wifi and get webpages, so the WiFi hardware also seems to work. It's probably something related to the more complex weather station code.

It seems to be hanging at the file system format:
https://github.com/adafruit/esp8266-wea ... r.ino#L183
Does it always fail at that same spot?

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Wed Feb 06, 2019 4:30 pm

NO, sometimes it hangs on getting a wifi connection. Other times the top info updates correctly and the bottom is all blank, other times it is the opposite. ONE time it all displayed correctly and DID NOT blink. Fully charged, brand new 2000 mAh Lipo. Very strange. I was thinking about getting the latest from ThingPulse.
Last commit had this: Fix l10n and WiFi connect issues
https://github.com/ThingPulse/esp8266-w ... tion-color

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Sun Feb 10, 2019 6:28 pm

No go....same results with updated code from Github. :(

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by adafruit_support_carter on Mon Feb 11, 2019 1:22 pm

How about the basic example sketch for just running the TFT display? Does that run OK?
https://learn.adafruit.com/adafruit-2-4 ... s-test-3-9

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Wed Feb 13, 2019 4:17 pm

Yup, all the example sketches run just fine. And SOMETIMES when I reboot, the Weather Station works fine as well. Maybe 10% of the time. How could that be???

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by adafruit_support_carter on Wed Feb 13, 2019 5:22 pm

Unfortunately, not sure. It may be related to changes in the API service that the Adafruit fork hasn't caught up with yet. If that TFT test sketches are all working, then it doesn't sound like a hardware problem.

That fact that it works sometimes might be network related. Can you correlate that behavior to anything?

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Wed Feb 13, 2019 5:52 pm

Nope. No correlation that I can see. And why only PART of the screen flickers...the forcast of three days. Everything else is rock solid.

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by adafruit_support_carter on Fri Feb 15, 2019 2:03 pm

I just re-tested the current version and it generally worked in my case. The only changes I made were for wifi connection. The information is not correct at all since I haven't set regional information, just a bunch of clouds with question marks. But there is no odd behavior with the display. The clock at the top is ticking away each second. Forecast scrolls every now and then. Etc.

To make sure it's not power related, go ahead and test with power coming from the USB cable.

To make sure it's not wifi related, try moving closer to your router.

It could be hardware related, but since the basic TFT example sketch all seem to work fine, that doesn't seem to be the issue.

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Fri Feb 15, 2019 2:27 pm

Thanks for the quick reply. I think I found the culprit!
I went into the Arduino IDE and updated all my libraries. After a restart of the IDE I opened the Weather Station sketch and looked at the settings. I noticed that my Flash Size setting was "4M (no SPIFFS)" and it should be "4M (3M SPIFFS)". I compiled and uploaded. The display seems MUCH more stable. Just a tiny flicker with the scrolling forecast, but that should be expected. I did a quick Google for Flash Size Arduino, and did not come up with anything super helpful. I understand different boards have different flash memory sizes, but I was really just looking for a definition of the different settings. Any links for me?

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by adafruit_support_carter on Fri Feb 15, 2019 2:44 pm

Those settings should have been set for you when you selected the board. For example, switch the board to an UNO and you'll see those options go away. Switch back to a Feather ESP8266, and they should come back.

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP8266 WiFi Weather Station Build

by dlongley on Fri Feb 15, 2019 2:52 pm

Yup, when I choose Adafruit Feather Huzzah ESP8266, the Flash Size changes to "4M (no SPIFFS)", but the Learn article
states "4M (3M SPIFFS)". https://learn.adafruit.com/wifi-weather ... y/software

dlongley
 
Posts: 12
Joined: Sat Jul 04, 2015 4:58 pm

Re: ESP8266 WiFi Weather Station Build

by Rosebud on Mon Mar 04, 2019 11:40 am

This software for the weather station doesn't use any Adafruit libraries, therefore the touch screen is not supported. The software uses a xpt2046 touchscreen instead of the stmpe610. Is there an adaption of the stmpe610 library for this weather station? The xpt2046 library uses irq pin, and the stmpe610 library doesn't use irq pin, even though one is available. Without the touchscreen the software for the weather station does some strange things, thinking it is getting the screen touched. You are suppose to be able to cycle between 12hr and 24hr clock, and different weather screens, by screen touches in different locations. Any help. The older software issued before the use of the touch screen, supported WeatherUnderGround, and not OpenWeatherMap.
The issue of the flickering forecast icons, I was able to correct by changing the CPU Frequency to 160 MHz from 80MHz in the Tools -> Board.

Rosebud
 
Posts: 8
Joined: Tue Aug 14, 2012 8:43 pm

Please be positive and constructive with your questions and comments.