kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 5, 2018 18:50:39 GMT -8
Ok. Works with demo.py! So now what do I need to do to get it to work with the whole Solar Grove Weather Pi?
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 6, 2018 10:07:55 GMT -8
Well, the thunderboard appears to be working but now I get this:
----------------- Sunlight Vi/IR/UV Sensor ----------------- [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1257, in sampleAndDisplay Sunlight_Sensor.readVisible()) File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 262, in readVisible data = self._device.read_i2c_block_data(SI1145_ADDR,0x22,2)
|
|
|
Post by SDL on Apr 9, 2018 11:08:32 GMT -8
Woohoo! One issue solved.
OK, do you have the SI1145 connected to the I2C bus? please post the startup information printed out during startup.
BP
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 9, 2018 11:42:12 GMT -8
When I plug the SI1145 into the I2C bus on the PI2Grover board, it kills the thunderboard.
Here's both the thunderboard and the SI1145 in the I2C bus:
deviceID = 0x1050 visible= 0
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2018-04-09 09:10:11
---------------------- 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: 2018-04-09 09:10:27 EDT) patTheDog (trigger: interval[0:00:10], next run at: 2018-04-09 09:10:27 EDT) blinkSunAirLED2X (trigger: interval[0:00:10], next run at: 2018-04-09 09:10:27 EDT) tick (trigger: interval[0:01:00], next run at: 2018-04-09 09:11:16 EDT) sampleWeather (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) writePowerRecord (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) updateRain (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) checkForShutdown (trigger: interval[0:05:00], next run at: 2018-04-09 09:15:17 EDT) sampleWeather (trigger: interval[0:15:00], next run at: 2018-04-09 09:25:17 EDT) sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2018-04-09 09:25:17 EDT) WLAN_check (trigger: interval[0:30:00], next run at: 2018-04-09 09:40:17 EDT) ----------------- ----------------- 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= 225.00 Degrees Wind Direction Voltage= 2.986 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2018-04-09 09:10:27 DS3231= 2018-04-09 09:10:26 DS3231 Temperature= 25.25 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 26.26 C Pressure = 99.93 KPa Altitude = 116.79 m Sealevel Pressure = 102.14 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor ----------------- Sunlight Visible(Lux): 49.59 Sunlight IR(Lux): 326.23 Sunlight UV Index: 0.66 ----------------- HDC1080 Temp/Hum ----------------- Temperature = 25.35 C Humidity = 16.86 % ----------------- HTU21DF Temp/Hum Not Present ----------------- ----------------- ----------------- AS3935 Lightning Detector Not Present ----------------- ----------------- ----------------- AM2315 Temperature/Humidity Sensor ----------------- outsideTemperature: 25.1 C outsideHumidity: 19.0 % crc: 1 ----------------- ----------------- ----------------- ----------------- SunAirPlus Currents / Voltage ----------------- LIPO_Battery Bus Voltage: 4.20 V LIPO_Battery Shunt Voltage: 0.12 mV LIPO_Battery Load Voltage: 4.20 V LIPO_Battery Current 1: 1.20 mA Battery Power 1: 0.01 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: 20.08 mV Output Load Voltage 3: 4.95 V Output Current 3: 200.80 mA Output Power 3: 0.99 W
------------------------------ ----------------- 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 Wind Direction= 225.00 Degrees ------Patting The Dog-------
|
|
|
Post by SDL on Apr 9, 2018 12:56:43 GMT -8
Question: Where (on what I2C bus) are you plugging the SI1145? The Thunderboard likes it's own segment with no one else on it.
BP
|
|
|
Post by Lee2 on Apr 9, 2018 22:07:07 GMT -8
Does someone have a definitive diagram showing exactly where each oomponent of a complete GroveWeatherPi should be plugged in so that they ALL work? that seems like the next logical step!
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 10, 2018 4:59:06 GMT -8
SDL I figure a picture is worth a thousand words. See attached photo. Thunderboard I2C, Watchdog Grove Digital, SI1145, and 4 CH Mux J1 are all connect to the PI2Grover I2C ports. I don't know where you would want me to isolate the Thunderboard too. Attachments:
|
|
|
Post by SDL on Apr 10, 2018 10:05:00 GMT -8
Lee and Kkalbaugh, Check your wiring versus the GroveWeatherPi wiring diagram. I can't really untangle all the connections in a picture. You have something plugged in wrong. Wiring List for Raspberry Pi GroveWeatherPi System From To Description Pi2Grover / D13/D16 MOD-1016G / Grove IRQ 50cm Grove Cable Pi2Grover / D21/D26 Weather Board / Grove D Rain Bucket Grove Cable Pi2Grover / D26 Weather Board / Grove D Anemometer Grove Cable Pi2Grover / Grove I2C 4 Chan I2C Mux / Grove J1 - Computer I2C Grove Cable 4 Chan I2C Mux / Grove J2 / Bus0 4 Slot I2C Expander / Any Slot Grove Cable 4 Chan I2C Mux / Grove J3 / Bus1 MOD-1016 / Grove I2C 50cm Grove Cable 4 Chan I2C Mux / Pin Header JP7-1 4 Chan I2C Mux / Pin Header JP6-1 Set Power of I2C Bus to VDD 4 Chan I2C Mux / Pin Header JP7-2 4 Chan I2C Mux / Pin Header JP6-2 Set Power of I2C Bus to VDD 4 Chan I2C Mux / Pin Header JP7-3 4 Chan I2C Mux / Pin Header JP6-3 Set Power of I2C Bus to VDD 4 Chan I2C Mux / Pin Header JP7-4 4 Chan I2C Mux / Pin Header JP6-4 Set Power of I2C Bus to VDD 4 Slot I2C Expander / Any Slot OLED Display / Grove I2C Grove Cable 4 Slot I2C Expander / Any Slot Grove 4Ch/16Bit ADC / Grove I2C Grove Cable 4 Slot I2C Expander / Any Slot Weather Board / Grove I2C Grove Cable Grove 4Ch/16Bit ADC / Grove A1 Weather Board / Grove A Wind Vane Grove Cable Weather Board / Grove I2C Grove AM2315 Temperature / Humidity Sensor Grove Cable (Optional) HTU21D-F Inside Temperature / Humidity Sensor Weather Board / JP14 Plug in Plug in Board Weather Board RJ11 - Rain Bucket WeatherRack Rain Bucket Plug RJ11 Cable Weather Board RJ11 - Anemometer / Wind Vane WeatherRack Anemometer / Wind Vane Plug RJ11 Cable Note: You will use the Female Pin Header to Grove Connector cable provided with your SunAirPlus board in this section. Wiring List for Solar Power Subsystem for the Raspberry Pi GroveWeatherPi System From To Description Raspberry Pi Power Micro USB USB PowerControl USB Out Uses USB cable - A/MicroB USB PowerControl USB In SunAirPlus 5V USB Power Out USB PowerControl LIPOBATIN SunAirPlus JP4 Battery Out Female to Female Header Jumper Wire SunAirPlus - From Computer / SCL Yellow Female Header Pin on Grove Connector SCL SunAirPlus - From Computer / SCL White Female Header Pin on Grove Connector SDA SunAirPlus - From Computer / SCL Red Female Header Pin on Grove Connector VDD SunAirPlus - From Computer / SCL Black Female Header Pin on Grove Connector GND Grove Connector (Previous 4 Items) 4 Chan I2C Mux / Grove J4 - Bus 2 Female Pin Header to Grove Connector SunAIrPlus Battery Female Plug LiPo Battery JST-2 Plug SunAIrPlus Solar Panel Female Plug Solar Panel JST-2 Plug - Note: If you have two solar panels, you will need to solder + to + and - to - on the back of the solar panels. A VoltaicSystems Solar Panel will require an adaptor plug Wiring List for WatchDog Board for the Raspberry Pi GroveWeatherPi System (optional) From To Description WatchDog Board JP5/VDD Raspberry Pi GPIO Header Pin 1/3.3V Female to Female Jumper Wire WatchDog Board JP5/GND Raspberry Pi GPIO Header Pin 6/GND Female to Female Jumper Wire WatchDog Board JP7/Dog1 Raspberry Pi GPIO Header Pin 11/GPIO17 Female to Female Jumper Wire WatchDog Board JP4/ArduinoReset USB PowerControl TP3/COUT - Soldered To Pad (DO NOT CONNECT THIS WIRE UNITL YOU ARE DONE TESTING AND MODIFYING THE SOFTWARE!) Cut one end of 12 inch Female to Female Header Jumper Wire and solder it to TP3/COUT pad as shown below in Step 7. Attachments:
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 10, 2018 10:20:01 GMT -8
SDL but with what you just posted where is the thunderboard AS3935 or the sunlight sensor SI1145? This is the issue I haven't solved. I haven't see a wiring diagram for a GroveWeatherPI with Solar, SI1145 and Thunderboard. Did I miss something?
|
|
|
Post by SDL on Apr 10, 2018 10:27:20 GMT -8
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 10, 2018 11:27:44 GMT -8
I feel like all of these instructions are out of date and doesn't work for what you're shipping now. The instructions you just linked say "SI1145 Board in GroveWeatherPi (BUS3 is the Grove plug just below JP4 on the I2C 4 Channel Mux Board)" But you can't plug anything into JP4 because they're are 4 jumpers in the way for the "Set Power of I2C Bus to VDD".
And I still don't see anything about the thunderboard AS393.
Am I losing my mind? Would it help if I send more detailed photos of each part?
|
|
|
Post by SDL on Apr 10, 2018 13:08:56 GMT -8
Well, maybe a little, but I take your point.
We are in the process of redoing the GroveWeatherPi, improving a few things and modifying the hardware set and most importantly, rewriting the assembly instructions!!!!
The MOD-1016 is 100% compatilble with the ThunderBoard, with the exception of the I2C address.
Plug the SI1145 into BUS3 on the I2C Mux board. You are going to have to squeeze it (which is why the I2C Mux board product is getting revised for our next order of the I2C mux board - grrrrr)
BP
|
|
kkalbaugh
New Member
Posts: 18
Raspberry Pi: Yes
|
Post by kkalbaugh on Apr 11, 2018 4:49:20 GMT -8
So hoping you have an answer for this because I'm getting readings, but I'm not sure I trust them. It detects everything but throws the error below. I'm concerned even though it appears to be storing the SI1114 readings in the mysql database but just not displaying it to the logs or screen. How is that possible, should I trust the readings?
deviceID = 0x1050 visible= 0
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2018-04-11 08:19:14
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Present HTU21DF: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: 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: 2018-04-11 08:19:30 EDT) patTheDog (trigger: interval[0:00:10], next run at: 2018-04-11 08:19:30 EDT) blinkSunAirLED2X (trigger: interval[0:00:10], next run at: 2018-04-11 08:19:30 EDT) tick (trigger: interval[0:01:00], next run at: 2018-04-11 08:20:20 EDT) sampleWeather (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) writePowerRecord (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) updateRain (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) checkForShutdown (trigger: interval[0:05:00], next run at: 2018-04-11 08:24:20 EDT) sampleWeather (trigger: interval[0:15:00], next run at: 2018-04-11 08:34:20 EDT) sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2018-04-11 08:34:20 EDT) WLAN_check (trigger: interval[0:30:00], next run at: 2018-04-11 08:49:20 EDT) ----------------- ----------------- 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= 225.00 Degrees Wind Direction Voltage= 2.978 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2018-04-11 08:19:30 DS3231= 2018-04-11 08:19:29 DS3231 Temperature= 24.50 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 25.53 C Pressure = 99.85 KPa Altitude = 125.05 m Sealevel Pressure = 102.06 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor ----------------- [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1257, in sampleAndDisplay Sunlight_Sensor.readVisible()) File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 262, in readVisible data = self._device.read_i2c_block_data(SI1145_ADDR,0x22,2)
|
|
|
Post by SDL on Apr 11, 2018 8:37:46 GMT -8
Does the program stop at that point or does it continue on? If it continues on, then this is a known bug (conflict in using the I2C bus) and we are addressing it in BugWeek May 2018.
BP
|
|
|
Post by Lee2 on Apr 12, 2018 17:35:52 GMT -8
This is crazy. I have checked and rechecked my connections, followed your list above, and still can't get this to work! I am not even messing with the power subsystem at this point, until I get the sensors all working.
I do not see the lightning detector. this is the third one, and I'm thinking some more testing and a real, definitive and accurate connection diagram/listing is needed for us, the customers to get this to work.
|
|