My Home-IoT
Find a file
functionpointer 6f16365b2f [mlx90393] Fix inverted gain and resolution, change default values
The old gain options were copied from the arduino-MLX90393 library. However, the library actually does the opposite thing from the sensor hardware. Low hardware gain settings are multiplied with large numbers, while high gains are multiplied with small numbers. This is done in order to get consistent readings in µT independent of gain setting.

This is confusing from the user's perspective. The user configures the sensor, not the library.
Therefore, this PR inverts (actually 5/x) all gain settings. This reflects the analog gain used inside the sensor.

Furthermore, the resolution options are named more appropriately. The resolution is always 16 bit, we just choose which 16 bits we get.

Additionally, the default values are changed. The old defaults offered high sensitivity, but caused integer overflows in strong magnetic fields. This easily happened when a neodymium magnet was held within a few cm of the sensor.
The new default configuration prevents all integer overflows and can deal with strong fields easily.
Higher sensitivity must now be explicitly configured by the user. The new documentation informs about integer overflows, mitigating the risk of false readings that existed previously.

Finally, this commit exposes the already existing `hallconf` and `temperature_compensation` options.
2024-10-19 18:21:09 +02:00
.devcontainer Enable devcontainer linters (#7019) 2024-07-01 11:06:59 +12:00
.github [CI] failures when installing using apt-get. (#7593) 2024-10-12 18:51:51 -05:00
.vscode proto generation updates (#4653) 2023-06-12 17:00:34 +12:00
docker chore: bump platformio to 6.1.16 to support py3.13 build (#7590) 2024-10-16 17:26:48 +13:00
esphome [mlx90393] Fix inverted gain and resolution, change default values 2024-10-19 18:21:09 +02:00
script Update test_build_components (#7597) 2024-10-14 14:31:37 +13:00
tests [mlx90393] Fix inverted gain and resolution, change default values 2024-10-19 18:21:09 +02:00
.clang-format Configure clang-format for consistent pointer alignment (#1890) 2021-06-10 12:55:20 +02:00
.clang-tidy Bump clang-tidy from 11 to 14 (#5160) 2023-07-31 07:44:56 +12:00
.coveragerc Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
.dockerignore More VSCode devcontainer improvements (#1934) 2021-06-22 16:37:05 +02:00
.editorconfig YAML linting (#3779) 2022-09-06 15:48:01 +12:00
.flake8 [core] Migrate to pyproject.toml (#6737) 2024-05-16 13:19:37 +12:00
.gitattributes Add transparency support to all image types (#4600) 2023-05-22 08:03:21 +12:00
.gitignore git ignore managed_components (#7180) 2024-08-02 23:00:18 +00:00
.pre-commit-config.yaml Added ruff to pre-commit hooks (#7124) 2024-07-23 16:12:23 +12:00
.yamllint Disable truthy yamllint rule (#6442) 2024-03-28 10:20:51 +13:00
CODE_OF_CONDUCT.md Update email addresses (#1733) 2021-05-03 11:51:10 +12:00
CODEOWNERS [axs15231] Touchscreen driver (#7592) 2024-10-17 13:44:20 +13:00
CONTRIBUTING.md Remove lingering note (#5916) 2023-12-13 10:46:11 +09:00
LICENSE 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
MANIFEST.in Update Manifest to rmeove unused dashboard files and include .c ethernet drivers (#4459) 2023-02-19 19:12:29 +00:00
platformio.ini Bump arduino-mlx90393 to 1.0.2 (#7618) 2024-10-17 13:17:20 +13:00
pyproject.toml [code-quality] Add some ruff configuration (#7103) 2024-07-18 18:26:21 -05:00
README.md Add OHF logo to README (#7509) 2024-09-30 18:49:13 +02:00
requirements.txt chore: bump platformio to 6.1.16 to support py3.13 build (#7590) 2024-10-16 17:26:48 +13:00
requirements_dev.txt Use clang-format version from requirements_dev file (#6606) 2024-04-23 11:01:20 +12:00
requirements_optional.txt Update pillow to 10.4.0 (#7566) 2024-10-10 13:44:07 +11:00
requirements_test.txt Bump pylint from 3.1.0 to 3.2.7 (#7438) 2024-09-16 17:21:42 +12:00
sdkconfig.defaults Set ESP32 watchdog to loop task (#2846) 2021-12-02 09:05:42 +13:00

ESPHome Discord Chat GitHub release

ESPHome Logo

Documentation: https://esphome.io/

For issues, please go to the issue tracker.

For feature requests, please see feature requests.

ESPHome - A project from the Open Home Foundation