MLX90393 Triple-axis Magnetometer¶
The mlx90393
sensor platform allows you to use your MLX90393
(datasheet,
Adafruit) three axis magnetometer with ESPHome. The I²C is required to be set up in
your configuration for this sensor to work.
# Example configuration entry
sensor:
- platform: mlx90393
id: mlx
x_axis:
name: "x"
y_axis:
name: "y"
z_axis:
name: "z"
Configuration variables:¶
x_axis (Optional): The information for the x-axis.
resolution (Optional, int): Set resolution. Defaults to
19BIT
. Must be one of:16BIT
17BIT
18BIT
19BIT
All other options from Sensor.
y_axis (Optional): The information for the y-axis.
resolution (Optional, int): Set resolution. Defaults to
19BIT
. Must be one of:16BIT
17BIT
18BIT
19BIT
All other options from Sensor.
z_axis (Optional): The information for the z-axis.
resolution (Optional, int): Set resolution. Defaults to
16BIT
. Must be one of:16BIT
17BIT
18BIT
19BIT
All other options from Sensor.
temperature (Optional): Built-in temperature sensor.
oversampling (Optional, int): On-chip oversampling for the temperature sensor. Defaults to
0
. Must be between0
and3
.All other options from Sensor.
drdy_pin (Optional, Pin Schema): Data-ready pin. Often labelled
INT
. Using this pin might lead to slightly quicker read times.gain (Optional, int): Specify the gain. Defaults to
2_5X
. Must be one of1X
1_33X
1_67X
2X
2_5X
3X
4X
5X
oversampling (Optional, int): On-chip oversampling. Defaults to
2
. Must be between0
and3
.filter (Optional, int): On-chip digital filter. Defaults to
6
. Must be between0
and7
.update_interval (Optional, Time): The interval to check the sensor. Defaults to
60s
.address (Optional, int): Manually specify the I²C address of the sensor. Defaults to
0x0C
.i2c_id (Optional, ID): Manually specify the ID of the I²C Component if you want to use multiple I²C buses.