I made a circuit involving 5x VL53L0x distance meter and 2x ds18b20 temperature sensors, open door sensors, and audible warning
The laser sensors work well, but the temperature sensors do not work only the message -127 appears, but when I use only the temperature sensors it works well
Alexpss:
I already tested the power supply, and it's ok,
All I can do is take that at face value. That means the connection is bad or the code is looking for the wrong address and cannot find it. Bad connection also means wired the wrong way round. If the sensors are seriously hot, that is what has happened.
I've already reviewed the entire circuit, tested all the connections, nothing gets hot. Everything connected as it should. I don't think it's a problem of connections, I think something to do with the code, something that I'm not seeing
my question is, is there something in the code that is badly written, that could hinder the functioning of temperature sensors.
I have already reviewed the code several times and found nothing evident. If you have someone with better knowledge of this language to evaluate my code I would appreciate it
You code is clouded by all sorts of stuff I know nothing about, but the temperture stuff looks kosher, indeed similar to the Hacktronics stuff I use, and you have already said that the temps work OK by themselves. Going back, I think JCA34F is right and, when the temp sensors work by themselves they do so because the SPI bus is also out of the game, i.e. no display.