sully
New Member
Posts: 9
|
Post by sully on Mar 19, 2018 7:30:32 GMT -8
Hello,
I have purchased the weather rack and the weather board. Both have been connected to the RPi 3. Performed the following:
i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f
00: — — — — — — — — — — — — —
10: — — — — — — — — — — — — — — — —
20: — — — — — — — — — — — — — — — —
30: — — — — — — — — — — — — — — — —
40: — — — — — — — — — — — — — — — —
50: — — — — — — — 57 — — — — — — — —
60: — — — — — — — — 68 — — — — — — —
70: — — — — — — 76 77
(Please note 76 is my other sensor - BME280)
I am not sure what software i now need to utilise the data from the wind vane, speed and rain tipper. Has anyone sent this data to microsoft Azure?
Thanks
|
|
|
Post by SDL on Mar 19, 2018 12:58:01 GMT -8
|
|
sully
New Member
Posts: 9
|
Post by sully on Mar 20, 2018 3:27:25 GMT -8
Hi,
Thanks for your reply, I have a few questions:
1. Do i need anything further to the weather rack and the weather board to get readings from the wind speed, vane and rain tipper? It mentions on 1 of your literature papers that for the wind vane "In the case of a Raspberry Pi measuring this voltage requires an external A/D converter such as the optional ADS1015". 2. In the 'weatherboard.py' software you reference the constants - pins as follows: anemometerPin = 26, rainPin = 21 Given that the comments say its GPIO Numbering Mode GPIO.BCM, i am slightly confused, as the weatherboard is connected to the I2c on the Raspberry Pi which are pins 2 and 3 (BCM). Or have i completely missed something? (My understanding of GPIO is very limited).
Thanks
Kevin
|
|
|
Post by SDL on Mar 20, 2018 6:12:30 GMT -8
kevin, 1) Yes, you need an ADC converter to read the wind direction on the Raspberry Pi. Here is the one we sell: shop.switchdoc.com/products/grove-4-channel-16-bit-analog-to-digital-converter16 bits gets you better accuracy on the wind vane. The ADS105 is 12 bits, but will still work pretty well. 2) Those are GPIO.BCM numbers (and you aren't the only one confused by the GPIO pin numbering!) I2C is not GPIO really. (although the pins are on the GPIO pin header) I2C is a bus based protocol that you can hang lots of devices off of. Look up a quick tutorial on I2C and it will make sense to you. BP
|
|
sully
New Member
Posts: 9
|
Post by sully on Mar 20, 2018 6:58:24 GMT -8
Hi,
How does the wind vane connect to the ADC converter? The wind vane uses an RJ11 plug? Would it make it easier and more efficient for your users to have fritzing diagrams available??? From the perspective of I2C, would i just set the anemometer to the I2C address? If so what are the addresses. When i purchased the sensor BME280 from Adafruit they also sent plenty of information on how to set it up, from cloning the Git repo where the software resided to utilising the outputs in other python programs.
I don't want to criticise as i am sure plenty of hard work went into their creation , but the documentation provided isn't particularly user friendly. Also the program commenting is very bare. I have been through this forum and the same message seems to be conveyed. As a suggestion, if the documentation was more comprehensive and user friendly
Kevin
|
|
|
Post by SDL on Mar 20, 2018 17:07:35 GMT -8
|
|
sully
New Member
Posts: 9
|
Post by sully on Mar 21, 2018 9:47:20 GMT -8
Hi,
So i initially purchased the weather rack and the weather board. On the link you pasted above, it doesn't tell the user that you need to also purchase an ADC converter for the wind vane - which i have now ordered from your site. I have connected the weather rack to the weather board via the rj11 plugs. I have connected the weather board to the RPi via the I2C using jumper wires.
kevin
|
|
|
Post by SDL on Mar 21, 2018 13:06:31 GMT -8
You connect the ADC converter to the I2C bus using a Grove cable (or jumper cables). Next you connect the Weather Board up to a channel on the ADC board (we generally using channel A1 for some reason lost in the past) and then to the output of the wind vane on the Weather Board (again using Grove cables or jumper cables).
Then you have the whole system connected.
Using Grove cables and a Pi2Grover just makes the process easier, if not less error prone. But are not necessary.
Best,
BP
|
|
sully
New Member
Posts: 9
|
Post by sully on Mar 21, 2018 13:43:53 GMT -8
Hello,
By the method that i described above to connect the weather rack and weather board, i still fail to get a reading from the anemometer and rain tipper using the WeatherBoard.py despite not having the ADC board for the wind vane. Or am i missing something?
Kevin
|
|
sully
New Member
Posts: 9
|
Post by sully on Mar 22, 2018 3:49:46 GMT -8
Hello,
After doing some extra research, am i right in saying that the wind vane, wind anemometer and rain tipper can be connected to the RPi via JP2 WeatherOut? And i could do the following: JP2/1 WindVane - connect to ADC A0 pin (When delivered ADS115 board) I'm guessing this board will then be address 0x48?This board is connected to the I2C bus. JP2/2 RainBucket - connect to GPIO.BCM pin 21 on the RPi JP2/3 Anemometer - connect to GPIO.BCM pin 26 on the RPi JP2/4 GND - connect to GPIO.BCM pin 14 on the RPi
If i was to connect as above would i get a reading from the wind anemometer and tipper. Can t do it yet i am in work.
Kevin
|
|
|
Post by SDL on Mar 22, 2018 8:13:42 GMT -8
Kevin,
You are making big strides in understanding this stuff! Yes, you have got the connections right. You need to make sure that your software is looking for the inputs at the same GPIO pins.
BP
|
|