|
Post by SDL on Apr 1, 2020 15:40:48 GMT -8
Does it work?
BP
|
|
|
Post by enekuda on Apr 15, 2020 12:11:47 GMT -8
sorry for the late reply, been WAY too busy at work...no time for fun stuff as of late lol. And No, i had already added that code you mentioned, way back, i still am stuck at this point: ........
So now when i start up i get this:
sudo python SkyWeather.py
(1333.9968000000001, 591, 161) () ('Pi Camera Revision', u'ov5647') Error accessing 0x48: Check your I2C address Error accessing 0x48: Check your I2C address Type Error I/O error(121): Remote I/O error ('after bme680', False) as3935 start as3935 present at 0x02 after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2020-03-24 19:00:31
---------------------- I2C Mux - TCA9545: Present BME680: Not Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Not Present AS3935: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Not Present Traceback (most recent call last): File "SkyWeather.py", line 1721, in <module> print returnStatusLine("Dual SolarMAX/WXLink",config.Dual_MAX_WXLink) AttributeError: 'module' object has no attribute 'Dual_MAX_WXLink'
now, there still seems to be errors as the program halts, but i dont know what tests to run at this point to diagnose?
I have, this is what that section looks like currently: # LED configuration (on use on a Raspberry Pi 3B+)
runLEDs = False
SolarMAX_Present = False Dual_MAX_WXlink = False
# SolarMAX_Type = "LEAD" for SolarMAX Lead Acid # SolarMAX_Type = "LIPO" for SolarMAX LiPo SolarMAX_Type = ""
# WeatherSTEM configuration
|
|
|
Post by SDL on Apr 17, 2020 16:53:26 GMT -8
Dual_MAX_WXlink = False
Should be:
Dual_MAX_WXLink = False
Note the capital "L".
BP
|
|
|
Post by enekuda on Apr 23, 2020 18:37:29 GMT -8
yup....that would make the difference in that one lol....i dont know how many dozens of times i went back and double checked that and still missed it....
OK new development.....
(0.0, 0, 0) () ('Pi Camera Revision', u'ov5647') Error accessing 0x48: Check your I2C address Error accessing 0x48: Check your I2C address Type Error I/O error(121): Remote I/O error ('after bme680', False) as3935 start as3935 present at 0x02 after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2020-04-23 21:32:22
---------------------- I2C Mux - TCA9545: Present BME680: Not Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Not Present AS3935: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Not Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Present UseWeatherStem: Present ---------------------- as3935 Interrupt sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- ----------------- Traceback (most recent call last): File "SkyWeather.py", line 1762, in <module> sampleAndDisplay() File "SkyWeather.py", line 1291, in sampleAndDisplay sampleWeather() File "SkyWeather.py", line 995, in sampleWeather HTUhumidity = bmp180Humidity UnboundLocalError: local variable 'bmp180Humidity' referenced before assignment
|
|
|
Post by SDL on Apr 25, 2020 12:17:54 GMT -8
Well, this is a problem having to do with your BMP680 is not present.
Run the program to test the TCA9545 and compare the results in the manual.
Post them here too.
BP
|
|
|
Post by enekuda on Apr 30, 2020 16:36:55 GMT -8
ok so i run that and i can see only the 73 shows up, with 29 in bus 3.
seems to me im missing 77 and 48 in bus 0.
looking at the manual that if i understand right would be the BME680 and the ADS1115 both on the pi-weather board, which i had already replaced last month.
sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2020-04-30 19:32:26
-----------BUS 0------------------- tca9545 control register B3-B0 = 0x1 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 1------------------- tca9545 control register B3-B0 = 0x2 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2------------------- tca9545 control register B3-B0 = 0x4 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3------------------- tca9545 control register B3-B0 = 0x8 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
^CTraceback (most recent call last): File "testSDL_Pi_TCA9545.py", line 71, in <module> time.sleep(5.0) KeyboardInterrupt
|
|
|
Post by SDL on May 5, 2020 9:13:19 GMT -8
Could you send me a picture of your wiring? Specifically from the Raspberry Pi Pi2Grover board to the PiWeather Board.
I'm looking for anything on the I2C bus.
BP
|
|