0

Adafruit STEMMA Soil Sensor
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit STEMMA Soil Sensor

by campegg on Fri Jan 04, 2019 4:16 pm

Hi there,

I recently purchased the STEMMA Soil Sensor, and it's wired up to an RPi Zero W...

IMG_0064.JPG
IMG_0064.JPG (248.93 KiB) Viewed 177 times


...but when I try to get a reading from it, I get an error:

Code: Select all | TOGGLE FULL SIZE
ValueError: No I2C device at address: 36


And when I try to detect the sensor, nothing shows up:

Code: Select all | TOGGLE FULL SIZE
pi@cpzero:~ $ 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: -- -- -- -- -- -- -- -- 


Can anyone help me troubleshoot, please?

campegg
 
Posts: 2
Joined: Sun Oct 23, 2016 9:37 pm

Re: Adafruit STEMMA Soil Sensor

by millercommamatt on Fri Jan 04, 2019 4:19 pm

Your SDA and SCL are switched on the Pi.

millercommamatt
 
Posts: 149
Joined: Tue Jul 31, 2018 4:57 pm

Re: Adafruit STEMMA Soil Sensor

by campegg on Fri Jan 04, 2019 5:10 pm

Oh, damn. I thought I'd double- and triple-checked that. Thanks!

campegg
 
Posts: 2
Joined: Sun Oct 23, 2016 9:37 pm

Re: Adafruit STEMMA Soil Sensor

by wellsi on Fri Jan 11, 2019 11:14 am

The picture for the Raspberry Pi in the Explore and Learn page has it all wrong. Both the I2C lines are reversed and the GND is going to GPIO4 and not GND.
I thought the device was broken until seeing your post.
Last edited by wellsi on Wed Jan 16, 2019 1:17 am, edited 1 time in total.

wellsi
 
Posts: 3
Joined: Fri Jan 11, 2019 11:12 am

Re: Adafruit STEMMA Soil Sensor

by millercommamatt on Fri Jan 11, 2019 11:18 am

Check again. The ground is going to ground. If you read the rest of the thread, you'll see that the swapped SDA and SCL were already spotted and corrected.

millercommamatt
 
Posts: 149
Joined: Tue Jul 31, 2018 4:57 pm

Re: Adafruit STEMMA Soil Sensor

by gregarious2 on Wed Jan 16, 2019 8:36 pm

Any thoughts as to an environmental coat for the Stemma soil sensor? Most of my apps would be longterm insertion into moist soil.

gregarious2
 
Posts: 18
Joined: Mon Nov 01, 2010 5:26 pm

Re: Adafruit STEMMA Soil Sensor

by franklin97355 on Wed Jan 16, 2019 9:11 pm

I'm not sure what it would do to the capability of the sensor but the spray on conformal coatings look to be the thinnest option.

franklin97355
 
Posts: 19728
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit STEMMA Soil Sensor

by kattni on Thu Jan 17, 2019 6:30 pm

Hello, all!

The wiring diagram in the guide has been updated. Thanks for catching this!

kattni
 
Posts: 41
Joined: Fri Aug 18, 2017 6:33 pm

Please be positive and constructive with your questions and comments.