|
Post by astrosloth0 on Mar 4, 2021 9:21:26 GMT -8
So I'm using SkyWeather2 with just the weatherrack and wireless sensor, I'm doing this because I have my RPI4 running WeeWx and MagicMirror inisde my kitchen (so it functions as a little display as well as actually running SkyWeather2).
-> Side note, if anyone wants any details on how I've done this let me know
Anyway, I have a Grove Base Hat on my RPI4 and a Grove PIR sensor (turns the display off with no nearby motion) corrected to one of the digital ports on the Hat. I also want to use a Grove Gesture sensor to control different weather displays on my display (MagicMirror has a module for this). I cannot get this Gesture sensor to show up on my I2C bus though. sudo i2cdetect -y 1 runs and simply shows nothing connected, no matter which I2C port I try. I've tried fiddling with the I2C settings, to no avail. I have a PiZero, and moving the base hat and sensor to it (with no software running on it) picks up the Gesture sensor just fine.
I have all the "wired sensors" stuff commented out of SkyWeather2.py, so nothing should be even attempting to use the I2C Bus. Can anyone think of a reason why this doesn't work?
|
|
|
Post by doxidad on Mar 4, 2021 14:59:49 GMT -8
Did you enable i2c in rasp-config om the RPI4?
|
|
|
Post by SDL on Mar 4, 2021 15:02:58 GMT -8
What base hat are you using?
BP
|
|
|
Post by astrosloth0 on Mar 4, 2021 16:48:58 GMT -8
|
|
|
Post by astrosloth0 on Mar 4, 2021 17:02:20 GMT -8
I actually tried the hat (I think its a "pi2grover") that came with my SkyWeather system, and that didn't work either.
|
|
|
Post by SDL on Mar 7, 2021 13:43:37 GMT -8
Pi2Grover is 5.0V and the base hat is 3.3V. That's one difference.
If you plug in a known working I2C device it should show up with "sudo i2cdetect -y 1", with some exceptions.
Do you have another Pi to try? I'd guess somehow your software install of I2C is failing but that would rule out a hardware problem.
BP
|
|
|
Post by astrosloth0 on Mar 21, 2021 15:05:57 GMT -8
So I finally got around to trying this... I stepped through my startup just now.
Normal startup and grove gesture sensor works just fine
Started Mosquitto, verified gesture sensor works fine Started WeeWx, verified gesture sensor works fine Started SkyWeather2
Now i2c bus appears empty, grove_gesture.py has remote IO error, etc.
Something SkyWeather2.py is doing seems to be hogging the i2c bus.
|
|
|
Post by astrosloth0 on Mar 21, 2021 15:53:11 GMT -8
I think it was the way SkyWeather2.py restart pigpiod internally. Once I removed that part of the script the gesture sensor could co-exist.
I just use /etc/rc.local to make sure pigpiod is started on boot.
|
|
|
Post by SDL on Mar 21, 2021 16:38:59 GMT -8
Boy, that is an unknown side effect. Thank you for finding this.l
BP
|
|