|
Post by SDL on Apr 13, 2018 8:00:29 GMT -8
Lee2,
First of all what are you trying to build (what kit did you buy?).
We need to know some more information from you to help. It is almost certainly a wiring error.
Assuming you have the GroveWeatherPi kit, please run testSDL_Pi_TCA9545.py ( located under the SDL_Pi_TCA9545 directory under GroveWeatherPi) and post the results here. That will give us a great idea what is going on.
BTW, the ThunderBoard does not show up on I2C scans due to the way the AS3935 responds to I2C requests. But our software will pick it up.
Best regards, BP
|
|
lee
New Member
Posts: 36
|
Post by lee on Apr 13, 2018 15:26:42 GMT -8
Ok, I have the complete GroveWeatherPi setup with thunderboard (the newest one you just RMA'd me) and the whole solar power subsytem.
So what you're saying is:
THIS is Normal, and it's still working? ----------------------- [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) ----------------
This comes up repeatedly while program is running.
Now, ONTO the LIGHTNING Sensor.
You're telling me it should NOT show as detected? i.e. Not Present? Yet it will still work? Where should I look for that data?
Thanks!
Lee
PS> If I may suggest a modification to the sunlight sensor: Please change the orientation of the grove connector to the BACK side of the board. makes way much more sense that way.
|
|
|
Post by SDL on Apr 13, 2018 16:13:51 GMT -8
Excellent! Now I understand. The error you are seeing is NOT normal, but it is understood. We are fixing that in the next version. It's on our bug list. A thread based conflict of resources.
What Raspberry Pi are you running?
Please post the strartup text showing all the "device detection" at the start of the program and then tell me EXACTLY how you have the ThunderBoard connected. Look and make sure you are telling me the way you have it hooked up.
BP
|
|
|
Post by SDL on Apr 13, 2018 16:14:43 GMT -8
Oh, and we do plan to move the Grove connector to the back of the Sunlight board. It does make a lot of sense!
BP
|
|
|
Post by Lee2 on Apr 15, 2018 13:31:23 GMT -8
pi@Weather:~/SDL_Pi_GroveWeatherPi $ ./startserver.sh visible= 0
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2018-04-15 21:24:38
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Not Present HTU21DF: Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Present SunAirPlus: Not Present Sunlight Sensor: Present WXLink: Not Present
UseMySQL: Present Check WLAN: Present WeatherUnderground: Present ---------------------- sendmail exception raised ----------------- Scheduled Jobs ----------------- Jobstore default: sampleAndDisplay (trigger: interval[0:00:10], next run at: 2018-04-15 21:24:50 UTC) patTheDog (trigger: interval[0:00:10], next run at: 2018-04-15 21:24:50 UTC) blinkSunAirLED2X (trigger: interval[0:00:10], next run at: 2018-04-15 21:24:50 UTC) tick (trigger: interval[0:01:00], next run at: 2018-04-15 21:25:40 UTC) sampleWeather (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) writePowerRecord (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) updateRain (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) checkForShutdown (trigger: interval[0:05:00], next run at: 2018-04-15 21:29:40 UTC) sampleWeather (trigger: interval[0:15:00], next run at: 2018-04-15 21:39:40 UTC) sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2018-04-15 21:39:40 UTC) doAllGraphs (trigger: interval[0:15:00], next run at: 2018-04-15 21:39:40 UTC) WLAN_check (trigger: interval[0:30:00], next run at: 2018-04-15 21:54:40 UTC) ----------------- ----------------- 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= 0.00 Degrees Wind Direction Voltage= 1.286 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2018-04-15 21:24:51 DS3231= 2018-04-15 21:24:51 DS3231 Temperature= 19.25 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 20.69 C Pressure = 84.17 KPa Altitude = 1537.88 m Sealevel Pressure = 102.34 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor ----------------- No handlers could be found for logger "apscheduler.executors.default" [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 "GroveWeatherPi.py", line 1274, in sampleAndDisplay SunlightVisible = SI1145Lux.SI1145_VIS_to_Lux(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)
as3935 Interrupt processing Interrupt from as3935 Last Interrupt = 0x4: Disturber detected - masking ----------------- Local WeatherRack Weather Sensors Sampling ------Patting The Dog------- ----------------- 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= 0.00 Degrees Wind Direction Voltage= 1.275 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2018-04-15 21:25:01 DS3231= 2018-04-15 21:25:01 DS3231 Temperature= 19.25 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 20.72 C Pressure = 84.16 KPa Altitude = 1538.66 m Sealevel Pressure = 102.33 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 "GroveWeatherPi.py", line 1274, in sampleAndDisplay SunlightVisible = SI1145Lux.SI1145_VIS_to_Lux(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)
^CTraceback (most recent call last): File "GroveWeatherPi.py", line 1864, in <module> time.sleep(1.0) KeyboardInterrupt
|
|
|
Post by Lee2 on Apr 15, 2018 20:37:45 GMT -8
Also, as far as where everything is connected, they are connected according to the discussion in these threads. I also found that removing the clip on the grove connector from the sunlight sensor that plugs into the area interfered with by the power jumpers allows it to fit easily. and it seems to stay in as well. The thunderboard's I2C is at J3 on the MUX, and 13/16 on the Pi2Grover.
|
|
|
Post by Lee2 on Apr 16, 2018 11:01:50 GMT -8
Also, the Pi in question is a model3B
|
|
|
Post by SDL on Apr 17, 2018 11:05:49 GMT -8
Lee2,
Forgive me if I have asked you this before, but have you disconnected the I2C MUx from the Raspberry Pi added just the SI1145 sunlight sensor to the Pi and run the SI1145 demo program?
That will verify that the Sunlight sensor is working.
Post the results.
BP
|
|
|
Post by Lee2 on Apr 18, 2018 9:27:42 GMT -8
Unplugged everything from the Pi2Grover board, plugged in the sunlight sensor to one of the I2C ports
Press Cntrl + Z to cancel Vis: 0 IR: 0 Vis Lux: 0.0 IR Lux: 0.0 UV Index: 0.0 Vis: 0 IR: 0 Vis Lux: 0.0 IR Lux: 0.0 UV Index: 0.0 ^Z [1]+ Stopped python simpletest.py
|
|
lee
New Member
Posts: 36
|
Post by lee on Apr 18, 2018 10:16:32 GMT -8
Also, as far as the readings all being zero, testing was done in a room with limited light on the sensor so im not too concerned at this point about that. I also restarted and tested again without the sensor, and it faulted due to no sensor, so it's definitely seeing it.
|
|
|
Post by SDL on Apr 18, 2018 10:27:51 GMT -8
I'm starting to think you have a bad sunlight board. Run the test above again with a light right next to it. Or a bright flashlight.
BP
|
|
lee
New Member
Posts: 36
|
Post by lee on Apr 18, 2018 13:21:55 GMT -8
OK, i'll do so, but back to interoperability of this board and the thunderboard, I still see no notice that the thunderboard is present or reporting.
|
|
|
Post by SDL on Apr 18, 2018 14:43:58 GMT -8
Lee,
Assuming you are also lee2, then you posted this which shows the Thunderboard (AS3935) present.
Program Started at:2018-04-15 21:24:38
---------------------- I2C Mux - TCA9545: Present BMP280: Present DS3231: Present HDC1080: Not Present HTU21DF: Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Present SunAirPlus: Not Present Sunlight Sensor: Present WXLink: Not Present
BP
UseMySQL: Present Check WLAN: Present
|
|
lee
New Member
Posts: 36
|
Post by lee on Apr 18, 2018 15:23:21 GMT -8
Ah! Yes! I missed that, sorry! (I'm Lee2 because on other computers I don't remember the password for this site) Ok, so I should see notifications referring to the thunderboard ONLY if there is an event detected?
|
|
|
Post by Lee2 on Apr 18, 2018 16:22:51 GMT -8
Also, here is the window I designed and 3d printed for holding the special quartz glass that you sell on your site. it perfectly holds it, but you must seal it with silicone, or do what I did and use epoxy. Then you can use the included holes to screw it to your enclosure at the top. www.thingiverse.com/thing:2868731
|
|