axel
New Member
Posts: 23
|
Post by axel on Jun 19, 2017 17:19:34 GMT -8
Since a while I am trying to get the grove weather pi to work with no success. I am trying to get it all to run without the solar part, just the PI with the 5V as a power source. Should be easy I thought but apprently I am missing something. Could someone please take a look at my cabling I have done so far ... attaching 2 images. Thanks .axel Attachments:
|
|
|
Post by SDL on Jun 19, 2017 17:56:25 GMT -8
|
|
axel
New Member
Posts: 23
|
Post by axel on Jun 20, 2017 18:37:59 GMT -8
ok thanks, I can connect 4 wires .. in the tutorial it says "JP7-1 to JP6-1". Using the best magnifier I have, I am not able to figure out which pin is what. Also the picture with the full wired up GrovePi weather is not good enough to figure out how to connect JP7 with JP6.
Anyone? Thanks! .axel
|
|
|
Post by SDL on Jun 20, 2017 20:19:28 GMT -8
Axel, Here is a pin # diagram of the part. This should help! BP
|
|
axel
New Member
Posts: 23
|
Post by axel on Jun 21, 2017 18:03:20 GMT -8
This was very helpful, thank you.
When running "sudo python GroveWeatherPi.py" I am still getting the error:
----------------- >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< Traceback (most recent call last): File "GroveWeatherPi.py", line 257, in <module> weatherStation = SDL_Pi_WeatherRack.SDL_Pi_WeatherRack(anemometerPin, rainPin, 0,0, SDL_MODE_I2C_ADS1015) File "./SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 192, in __init__ self.ads1015 = ADS1x15(ic=ADS1015, address=0x48) File "./Adafruit_ADS1x15/Adafruit_ADS1x15.py", line 138, in __init__ self.i2c = Adafruit_I2C(address) File "./Adafruit_ADS1x15/Adafruit_I2C.py", line 43, in __init__ self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber()) IOError: [Errno 2] No such file or directory -----------------
|
|
|
Post by SDL on Jun 21, 2017 18:41:57 GMT -8
First of all, please run:
i2cdetect -y 1
and post the results.
BP
|
|
axel
New Member
Posts: 23
|
Post by axel on Jun 22, 2017 4:30:07 GMT -8
Correction .. got it running and this is the output:
0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77
|
|
|
Post by SDL on Jun 23, 2017 8:47:14 GMT -8
Looks good to us!
Always tell us what you did to get it running. That really helps other people.
BP
|
|
axel
New Member
Posts: 23
|
Post by axel on Jun 23, 2017 18:46:48 GMT -8
|
|
|
Post by SDL on Jun 24, 2017 15:21:27 GMT -8
Great! Glad you got it working.
If you are referring to the graphs generated by GroveWeatherPi.py, then look in the SDL_Pi_GroveWeatherPi directory and look under the static directory.
pi@RPi3-60:~/SDL_Pi_GroveWeatherPi $ ls static BarometerLightningGraph.png PowerCurrentGraph.png PowerVoltageGraph.png TemperatureHumidityGraph.png
You can link this static directory to a directory in your html directory (often under /var/www/html ) and then you can access the graphs on the web.
BP
|
|