|
Post by Karl on Nov 25, 2017 14:45:53 GMT -8
Hey guys I just got this new ThunderBoard in the mail I received a paper with it that have python code explaining how to detect the senor on my raspberry pi zero However I assumed that the two grove connector that should go into the board are the same one for the original MOD-1016 Lightning detector as explained in the tutorial for the GroveWeatherPi
Pi2Grover / D13/D16 MOD-1016G / Grove IRQ 50cm Grove Cable 4 Chan I2C Mux / Grove J3 / Bus1 MOD-1016 / Grove I2C 50cm Grove Cable
However neither the code snippet that was supported nor the GroveWeatherPi.py code is detecting the boar. I believe this is a hardware/wiring problem. Please help if you can Thanks
Karl
|
|
|
Post by SDL on Nov 25, 2017 16:48:36 GMT -8
Take a picture of the wires in the new Thunderboard in your setup. Yes, the wires should be the same.
Post it please!
BP
|
|
|
Post by SDL on Nov 25, 2017 16:49:27 GMT -8
What version of GroveWeatherPi are you running? The 0x02 and 0x03 address detection was just added a bit ago.
BP
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Dec 4, 2017 13:30:57 GMT -8
SDL I'm having the same issue. Hopefully the picture helps sorry it's not very clear... Hoping to avoid pulling it all back out of the box. :-) deviceID = 0x1050
visible= 0
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2017-12-04 14:23:50
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Present
HTU21DF: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Not Present
OLED: Not Present
SunAirPlus: Present
Sunlight Sensor: Present
WXLink: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
-----------------
SunAirPlus Sampling
-----------------
-----------------
Scheduled Jobs
-----------------
Jobstore default:
sampleAndDisplay (trigger: interval[0:00:10], next run at: 2017-12-04 14:24:03 EST)
patTheDog (trigger: interval[0:00:10], next run at: 2017-12-04 14:24:03 EST)
blinkSunAirLED2X (trigger: interval[0:00:10], next run at: 2017-12-04 14:24:03 EST)
tick (trigger: interval[0:01:00], next run at: 2017-12-04 14:24:53 EST)
sampleWeather (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
writePowerRecord (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
updateRain (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
checkForShutdown (trigger: interval[0:05:00], next run at: 2017-12-04 14:28:53 EST)
sampleWeather (trigger: interval[0:15:00], next run at: 2017-12-04 14:38:53 EST)
sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2017-12-04 14:38:53 EST)
WLAN_check (trigger: interval[0:30:00], next run at: 2017-12-04 14:53:53 EST)
-----------------
-----------------
Local WeatherRack Weather Sensors Sampling
-----------------
Rain Total= 0.00 in
Rain Last 60 Minutes= 0.00 in
Wind Speed= 0.00 MPH
MPH wind_gust= 0.00 MPH
------Patting The Dog-------
Wind Direction= 180.00 Degrees
Wind Direction Voltage= 1.369 V
-----------------
-----------------
DS3231 Real Time Clock
-----------------
Raspberry Pi= 2017-12-04 14:24:03
DS3231= 2017-12-04 14:24:02
DS3231 Temperature= 25.25 C
-----------------
-----------------
BMP280 Barometer
-----------------
Temperature = 26.21 C
Pressure = 98.81 KPa
Altitude = 212.54 m
Sealevel Pressure = 101.01 KPa
-----------------
-----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible(Lux): 49.59
Sunlight IR(Lux): 308.20
Sunlight UV Index: 0.66
-----------------
HDC1080 Temp/Hum
-----------------
Temperature = 26.65 C
Humidity = 27.45 %
-----------------
HTU21DF Temp/Hum Not Present
-----------------
-----------------
-----------------
AS3935 Lightning Detector Not Present
-----------------
-----------------
-----------------
AM2315 Temperature/Humidity Sensor
-----------------
outsideTemperature: 24.7 C
outsideHumidity: 31.0 %
crc: 1
-----------------
-----------------
-----------------
-----------------
SunAirPlus Currents / Voltage
-----------------
LIPO_Battery Bus Voltage: 3.99 V
LIPO_Battery Shunt Voltage: 27.16 mV
LIPO_Battery Load Voltage: 4.02 V
LIPO_Battery Current 1: 271.60 mA
Battery Power 1: 1.09 W
Solar Cell Bus Voltage 2: 0.02 V
Solar Cell Shunt Voltage 2: 0.00 mV
Solar Cell Load Voltage 2: 0.02 V
Solar Cell Current 2: -0.00 mA
Solar Cell Power 2: -0.00 W
Output Bus Voltage 3: 4.95 V
Output Shunt Voltage 3: 19.84 mV
Output Load Voltage 3: 4.95 V
Output Current 3: 198.40 mA
Output Power 3: 0.98 W
Thanks
|
|
|
Post by SDL on Dec 4, 2017 15:50:44 GMT -8
Very clear! Hmmm. It occurs to me that the detection code in GroveWeatherPi may NOT be taking into account the TCA I2C Mux. I'll look at it a bit later today.
BP
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Dec 14, 2017 11:51:39 GMT -8
SDL checking to see if you've had any luck with this.
|
|
|
Post by SDL on Dec 17, 2017 16:01:42 GMT -8
I looked at it in the code and it looks correct. Could you do the following?
1) Power down your Pi
2) Pull all the I2C devices out of the Raspberry Pi Pi2Grover board. Including the I2C Mux board
3) Plug in the I2C of the Thunder Board directly into the Pi2Grover board
4) Re run GroveWeatherPi.py and post the print out.
This will determine whether your Thunder Board is good or not!
BP
|
|
|
Post by Darryl on Dec 17, 2017 21:15:39 GMT -8
Hi. I am having the same issue. I have disconnected everything from the Pi2Grove board and just connected the Thunder to one of the I2C ports and it is detected. If I have it connected to the D13/16 port, it is not detected. Should I be connecting it to one of the I2C ports instead of the D13/16 port?
Thanks
|
|
|
Post by SDL on Dec 19, 2017 7:45:38 GMT -8
Darryl,
The I2C Grove Port on the Thunder Board should go to the I2C on the Pi2Grover board.
The Int Grove Port on the Thunder Board should go to the D13/16 port on the Pi2Grover board.
That should fix you right up!
BP
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 20, 2017 11:39:04 GMT -8
I have the old thunderboard WITHOUT grove connectors because it's been unavailable. The one I have is the MOD-1016 NOT the MOD-1016-G
Could someone PLEASE let me know how to wire this thing up to the latest all-grove WeatherPi? All other components are Grove.
Thanks!
|
|
|
Post by SDL on Dec 22, 2017 10:28:36 GMT -8
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 26, 2017 20:17:28 GMT -8
Hi BP
So besides the I2C , hookup ONLY the YELLOW on the other connector to D13/16 port on my Pi2Grover?
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 26, 2017 20:49:36 GMT -8
Hmmm Apparently that wasn't it. I hooked up the I2c connector to the 1016 as fllows: Black GND Red VCC White SDA and yellow SCL Plugged that into one of the I2C connectors on the Pi2Grover THen connected the Yellow to IRQ on the 1016 and plugged into D13/16 on Pi2Grover.
This results in nothing detected. Meaning none of the other components either.
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 27, 2017 11:16:57 GMT -8
So I tried adding a connevtion to VCC for the interrupt 13/16 connector and same behavior I get: visible= 0 Traceback (most recent call last): File "GroveWeatherPi.py", line 425, in <module> tca9545.write_control_register(TCA9545_CONFIG_BUS0) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 74, in write_control_register self._write(TCA9545_REG_CONFIG, config) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 52, in _write self._bus.write_byte_data(self._addr, register, data) IOError: [Errno 121] Remote I/O error
Then if i run again, I get: GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2017-12-27 19:15:40
---------------------- I2C Mux - TCA9545: Not Present BMP280: Not Present DS3231: Not Present HDC1080: Not Present HTU21DF: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Not Present AS3935: Not Present OLED: Not Present SunAirPlus: Not Present Sunlight Sensor: Present WXLink: Not Present
UseMySQL: Present Check WLAN: Present WeatherUnderground: Present
If I remove the lightning detector, all is good, except obviously NO Lightning detector.
|
|
lee
New Member
Posts: 36
|
Post by lee on Dec 31, 2017 22:51:04 GMT -8
Well, I'm at a loss here. Either locks up everything, or goes undetected. Sure wish they hadnt been out of the grove version.
|
|