Post by treimers95 on Oct 19, 2017 6:14:49 GMT -8
Hi all-
I have a WeatherRack that is connected to a WeatherPiArduino board.
It's not showing up in i2cDetect, nor is there any data being collected.
When I run i2cdetect, I see 0x77, the WeatherPi board, and if I run i2cdetect several times, the 0x5c
shows for the AM2315 external temp/humidity sensor. I know that device shuts down when not being polled, so
I expect it not to show up every time.
But I never see 0x48 at all.
This device is so simple to plug in that I can't imagine what's wrong - it's just using the two RJ-11 jacks
on the WeatherPiArduino board.
What's wrong?
See below for diag output...
Thanks, Tim
######################
pi@raspberrypi:~/SDL_Pi_GroveWeatherPi/SDL_Pi_WeatherRack $ sudo python SDL_Pi_WeatherRackTest.py
Error accessing 0x48: Check your I2C address
Error accessing 0x48: Check your I2C address
Type Error
----------------------------------------
-----------------
SDL_Pi_WeatherRack Library
WeatherRack Weather Sensors
-----------------
Rain Total= 0.00 in
Wind Speed= 0.00 MPH
max Ever Wind Speed= 0.00 MPH
MPH wind_gust= 0.00 MPH
max Ever Gust wind_gust= 0.00 MPH
Error accessing 0x48: Check your I2C address
Error accessing 0x48: Check your I2C address
Traceback (most recent call last):
File "SDL_Pi_WeatherRackTest.py", line 75, in <module>
print "Wind Direction=\t\t\t %0.2f Degrees" % weatherStation.current_wind_direction()
File "/home/pi/SDL_Pi_GroveWeatherPi/SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 243, in current_wind_direction
value = self.ads1015.readADCSingleEnded(1, self.gain, self.sps) # AIN1 wired to wind vane on WeatherPiArduino
File "../Adafruit_ADS1x15/Adafruit_ADS1x15.py", line 278, in readADCSingleEnded
return ( ((result[0] << 8) | (result[1] & 0xFF)) >> 4 )*pga/2048.0
TypeError: 'int' object has no attribute '__getitem__'
pi@raspberrypi:~/SDL_Pi_GroveWeatherPi/SDL_Pi_WeatherRack $ 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77