SMT50 soil moisture and temperature sensor #11545
Replies: 3 comments 4 replies
-
Looks like straight line fitting. You can get Tasmota to do that by configuring the analog pin for range, and using AdcParam 6 for range. You "just" need two points, where you have the analog value and the desired result for each. With that, the range will be calculated for other values fitting the same line. No need for modifying the base Tasmota code for such a simple calculation. |
Beta Was this translation helpful? Give feedback.
-
Hi, For soil moisture I am using this configuration with an EPS32 TTGO board which means Unfortunately the converted values are shown only as integer values but I would like to have 1 decimal place. For temperature I am using this configuration with the same EPS32 TTGO board which means Unfortunately the converted values are shown only as integer values but I would like to have 1 decimal place also. I did not check the sensor in the freezer so far to see whats happening with temperature above 0 degrees, I discovered that the ADC of the ESP32 seems to be pretty bad (or the board?) 0.5V input: ADC value 437 1V input: ADC value 1052 2V input: ADC value 2267 3V input: ADV value 3752 at 3.15 V input the maximum ADC value of 4095 is already achieved. at 0.12V there is still an ADC value of 0 For soil moisture measurement this may be still acceptable, but for temperature measurement not. |
Beta Was this translation helpful? Give feedback.
-
Try latest development version retruning a float allowing decimal resolution control with command |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have already sucessfully used the SMT50 soil moisture and temperature sensor with Tasmota and analog input.
The SMT50 delivers 0-3V analog voltage signal for soil moisture and temperature.
The conversion formulas from voltage to soil moisture and voltage to temperature are described in the datasheet. It would be very convenient if these formulas would be already configured within Tasmota, e.g. as additonal option in AdcParam. I wonder if someone could implement that or provide a hint how to implement that myself.
Thanks very much
Maria
ps I would like to start a project on garden irrigation
Beta Was this translation helpful? Give feedback.
All reactions