Closed ltdenard closed 8 years ago
After further googling and documentation reading, I found out the I2C address was trying to connect to a Adafruit ADS1115 device. Now that I have this the device, the script no longer fails; however, it does not properly output data related to the WeatherRack.
After further debugging and attaching the Adafruit ADS1115 module, I figured out that the diagram above does not match the pin numbers outlined here and here: https://github.com/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/blob/master/SDL_Pi_WeatherRack/SDL_Pi_WeatherRackTest.py#L28 https://github.com/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/blob/master/SDL_Pi_WeatherRack/SDL_Pi_WeatherRackTest.py#L29
This should read as follows:
anenometerPin = 18
rainPin = 15
When I run the following command, it does show it's not there.
$ 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: -- -- -- -- -- -- -- --
What should i do to detect i2c address?
After wiring the WeatherPiArduino to my Raspberry Pi 2 model b as laid out in the following link, I get an error about I2C address 48 not being available. https://i0.wp.com/www.switchdoc.com/wp-content/uploads/2014/10/WPA-RaspberryPiB-_bbLogo.png
When I run the following command, it does show it's not there.
Do I need to change the address in SDL_Pi_WeatherRack.py to point to one of these or is something else the issue?