|
Post by stevearmitage on Oct 25, 2017 0:18:21 GMT -8
Thanks for getting back to me. How do i get notifications if someone else responses to this thread? I checked the documentation a number of times to make sure i'd connected everything correctly. The only change between the 2 readings was adding the red wire to the solar charger board. Click images for larger images Close up of most of the items
Air quality sensor is attached to the top of the tube on the left External temp & humidity sensor is inside the tube on the left. Screen has been disconnected to save power The control box The complete device before final mounting
|
|
|
Post by SDL on Oct 25, 2017 9:56:49 GMT -8
Steve,
You do nice work! Nice build.
You guys have given me enough information to cobble together a duplicate setup. Back at you by early next week (I plan to come in over the weekend to do this - Laurie said she would give me some comp time in November).
Best,
BP
|
|
smr
New Member
Posts: 6
|
Post by smr on Oct 25, 2017 11:20:45 GMT -8
Excellent. Thanks for looking into it.
Very nice build Steve.
|
|
|
Post by SDL on Oct 25, 2017 18:14:16 GMT -8
Smr,
I have duplicated your problem exactly in the lab. I stayed late tonight. In the next couple of days I will figure out why!
BP
|
|
|
Post by stevearmitage on Oct 26, 2017 0:19:37 GMT -8
An update. It's not as clear cut as originally thought. I have a script running every 5 minutes to log the current information from the weather station into a MySQL database. I have exported a snapshot of the information into the attached weather_station_data.xlsx (55.62 KB) The air quality information is in column AF and AG. 133/221 values return 0, about 60%. - this also means ~40% return a value You can see in this file i create a number of supplementary columns which i'm building out a page to display the information. I'm now going to finish the PHP script which logs the solar information which i'd not bothered to implement as there was no data to capture. Steve
|
|
|
Post by SDL on Oct 27, 2017 15:00:27 GMT -8
Steve,
Very interesting. I have no statistics yet, but I have noticed a little flaky behavior.
Tomorrow, I'm putting together a program that just isolates the bad reads so I can work on precisely the problem. Maybe Laurie or John will buy me a beer.
BP
|
|
|
Post by SDL on Oct 28, 2017 15:28:53 GMT -8
Solved! OK, here is the issue and how to fix it. After a bunch of testing, it finally occurred to me what is going on. Quad Grove ADS1115 board defaults to the same address as the SunAirPlus board and hence screws up the reading sometimes, if not always (once in a while the data might get through). I modified the I2C address on the Quad Grove ADS1115, changed the OurWeather Software to find it and now everything works perfectly! If you have the Solar Power Extender Kit and the Air Quality Extender, you have a conflict. The SAP (SunAirPlus) ADS1015 has a non-changable address of 0x48 The WeatherPlus ADS1115 has a non-hangable address of 0x49 (this is for the weather vane) And ----- The Grove ADC1115 has a default address of 0x48, which conflicts with the SAP board. This is why you get air quality when you take the VDD away (disabling the SAP I2C readouts) and then it is gone or at best flakey with the VDD connected. ---To Solve!--- Solder a pin to the pinhole marked ADDR on the Grove ADS1115 board and then connect a jumper from ADDR to SDA (in the pin header row on the same board), power it back on and then the board now has the I2C address 0x4A Then, in the OurWeather Software, in SDL_ESP8266_WeatherPlus.ino (the main file) change the following line: Adafruit_ADS1115 adsAirQuality(0x48); to Adafruit_ADS1115 adsAirQuality(0x4A); and everything works! BTW, this fits ALL the evidence you guys gave me and it works perfectly for me here in the SDL lab today. Best regards, BP P.S. Time for a beer. Maybe two.
|
|
smr
New Member
Posts: 6
|
Post by smr on Oct 29, 2017 15:24:31 GMT -8
Thanks!
|
|
smr
New Member
Posts: 6
|
Post by smr on Oct 29, 2017 15:26:15 GMT -8
Sorry, hit submit too quick...
Thanks! Definitely need a beer or two for that one. I'll give this a shot sometime this week.
|
|
|
Post by stevearmitage on Oct 30, 2017 17:44:18 GMT -8
Done - looks like that's done the trick.Thanks! My issue is that the stattion is no longer reporting to Weather Underground www.wunderground.com/personal-weather-station/dashboard?ID=IPERTH93I have used the REST API to update the ID and KEY, but still nothing... ( My assumption is that any updates to the s/w will require this update to be manually made.
|
|
|
Post by stevearmitage on Oct 31, 2017 21:54:14 GMT -8
|
|
|
Post by SDL on Nov 1, 2017 18:07:42 GMT -8
You will have to apply this fix. I'm not sure how to detect the difference between the two configurations automatically, but I could change the code such that you could set a variable with a REST call.
BP
|
|
smr
New Member
Posts: 6
|
Post by smr on Nov 3, 2017 11:29:05 GMT -8
I was able to put in the pin and make the software change. Works great. Thanks!
|
|