0

Adafruit STEMMA Soil Sensor Adress Change
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit STEMMA Soil Sensor Adress Change

by max22 on Thu Jun 06, 2019 2:13 am

Hi,
i have 8 Sensors from :
https://learn.adafruit.com/adafruit-ste ... or/pinouts

on a ESP 8266 i test the sensor with:
https://github.com/adafruit/Adafruit_Se ... xample.ino

it work' s

but how can i change the Adress from 0x36 to 0x33 or so on.
i found the Discription:
There's also two I2C address jumpers. The default address is 0x36, but you can select between 0x36 and 0x39 inclusive by shorting AD0 (to add 1 to the address) and/or AD1 (to add 2 to the address)

but when i will add 8 Sensors ??

how can help me ? is there a way to change the Adress with code ?


Thanks a lot Max

max22
 
Posts: 2
Joined: Thu Jun 06, 2019 2:07 am

Re: Adafruit STEMMA Soil Sensor Adress Change

by franklin97355 on Thu Jun 06, 2019 2:41 am

Take a look at the i2c multiplexer chip to add more addresses.

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

Re: Adafruit STEMMA Soil Sensor Adress Change

by max22 on Thu Jun 06, 2019 4:41 pm

Oh thanks,

i'm very new to coding ESP 8266 can you give me an example of code for Adress Changing and Moisture read
of MoistureSensors.

Thanks

max22
 
Posts: 2
Joined: Thu Jun 06, 2019 2:07 am

Please be positive and constructive with your questions and comments.