|
Post by mickey53usa on Jun 5, 2020 9:02:46 GMT -8
Can someone describe the process of connecting the Raspberry Pi to the WeatherBoard. I have Document # 0010-52516-01 which matches the number on the WeatherBoard in Question. On pages 31 & 32 the confusion sets in.
I want to use the Analog WeatherRack that I received back in 2016. The Wiring List found on the above referenced pages seems straight forward until you get to Raspberry Pi GPIO Pin 40 & 21 (understand that) to Grove to Male Pin Header Cable #3. I am not using the Grove Wind Anemometer or the Grove Wind Vane. But, it looks like I have to make the connection to a Grove Header labelled "Grove D Anemom" regardless. The same then would hold true for Raspberry Pi GPIO Pin 37 & 26 to the same Grove Header as stated above.
A Fritzing diagram I found of the connection was helpful , but was apparently for an earlier board version.
Looks like I need to buy some connector/cables. Do I need to buy any other boards?
|
|
|
Post by SDL on Jun 5, 2020 16:31:26 GMT -8
Best thing to do is to buy a Pi2Grover board and connect it in from the Grove connectors. Then you have all the voltages taken care of too.
BP
|
|
|
Post by mickey53usa on Jun 17, 2020 11:18:06 GMT -8
Well there are still connectivity issues - The Wind Vane (Analog Weather Rack) still does not work. All the documentation (Weather Board 0010-052516-01) states that the Wind Vane needs to connect to a Grove 4 channel/16 Bit ADC. Specifically point Grove A1. (See page 23 of the above referenced document.) So, I have to purchase yet another Board to make this all work. The advice given in the post by BP on June 5, 2020 was only half correct, a Pi2Grover board is not enough to couple the Weather Board to the Pi, if you want the wind vane to work. Yes, I even tried connecting the Wind Vane to the Serial Port of the Pi2Grove Board and that did not work either. I have changed the voltages in the WeatherRack script to 3.3v with the 0.66 indicator and changed it to 5.0v with the 1.0 indicator. Neither made a difference.
|
|
|
Post by SDL on Jun 18, 2020 16:31:17 GMT -8
The Wind Vane requires an Analog to Digital converter. It will not work with a digital GPIO line or a serial port. The WeatherBoard contains an ADC board. You use the I2C interface to read the Wind Vane voltage. Look at this software: github.com/switchdoclabs/SDL_Pi_WeatherBoardBP
|
|
|
Post by mickey53usa on Jun 20, 2020 7:05:18 GMT -8
Then I have a problem elsewhere as I have all of the listed software installed and all pass checks. Wiring from the wind vane has been verified with a VOM. I have the ADC board on order, I'll put that in and see if it corrects the problem. I have J4 on the WeatherBoard connected to an I2C port on the Pi2Grove Board and all I get is a constant I2C light. I don't believe that is correct as the Wind Vane should not show constant activity.
|
|
|
Post by SDL on Jun 21, 2020 12:08:24 GMT -8
Do you have an AM2315 plugged into the I2C bus? Sometimes those will hang the bus. I2C should NOT be on continuously. If you have the Weather Board, J3 and J7 are I2C grove ports. Pleases post a picture.
BP
|
|
|
Post by mickey53usa on Jun 26, 2020 12:43:15 GMT -8
I installed the ADC1115 board and now see the Wind Vane displayed, however it reads 0.00 no matter what direction the wind vane points. __________ WeatherRack Weather Sensors WeatherRack Local ----------------- ----------------- AM2315 Temperature/Humidity Sensor ----------------- AM2315 temperature: 23.4 AM2315 humidity: 7.6 AM2315 crc: 1 ----------------- ----------------- SDL_CWS = 3.958759, SDL_Pi_WeatherRack._shortestWindTime = 87632, CWCount=35 TPS=7.000000 Rain Total= 0.00 in Wind Speed= 2.47 MPH MPH wind_gust= 17.12 MPH Wind Direction= 0.00 Degrees Wind Direction Voltage= 4.610 V ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 77.68 F Pressure = 26.71 in Altitude = 3108.12 ft Sealevel Pressure = 26.71 in ______________
I tried setting to 5.0 volts and 3.3 volts in the WeatherRack config script, with no change.
Regards to the AM2315 - it is connected to an I2C port on the Pi2Grover Board.
Of note also is that the DS3231 does not display as being connected -
DS3231 Real Time Clock Not Present ----------------- ----------------- WeatherRack Weather Sensors WeatherRack Local
Running I2C Detect yields - pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77
At least the Wind Vane Displays - If I could get that to work and the DS3231 I'd be very happy -
TIA
|
|
|
Post by SDL on Jun 27, 2020 7:42:06 GMT -8
Take a multimeter and check your wind vane voltages and see if they are changing as according to the specification.
BP
|
|
|
Post by mickey53usa on Jun 29, 2020 5:55:12 GMT -8
OK, I will attempt to do that - Might be easier to read the resistance (ohms) instead, I'll give it a shot.
|
|
|
Post by SDL on Jun 29, 2020 14:58:07 GMT -8
Voltage would be better. You would have to calculate the resulting resistance including the pullup.
BP
|
|
|
Post by mickey53usa on Jul 3, 2020 13:19:25 GMT -8
OK, confirmed the voltages, by connecting to JP2, pin 1&4 on the WeatherBoard. I found the reading to be the 5v scale. It was checked after starting the Raspberry Pi, but without running any software. I then started the WeatherRack test program and tracked the voltages on the meter, against the reading that the test program gave. The voltage reading matched (within a 1/10 of a volt) but the direction display was not always correct, most of the time reading 0.0. To confirm that the Wind Vane was good, I purchased a new one from Argent Data Systems and used that for testing. I ran the WeatherBoard program and the results were the same as the WeatherRack Test program.
|
|
|
Post by SDL on Jul 4, 2020 6:48:29 GMT -8
Post the voltages for 0, 90, 180 and 270 degrees.
BP
|
|
|
Post by mickey53usa on Jul 6, 2020 6:34:52 GMT -8
Voltages as follows:
0 degrees = 4.05 90 degrees = 0.48 180 degrees = 1.49 270 degrees = 4.85
Using Digital VOM
They all read high compared to what is listed in the manual -
|
|
|
Post by SDL on Jul 8, 2020 6:30:00 GMT -8
They do all read high. I wonder if your WeatherBoard pullup resistor is a little low (less than the 47K).
Go into the software and adjust the voltages in the weather rack driver to meet your voltages and it should work.
BP
|
|
|
Post by mickey53usa on Jul 8, 2020 12:00:42 GMT -8
Well I mapped the voltages and then changed the Weather Rack Driver. Better but seems like dead spots in the Wind Vane. Better than it was.
Thanks
|
|