|
Post by jbizlv on May 26, 2020 17:13:16 GMT -8
I received my SGS today and assembled it easily. When I power on my pi after everything is connected, 2 blue lights come one. 1 on the Pi2Grover and 1 on the ADC. The problem is that when i run 'i2cdetect –y 1' i get the following error message. (I have made sure I2C is enabled & all the python pip packages are installed per the SGS manual. Please help , I've run: 'lsmod | grep i2c' and see the i2c kernel extension module is loaded. pi@plantadmin:~/SDL_Pi_SmartGardenSystem $ lsmod | grep i2c i2c_bcm2835 16384 0 i2c_dev 20480 0 
|
|
|
Post by SDL on May 26, 2020 17:19:15 GMT -8
Would you cut and past the resulting text so we can see the error?
We don't see the picture above. There is a 1MB limit on picture size.
We need to see the result of the "sudo i2cdetect -y 1" command.
BP
|
|
|
Post by jbizlv on May 26, 2020 17:24:01 GMT -8
Doh!!! Sorry bout that.
pi@plantadmin:~/SDL_Pi_SmartGardenSystem $ i2cdetect –y 1 Error: I2C bus name doesn't match any bus present! Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST] i2cdetect -F I2CBUS i2cdetect -l I2CBUS is an integer or an I2C bus name If provided, FIRST and LAST limit the probing range.
|
|
|
Post by SDL on May 26, 2020 17:38:42 GMT -8
You don't have the I2C system installed and enabled. Go back through the procedure (you can find it on the web) and try again.
BP
|
|
|
Post by jbizlv on May 26, 2020 17:43:03 GMT -8
> You don't have the I2C system installed and enabled. > Go back through the procedure (you can find it on the web) and try again.
I had gone through everything prior to posting on the boards... 3 times! The i2c-dev package is in /etc/modules
pi@plantadmin:~/SDL_Pi_SmartGardenSystem $ cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored.
i2c-dev
Here's the results
pi@plantadmin:~/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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
|
|
|
Post by jbizlv on May 27, 2020 4:28:40 GMT -8
I know the wiring is correct. I've checked it multiple times.
All 4 connections that should be on the I2C bus on the Pi2Grover are. The other 3 ports on the Pi2Grover are going from the correct Analog Grover connections to the correct sensors.
How can I get a replacement kit?
|
|
|
Post by jbizlv on May 27, 2020 5:25:11 GMT -8
Here's my OS info: pi@plantadmin:/dev $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
It's a RasPi 4 4GB
See's device in /dev: pi@plantadmin:/dev $ ls -al i2* crw-rw---- 1 root i2c 89, 1 May 27 05:25 i2c-1 pi@plantadmin:/dev $
Please let me know if there is any more troubleshooting I can do before I send this back & you ship me a new kit.
Thanks
|
|
|
Post by jbizlv on May 27, 2020 11:32:15 GMT -8
After unplugging everything & plugging it back into the same ports as before on all the boards, one by one and running 12cdetect after each one confirming that part works, it seems to be working for the i2cdetect test.
I wonder if it might be a shorted wire on the grove cables from being bent under the red 3D printed stand?
Right now, everything is just kind of laying about, not in the stand & it detected everything:
pi@plantadmin:~/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: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
Thanks for the help BP & whoever was on the FB Messenger for switch doc. They are the ones who recommended I unplug everything and plug everything back into the 2ic bus 1 at a time & run i2cdetect after each to see if it was detected. So thanks again!!
|
|
|
Post by SDL on May 29, 2020 11:58:06 GMT -8
You bet! Plug things back in the stand one by one.  BP
|
|