|
Post by jrutski on Jun 28, 2018 14:31:57 GMT -8
Hi SDL forums,
Trying to get the GWPi working after wiring everything up to a PiZeroW. On running the script, I get the following error: (I assume 'I2C Mux Not Present' is normal?)
root@raspberrypi:/home/pi/SDL_Pi_GroveWeatherPi# python GroveWeatherPi.py
>>>>>>>>>>>>>>>>>>><<<<<<<<<<<
TCA9545 I2C Mux Not Present
>>>>>>>>>>>>>>>>>>><<<<<<<<<<<
Traceback (most recent call last):
File "GroveWeatherPi.py", line 262, 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 200, in __init__
self.ads1015 = ADS1x15(ic=ADS1015, address=0x48)
File "./SDL_Adafruit_ADS1x15/SDL_Adafruit_ADS1x15.py", line 138, in __init__
self.i2c = Adafruit_I2C(address)
File "./SDL_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
Any thoughts? Thanks in advance
|
|
|
Post by SDL on Jun 28, 2018 15:49:31 GMT -8
Looks like you have a n installation problem on the I2C software. Install the I2C software again.
BP
|
|
|
Post by jrutski on Jun 28, 2018 16:49:01 GMT -8
Thanks for the quick reply - got me in the right direction, ended up being the I2C being disabled on the board. For anyone else:
sudo raspi-config 5 Interfacing Options P5 I2C Enable\Disable Enable Reboot
Thanks again
|
|