-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for LMT01 temperature sensor #8713
Conversation
Hi, The tests failed due to it is missing the: #define D_SENSOR_LMT01_PULSE "LMT01 Pulse" in language files. Please, add it to them. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Missing key in language files. Please add it to them. Thanks.
Thanks for accepting so swiftly, great! |
Thank you for sharing it! 👍 |
Could you add some documentation to the documentation site. Especially the supported hardware connection. Thank you. |
@justifiably Docs are at https://tasmota.github.io/docs/ and if you click on the pencil on the top right of the page, you can edit any page and post a PR. Thanks. |
Add support for single wire LMT01 temperature Sensor by justifiably (#8713)
Happy to add some docs. |
@ascillato the link you gave for the documentation fire a 404 :-) |
Fixed. Thanks!!! |
Description:
Proposed support for TI's LMT01 two-wire temperature sensor IC. This IC boasts good accuracy and a wider range compared with other ICs. It needs a single GPIO to interface. I have tested with digital GPIO on ESP8266 using a transistor driver as shown in the datasheet. The chip might also work with only a resistor and the analogue input with a threshold but I haven't tried that. Also, the datasheet suggests the use of a look-up table to improve the accuracy at the edges of the range, this might be worth adding but would cost a few more bytes.
The code is very simple, I'm happy to put in public domain or remove my moniker from the copyright.
I've tried to mimic the other drivers, please review. It compiles against ESP32 but I haven't tested it on one.
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass