Problem: DS18B20 no longer working, interfering with serial?
Posted: 29 Oct 2016 10:57
Hi,
I have a wierd problem with my DS18B20 sensor(s) not working any more.
I have build a sketch with multiple sensors for testing, a DHT11, an analog luminance sensor, a BMP180 and an OLED connected via I2C, an analogue PIR and a DS18B20.
Everything was working fine until I discovered that I have resolution problems with the BMP180 sensor. To debug this I changed my breadboard and the sketch very often, now the problem with the BMP180 is solved, but then I recognized that my DS18B20 was no longer working, reporting -327 C which ist the default temperature in case of a failed communication.
While debugging the sketch I also used my logic analyzer and could see that there are still a reset and a "presence confirmation" on the bus, but not more data is transmitted. So I assumend that the sensor was somehow killed during my testing and ordered a new on. But the same applies to the new sensor. In the meantime I also checked with my 2nd Z-Uno and the example sketch from the website, but it is still not working...
I see some strange things here:
- Communication like reading the serial number from the sensor with scanalonesensor() is working only once after a power-up reset, using the reset-button does not work. Reading the temperature results in reading all temperature bits as "high"
- after that, all communication is broken and only the reset/presence show up on the bus.
I tried this with 2 different sensor (the old one and a new one), I tried it on 2 Z-Unos, I tried different pins on the 2nd Z-Uno, the result is always the same... During the debugging for the BMP180 i accidently overwrite a library for the Z-Uno and could not re-install it, so I de-installed the arduino and performed a clean install of 2.06 again.
The old installation was a 0.67, using the pre-release 2.06 and then upgraded to the official 2.06 (on a Win10 installation).
I use the sensor with 3.3V powered from pin 4 and have a 4k7 as a pullup on the data signal.
I have also applied the longer delay time in the ZUNO_OneWire lib but that does not change anything.
The sensor are the water-proof version with ~ 1m cable attached.
I can only assume that the timing might be an issue here, but I can't understand why my old sketch is not running any more, and also the original example from the website does not work.
One additional thing is that the Z-Uno is not detected properly when I plug it to my computer. To have the serial USB-communication I have to push the reset-button, but I can't really remember if that was also the case when the sketch/sensor worked...
Any hints what I can check / change further to get it running again?
Best regards,
Andreas.
I have a wierd problem with my DS18B20 sensor(s) not working any more.
I have build a sketch with multiple sensors for testing, a DHT11, an analog luminance sensor, a BMP180 and an OLED connected via I2C, an analogue PIR and a DS18B20.
Everything was working fine until I discovered that I have resolution problems with the BMP180 sensor. To debug this I changed my breadboard and the sketch very often, now the problem with the BMP180 is solved, but then I recognized that my DS18B20 was no longer working, reporting -327 C which ist the default temperature in case of a failed communication.
While debugging the sketch I also used my logic analyzer and could see that there are still a reset and a "presence confirmation" on the bus, but not more data is transmitted. So I assumend that the sensor was somehow killed during my testing and ordered a new on. But the same applies to the new sensor. In the meantime I also checked with my 2nd Z-Uno and the example sketch from the website, but it is still not working...
I see some strange things here:
- Communication like reading the serial number from the sensor with scanalonesensor() is working only once after a power-up reset, using the reset-button does not work. Reading the temperature results in reading all temperature bits as "high"
- after that, all communication is broken and only the reset/presence show up on the bus.
I tried this with 2 different sensor (the old one and a new one), I tried it on 2 Z-Unos, I tried different pins on the 2nd Z-Uno, the result is always the same... During the debugging for the BMP180 i accidently overwrite a library for the Z-Uno and could not re-install it, so I de-installed the arduino and performed a clean install of 2.06 again.
The old installation was a 0.67, using the pre-release 2.06 and then upgraded to the official 2.06 (on a Win10 installation).
I use the sensor with 3.3V powered from pin 4 and have a 4k7 as a pullup on the data signal.
I have also applied the longer delay time in the ZUNO_OneWire lib but that does not change anything.
The sensor are the water-proof version with ~ 1m cable attached.
I can only assume that the timing might be an issue here, but I can't understand why my old sketch is not running any more, and also the original example from the website does not work.
One additional thing is that the Z-Uno is not detected properly when I plug it to my computer. To have the serial USB-communication I have to push the reset-button, but I can't really remember if that was also the case when the sketch/sensor worked...
Any hints what I can check / change further to get it running again?
Best regards,
Andreas.