I’m working a project that I got inspired to do from this forum and got a MLX90614 IR temperature sensor. From what I’ve read it seems that D1 and D2 should be the IC2 pins and I’m running GND to the module GND and 3.3 to the module VIN.
I get this in my ESP home logs:
[09:59:31][C][mlx90614:079]: MLX90614:
[09:59:32][C][mlx90614:080]: Address: 0x5A
[09:59:32][E][mlx90614:082]: Communication with MLX90614 failed!
[09:59:32][C][mlx90614:084]: Update Interval: 60.0s
[09:59:32][C][mlx90614:085]: Ambient 'Ambient'
[09:59:32][C][mlx90614:085]: Device Class: 'temperature'
[09:59:32][C][mlx90614:085]: State Class: 'measurement'
[09:59:32][C][mlx90614:085]: Unit of Measurement: '°C'
[09:59:32][C][mlx90614:085]: Accuracy Decimals: 1
[09:59:32][C][mlx90614:086]: Object 'Object'
[09:59:32][C][mlx90614:086]: Device Class: 'temperature'
[09:59:32][C][mlx90614:086]: State Class: 'measurement'
[09:59:32][C][mlx90614:086]: Unit of Measurement: '°C'
[09:59:32][C][mlx90614:086]: Accuracy Decimals: 1
Saying the connection failed. Is there anything more I need to do for this configuration:
esp8266:
board: d1_mini
i2c:
sensor:
- platform: mlx90614
ambient:
name: Ambient
object:
name: Object
The rest of the ESP config is just stock stuff, this represents the code relevant to the module. I was a bit confused at first because no pin definitions were needed but further reading said that SCL should go to D1 and SDA to D2 and that’s how I have it.
I’m sure it’s probably something silly as I don’t spend a lot of time on ESP projects but keep poking at a few here and there trying to beef up my skills.
If relevant my board is an ESP12F.