|
Post by Shana on Feb 10, 2019 18:49:54 GMT -8
My SL1145 was working fine last night, but this morning it's only reading 0 for all measurements, IR, UV, etc.
I've tried reseating the connectors, and doing testAllSensors.py. I've also put it under a plant grow light, no difference in the reading.
What else can I do to bring this back from the dead? It looks like there's no more for sale right now.
|
|
|
Post by SDL on Feb 11, 2019 17:07:24 GMT -8
Shana,
Have you complete powered off the system? Does testAllSensors show the SI1145?
If you need a replacement, they are in stock now at shop.switchdoc.com
BP
|
|
|
Post by Shana on Mar 14, 2019 20:28:01 GMT -8
Yes, I've rebooted the system.
I also bought a replacement sensor, and finally installed it. It also shows nothing but 0.
I've tried moving the cable to a different I2C spot, replacing the cable, and replacing the sensors. Still no luck.
I'm getting this: pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ python testAllSensors.py [Errno 121] Remote I/O error [Errno 121] Remote I/O error Error accessing 0x49: Check your I2C address Error accessing 0x49: Check your I2C address
Test All SGS Devices Version 1.0 - SwitchDoc Labs
Program Started at:2019-03-14 21:26:01
Temp = 18.683 deg C Humidity = 39.64 % ----------------- Sunlight Vi/IR/UV Sensor ----------------- Sunlight Visible: 0 Sunlight IR: 0 Sunlight UV Index: 0.0 398.0625 Moisture Humidity = 56.87
I have an Elecrow 7" hdmi touchscreen monitor attached, do you think that might be part of the problem? It's working through usb + hdmi though.
Otherwise everything is stock.
|
|
|
Post by Shana on Mar 14, 2019 20:31:40 GMT -8
Bingo. I disconnected the monitor and rebooted, and now I get:
----------------- Sunlight Vi/IR/UV Sensor ----------------- Sunlight Visible: 280 Sunlight IR: 345 Sunlight UV Index: 0.12 398.678571429
Unfortunately I really want to use this monitor for a QML gui I'm writing so I can visually see what is going on with the watering system without using Blynk. Any suggestions on how to get the two of them to play nicely?
|
|
|
Post by Shana on Mar 14, 2019 21:20:35 GMT -8
Further debugging:
When the monitor is plugged in via usb, I get:
pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ i2cdetect -y 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- 37 -- -- 3a -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- 4a 4b -- -- -- -- 50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
When the monitor is not plugged in:
pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ i2cdetect -y 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
I checked, and the light sensor is always configuring on bus 1, not bus 2.
Still not sure why plugging in the monitor is affecting i2c.
|
|
|
Post by SDL on Mar 17, 2019 18:13:15 GMT -8
You have things hooked up on Raspberry Pi i2c Bus 2? I'm not sure that bus works totally correctly. We certainly haven't tested it. We tried years ago and it didn't behave well so we have never resisted it.
Could this be a power problem?
BP
|
|
|
Post by Shana on Mar 25, 2019 20:41:23 GMT -8
You are correct, this was a power problem.
I swapped out the cell phone charger I was using for a raspberry pi 2.5 v charger, and both the sunlight sensor and the screen work together now.
Thank you.
|
|
|
Post by SDL on Mar 27, 2019 15:51:47 GMT -8
Shana,
Now that is really interesting information. But it kind of fits in an odd way.
BP
|
|