Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHT30/DS18B20 errors and warnings in the logs
#1
I have connected the SHT30 I2C sensor to the port and everything works for a few minutes like normal, and then I start getting errors and some warnings in the logs. I am using ESPHome. At the same time, one DS18B20 sensor also sends warnings, although it seems to work, but from time to time the sensor may become unavailable.

I also wanted to use the TCA9548A I2C Multiplexer to connect 3 SHT30/SHT40 sensors, but I also got errors. Nevertheless, all of these SHT30/SHT40 sensors work fine on the individual ESP32 boards.

CRC8 Checksum invalid at pos 0!
Component sht3xd.sensor set Warning flag: unspecified
Component dallas_temp.sensor set Warning flag: scratch pad checksum invalid

What could it be?

   
Reply
#2
take a photo how you wire sensor with board.
Reply
#3
I made a cable with an I2C connector to connect to the board. At the other end, I connected SDA/SCL to the SHT30 sensor, and 3V3/GND from the green terminal block where the DS18B20 sensor is connected.

   
Reply
#4
1. how long extend cable for sensor?
2. i2c bus extend by your BLACK parts (YELLOW REGION) don't have a good contact, not suggest do that.
Reply
#5
1. The cable length is about 5-6 meters. But I also have another SHT30 sensor that has a cable length of about 12-13 m (!), it is connected to the ESP32-C3-SuperMini and everything works without any errors. Although I agree that the cable length is too long for I2C, but on the other hand, the sensor works correctly.

2. Do you mean the DUPONT connectors as in the screenshot? Ok, I will try to replace them and use the terminal block.


Attached Files Image(s)
   
Reply
#6
1. we not suggest use i2c extender cable so long. now you can use a short cable , such as <50cm cable for testing whether work well. if work well , then extend the cable.
2. Yes, replace it. usually this part will have not good contact.
Reply
#7
Can another device cause these errors? As you can see, there are various devices and a lot of wires in this box, it's a control box for my ventilation system. There are sensors, fans, SSRs, etc.

I use the A2 board to have access to control all the devices through the smart home. I read the fan RPM, control the speed with a 0-10V signal, communicate with other devices via RS485, control the heaters via SSR, and much more. Can some device interfere with the signal and cause me to get errors when connecting I2C sensors? Because when I connect the sensors to individual ESP32s, everything works without errors, but there is nothing connected to the ESP32s except the sensors, so there must be no errors.

But I don't know what the problem could be and how to look for it...
Reply
#8
I have now connected the TCA9458A and all three SHT sensors to another ESP32-C3-SuperMini board. I've been watching the log for over an hour now and haven't gotten any errors. I didn't change the wires, I just used a different ESP board. So I think the problem is not in the wires.

But the DS18B20 remained connected to the Kincony A2 board and it still sends warnings in the logs. And it seems to me that a few weeks ago there were very few warnings, maybe a few warnings once an hour, and now there are much more, every minute or two.

The DS18B20 has a built-in 5-meter cable that is free of any breaks, such as the one shown in the picture.

Could there be a problem with the A2 board or are there any other devices connected to A2 that interfere with the normal operation of the SHT/DS18B20 sensors?


Attached Files Image(s)
       
Reply
#9
i have said: test with short cable with DS18B20, if can't work, change a new DS18B20, maybe it's broken. Different models of sensors have varying requirements for wire length.
Reply
#10
You also said that there could be a problem with the wires for the SHT sensors, but when I connect them with the same wires to other ESPs, they work without errors. So...

Unfortunately, I can't take this DS18B20 sensor and test it with a short wire, because the sensor has a 5 m wire built in and is currently mounted to the ventilation system and doing its job, although it sends warnings in the logs from time to time. The only thing I can try is to buy another DS18B20 sensor with a 1m wire and see if it works correctly.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)