Replies: 4 comments
-
If the calculated temperature is not what you'd want, it is up to you to use AdcParam to get it to be better. You may be right about the voltage divider, but that's not something you should expect Tasmota to fix for you. |
Beta Was this translation helpful? Give feedback.
-
I already set the values using AdcParam correctly, the value shown is still wrong. Do you mean i have to manually factor in the voltage dividers and tweak the AdcParam accordingly? |
Beta Was this translation helpful? Give feedback.
-
The Tasmota NTC is meant for a NTC connected exactly like in the schematic shown in the code of the analog driver (sorry, it's in the ino code as comment, not in the docs, PR welcomed) which how it is connected on the Shelly 1 Any other connection circuit may need adaptation. |
Beta Was this translation helpful? Give feedback.
-
There is a problem in adc term code with wemos D1.
The code for ESP8266 asume the adc input range of 1V and 3.3v for ESP32.
That do not takes into account the wemos divider.
I reported some months ago and patched my own code.
In line 529 remove the ANALOG_V33
Rt = (double)Adc[idx].param1 * (ANALOG_RANGE * ANALOG_V33 - (double)adc) / (
double)adc;
El El dom, 6 de ago. de 2023 a la(s) 10:51, Barbudor <
***@***.***> escribió:
… The Tasmota NTC is meant for a NTC connected exactly like in the schematic
shown in the code of the analog driver (sorry, it's in the ino code as
comment, not in the docs, PR welcomed) which how it is connected on the
Shelly 1
Any other connection circuit may need adaptation.
—
Reply to this email directly, view it on GitHub
<#19271 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4K644KJMH35D44DNVDXT6OPFANCNFSM6AAAAAA3F5OJT4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
When connecting an NTC thermistor to A0 with an external voltage divider on a WeMos D1 mini and selecting ADC temp for that pin in the module configuration, the calculated temperature is wrong. I suspect this is because this board already has an internal voltage divider.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
3.3v ---- NTC thermistor ---- A0 ---- resistor ---- GND
The resistor is 10kO and the thermistor is 10kO at 25°C and b=3435.
In module configuration set the module to generic and afterwards A0 to ADC temp.
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
The temperature to be displayed correctly.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions