BeFlE / SoMoSe

Soil Moisture Sensor
21 stars 6 forks source link

SoMoSe sensors stopped working after 1 day of operation, values are all over the place #22

Closed Virtualizer closed 1 month ago

Virtualizer commented 3 months ago

Initially, I used the ESPhome firmware and integrated 4 SoMoSe sensors on one ESP32 by changing the I2C addresses. For about 1 day all has been working fine, then I realized that the values are all over the place. After that I installed the MQTT firmware on another ESP32 device and configured the sensors on that. At this point I already got the result, that the sensors would not always be displayed in the sensors tab. After configuration for the 4 sensors have been completed I opened the Home tab and got more or less the same results as with the ESPhome firmware. The sensors are flip-flopping online/offline and some strange values are reported.

See attached video: https://github.com/BeFlE/SoMoSe/assets/175888/89473d21-effe-4a9b-b5c7-3aecb72981ca

BeFlE commented 3 months ago

Hi,

There seems to be a problem with the hardware configuration. Are the sensors supplied with 3.3V? Are pull-ups being used? Are they connected to 3.3V? If none are used, this should be taken into consideration.

Best regards Christian

Virtualizer commented 3 months ago

Hi,

The sensors are fed via the 3.3V output from the ESP32. Pullups are not used. At least when using ESPhome firmware, there are internal pull-ups active (4.7k, I think). I will (want) use the MQTT firmware from now on, though.

Best

BeFlE commented 3 months ago

The values of the internal pull-ups are usually somewhere between 50K-100K Ohm. Now I don't know your setup, but since there seem to be communication problems, I would first try connecting external pull-ups (4K7).

Virtualizer commented 3 months ago

Ok, I will check with external pull-ups. Do I have to use non-standard GPIO pins then, so that the internal pull-ups are not activated?

BeFlE commented 3 months ago

You can use the same pins. If the internal pull-ups are activated, in the worst case you have the external ones in parallel. This is why they should not be smaller than 4k7.

Virtualizer commented 2 months ago

Just installed the external pull-ups and the sensors are working now, thanks. The readings of one of the 4 sensors are way too low regarding the others and the actual humidity of the soil. About 1500 vs 4400.

poker-spt commented 2 months ago

@Virtualizer Could you please upload a picture with the pull-ups installed?

Why are the internal pull-ups not sufficient?

Virtualizer commented 2 months ago

@poker-spt I installed following this scheme: image