kuma
New Member
Posts: 7
|
Post by kuma on Jun 21, 2019 22:19:55 GMT -8
Is there a wiring diagram that shows Switchdoc ADS1115 > Weatherboard grove/weatherrack connected > Raspberry PI 3. Trying to add the ADS1115 to the get wind direction from Weahterrack wind vane. Assumption 1 Weatherboard out (Grove A wind vane/analog) to ADS1115 (A0). Assumption 2 ADS1115 I2C connects to RPI Pins?
If so what pins/I2C Bus is software setup for?
|
|
|
Post by SDL on Jun 22, 2019 16:25:03 GMT -8
Not sure what software you are referring to. Look in the software ti find out where. I think I remember the wind vane is hooke up to A1.
Yes, the ADS1115 hooks up to the Pi through the grove connector.
If this doesn't make sense, post a picture of your weatherboard so we can see what version you have.
BP
|
|
kuma
New Member
Posts: 7
|
Post by kuma on Jun 24, 2019 11:02:27 GMT -8
_  _
|
|
kuma
New Member
Posts: 7
|
Post by kuma on Jun 24, 2019 11:06:37 GMT -8
software = Weather Board Test File # Version 1.8 August 22, 2016 # # SwitchDoc Labs # www.switchdoc.com# # # imports
|
|
|
Post by SDL on Jun 25, 2019 11:27:08 GMT -8
Don't understand your last posting. Boy, that is a lot of wires you have hooked up. Might look at using a pi2Grover card for the Pi.
What does "sudo i2cdetect -y 1" on the Pi show?
BP
|
|
|
Post by SDL on Jun 25, 2019 11:27:12 GMT -8
Don't understand your last posting. Boy, that is a lot of wires you have hooked up. Might look at using a pi2Grover card for the Pi.
What does "sudo i2cdetect -y 1" on the Pi show?
BP
|
|
kuma
New Member
Posts: 7
|
Post by kuma on Jun 25, 2019 12:48:02 GMT -8
$ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: 50 -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77 New wiring: Weatherboard "wind vane analog"(grove) to ADS1115 "A0"
ADS115 "I2C"(grove) to weatherboard "I2C" ran Weatherboard_test.py result: error line 472 (OLED scroll issue). commented out lines 472 - 473 "if statement". ran Weatherboard_test.py result: DS3231= 2019-06-26 11:02:16 ----------------- ----------------- AT24C32 EEPROM ----------------- writing first 4 addresses with random data address = 0 writing value=124 address = 1 writing value=80 address = 2 writing value=126 address = 3 writing value=1 ----------------- reading first 4 addresses address = 0 value = 124 address = 1 value = 80 address = 2 value = 126 address = 3 value = 1 ----------------- AM2315 = 0.0
Weather Board Demo / Test Version 1.6 - SwitchDoc Labs
Program Started at:2019-06-26 11:02:18
---------------------- DS3231: Present BMP280: Present FRAM: Present HTU21DF: Present AM2315: Not Present ADS1015: Not Present ADS1115: Present AS3935: Not Present OLED: Not Present SunAirPlus: Not Present WXLink: Not Present ---------------------- ---------------------------------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2019-06-26 11:02:18 DS3231= 2019-06-26 11:02:17 DS3231 Temperature= 21.50 C ----------------- ----------------- WeatherRack Weather Sensors WeatherRack Local ----------------- ----------------- AM2315 Temperature/Humidity Sensor Not Present ----------------- ----------------- ----------------- Rain Total= 0.00 in Wind Speed= 0.00 MPH MPH wind_gust= 0.00 MPH Wind Direction= 0.00 Degrees Wind Direction Voltage= 0.655 V ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 23.51 C Pressure = 101.70 KPa Altitude = -31.34 m Sealevel Pressure = 101.70 KPa ----------------- ----------------- HTU21DF Temp/Hum ----------------- Temperature = 21.80 C Humidity = 57.00 % ----------------- Rain Total= 0.00 in Wind Speed= 0.00 MPH MPH wind_gust= 0.00 MPH ----------------- AS3935 Lightning Detector Not Present ----------------- ----------------- ----------------- FRAM Present ----------------- writing first 3 addresses with random data address = 0 writing value=249 address = 1 writing value=113 address = 2 writing value=141 ----------------- reading first 3 addresses address = 0 value = 249 address = 1 value = 113 address = 2 value = 141 -----------------
----------------- SunAirPlus Not Present ----------------- Sleeping 10 seconds
Outstanding issue: Wind direction reads 0.00 or 157.50. If wind>0 moving wind vane manual direction changed, I only get those two readings.
|
|
|
Post by SDL on Jun 30, 2019 6:28:54 GMT -8
Sure looks like you have the anemometer and rain bucket cables reversed. What happens when you tilt the rain bucket?
BP
|
|
kuma
New Member
Posts: 7
|
Post by kuma on Jul 11, 2019 13:02:47 GMT -8
Yes, reversed. I reversed to RJ11 connectors so that the 2 wire is in the rain and 4 wire is in the wind. Now I get no reading from wind/wind direction and the rain total climbs very rapidly with no rain falling.
|
|
|
Post by SDL on Jul 14, 2019 17:36:13 GMT -8
OK, that would be typical if you had plugged them in backwards (as in the previous post it looks like you did). Reverse them again.
Do you have a multimeter?
If so, measure the voltage on the Wind Vane pins on the WeatherBoard and tell us what it is giving.
Something doesn't look wired up right.
BP
|
|
kuma
New Member
Posts: 7
|
Post by kuma on Sept 26, 2019 8:02:43 GMT -8
Resolved with Grove Connector Interface Board.
|
|