Hello,
I'm building a connected thermostat that communicates via MQTT with a home assistant.
I'm using an arduino mkr 1010 Wifi with an MKR IoT carrier rev 2.
I noticed that the BME688 sensor was disturbed when the relays were activated.
Does anyone know how to solve this?
This is a screenshot of the home assistant, at the top you can see the relay status (grey off, yellow on), the temperature curve and the humidity curve.
Hi there, and welcome!
First of all you found the right category to post your question in
Now for us to help you, we need the schematic or diagram over your setup there. You can read more about this and other hints in How to get the best out of this forum
Necessary info is how everything power related, the relay and the BME, is wired. Thank you.
Thank you for your reply!
I'm using an MKR 1010 Wifi with the MKR IoT Carrier Rev2 which has a bme688 and relays built in. I just plugged the shield on the arduino and use the Arduino_MKRIoTCarrier.h library to get the sensor values. It works very well, and I've got some nice temperature curves. But I've noticed that when one of the relays is activated, the bme688 seems to get confused and no longer sends consistent values. I have the impression that the relay is interfering with the bme688.
The description is a extremely poor substitute for what I asked for. Sorry.
More than "confused sensor", it looks like turning on the relay heats up the sensor. Temperature raises and relative humidity drops...
Can you post a photo of your setup.
Here is the MKR IoT carrier rev 2 shield in a 3D printed box :
And here is the arduino MKR Wifi 1010 connected to the shield.
I just add an RTC DS3231 on the I2c port of the shield.
Relay status LED's are next to the sensor. Inside enclosure relays and LEDs could heat up the sensor little bit. The temp up/down oscillation on the left side of your image is really only one degree...