I2CSoilMoistureSensor icon indicating copy to clipboard operation
I2CSoilMoistureSensor copied to clipboard

Two sensors

Open fabio1955 opened this issue 3 years ago • 8 comments

I did try one sensor with the default address (0X20) and it worked. I did try the change address and it worked (0X21). I did try to have two sensors (0X20 + 0X21) and it stopped. Even the I2C scanner dd not work anymore. It is blocked. Then I did try to use the changeSensor method but it didn't work. Then the question. It is possibile to have a two sensor example working? Arduino UNO and Nano tested with 1.8.15 IDE.

fabio1955 avatar Jun 29 '21 09:06 fabio1955

Does anyone have advice on the above?

kyle-ssg avatar Aug 10 '22 12:08 kyle-ssg

I've ran 3+ sensors. I used 0x20, 0x25, 0x30. Low power will cause the addresses to change so if you batteries are below around 2.5v be ready to have problems.

You should be able to do a scan and pick up whatever sensors are reporting and what address they are at if they do change then manually change them back. Also, run a median filter on the readings if you are turning them off and back on again. Sometimes the first reading is wrong. Good luck!

On Wed, Aug 10, 2022 at 6:04 AM Kyle Johnson @.***> wrote:

Does anyone have advice on the above?

— Reply to this email directly, view it on GitHub https://github.com/Apollon77/I2CSoilMoistureSensor/issues/21#issuecomment-1210578438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4NCTARC6R263R2FXRGVHTVYOLDRANCNFSM47PXJTWA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

RT38 avatar Aug 11 '22 18:08 RT38

Hi all!, what about if i have this readings?. It seems that my water chirp sensor is not propperly connected but turned on instead. Weird.

image

marty1982 avatar Mar 21 '23 13:03 marty1982

Wrong address or a corroded sensor and it's toast. Scan for address to double check it's correct.

(I haven't touched my sensors in 2+ years so grain of salt)

-Roger

On Tue, Mar 21, 2023, 6:28 AM Martin Coria @.***> wrote:

Hi all!, what about if i have this readings?. It seems that my water chirp sensor is not propperly connected but turned on instead. Weird.

[image: image] https://user-images.githubusercontent.com/26166711/226620410-b9266d7d-51c3-4a96-a8df-517f0406f05d.png

— Reply to this email directly, view it on GitHub https://github.com/Apollon77/I2CSoilMoistureSensor/issues/21#issuecomment-1477838919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4NCTHOGSQ3NMM73PVBC63W5GUI5ANCNFSM47PXJTWA . You are receiving this because you commented.Message ID: @.***>

RT38 avatar Mar 21 '23 13:03 RT38

Uhm is weird because i have 4 brand new sensors.

photo_2023-03-21_10-37-07

I have it connected to a Wemos D1. GND 3V SCL SDA

marty1982 avatar Mar 21 '23 13:03 marty1982

Check the addresses of your sensors. If you have multiple sensors on one address you could get those readings.

Make sure all your connections are good. If a loose connection and it gets low power it can reset address.

-Roger

On Tue, Mar 21, 2023, 6:37 AM Martin Coria @.***> wrote:

Uhm is weird because i have 4 brand new sensors.

[image: photo_2023-03-21_10-37-07] https://user-images.githubusercontent.com/26166711/226622894-b56ec1c8-1a25-49c3-ad5d-1bdc5800b6eb.jpg

I have it connected to a Wemos D1. GND 3V SCL SDA

— Reply to this email directly, view it on GitHub https://github.com/Apollon77/I2CSoilMoistureSensor/issues/21#issuecomment-1477852700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4NCTBAGZMIKP6RZAX4VL3W5GVKDANCNFSM47PXJTWA . You are receiving this because you commented.Message ID: @.***>

RT38 avatar Mar 21 '23 13:03 RT38

Well something is wrong i think but i cannot find it out.

image

marty1982 avatar Mar 21 '23 13:03 marty1982

and the weird thing is that previously this worked in a wemos d1 mini with no problem. The wemos d1 mini get frosted and that's because im using another arduino board. I dont't think that could be a problem.

marty1982 avatar Mar 21 '23 14:03 marty1982