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.
MLX90393 Triple-axis Magnetometer¶
# 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:16BIT17BIT18BIT19BIT
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:16BIT17BIT18BIT19BIT
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:16BIT17BIT18BIT19BIT
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 between0and3.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 of1X1_33X1_67X2X2_5X3X4X5X
oversampling (Optional, int): On-chip oversampling. Defaults to
2. Must be between0and3.filter (Optional, int): On-chip digital filter. Defaults to
6. Must be between0and7.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.