arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.19k stars 4.81k forks source link

max6675 - constantly showing 0 degrees with k-type sensor #16409

Closed 001oc closed 2 years ago

001oc commented 2 years ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

Max6675 connected to k-type temperature sensor is showing 0 degrees constantly on main menu and log-files. Same sensor and chip is working with arduino ide and corresponding example without problems.

When compiling for

tasmota32 (tried tasmota32-sensors too, but is not working at all because of missing definition)

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [X] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
- [X] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

13:01:29.793 RSL: sensors = {"sn":{"Time":"2022-09-01T13:01:29","MAX6675":{"Temperature":0.0,"ReferenceTemperature":null,"Error":0},"ESP32":{"Temperature":53.3},"Shutter1":{"Position":0,"Direction":0,"Target":0,"Tilt":0},"TempUnit":"C"},"ver":1}

TO REPRODUCE

Steps to reproduce the behavior:

source code modifications:

ifdef APP_TIMEZONE

undef APP_TIMEZONE

endif

define APP_TIMEZONE 99 // [Timezone] +1 hour (Amsterdam) (-13 .. 14 = hours from UTC, 99 = use TIME_DST/TIME_STD)

ifdef MY_LANGUAGE

undef MY_LANGUAGE

endif

define MY_LANGUAGE de_DE // German in Germany

ifdef USE_EXPRESSION

undef USE_EXPRESSION

endif

define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)

ifdef SUPPORT_IF_STATEMENT

undef SUPPORT_IF_STATEMENT

endif

define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem)

ifdef USE_MAX31855

undef USE_MAX31855

endif

define USE_MAX31855

after that just compile current version within vscode and transfer it to esp32 wroom. Some config on esp32 as setting "setoption94 1" in console and some settings in template has to be done ( see screenshots). After that the max6675 is displayed at main page but only with 0 degrees.

I had even tried to compile the tasmota32_sensors but that seems to be outdated as the compiler says "Error: Unknown environment names 'tasmota32-sensors'"

The sensor is running smootly with example projects in arduino ide - as of that I think the sensor is ok.

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

Showing actual temperatur of k-type sensor in the main menu.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

main menu console template

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.

Jason2866 commented 2 years ago

MAX6675 is not the same as the Tasmota supported MAX31855.

Jason2866 commented 2 years ago

Sorry missed SetOption94 1 -> MAX6675 @arendst Do you have that Sensor?

arendst commented 2 years ago

Nope.

001oc commented 2 years ago

Thanks to reopen.

I have, of course, such a chip and sensor ... if you need one I am gladly willing to send you one or, if that is easier and faster for you, I am willing to send you the money by paypal to buy one by yourself if you want. I have no idea how to exchange nessesarry data safely at giithub to manage that, but I think there will be a way.

I bought my from here:

https://www.amazon.de/MAX6675-Temperatursensor-Thermoelement-Schraube-Arduino/dp/B07Y9YJ3HG/ref=sr_1_18?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=9Y2L1NR7VHGE&keywords=max6675&qid=1664737962&qu=eyJxc2MiOiI0LjYyIiwicXNhIjoiNC4xMyIsInFzcCI6IjMuOTEifQ%3D%3D&sprefix=max+6675%2Caps%2C131&sr=8-18

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue was automatically closed because of being stale. Feel free to open a new one if you still experience this problem.