I use a couple of DS18B20 temp sensors for my pool solar heating controller.
An 18X compares the roof sensor with pool sensor and turns the pump on&off when needed.
A couple of things I'd to ask the forum.
1. The cable length to the roof sensor is about 10m so you wouldn't expect much voltage drop. At first the roof sensor didn't work at all, as if it wasn't connected. After some experimentation, I found it would work ok only after I dropped the value of the DS18B20 pullup resistor to 2k2. Does anyone know why this might be?
2. Has anyone had any experience with DS18B20s occasionally delivering crazy readings, way above or below actual temperature. Normally I probably wouldn't have noticed because the next reading would overwrite the bad reading, but I store and display the day's min & max temperatures so the crook readings were quite obvious.
I wonder if this is caused by noise?, spikes? something like that. The sensors are cabling in screened data cable.
I have worked around the problem by taking two readings in a row and rejecting both readings if they differ. This works fine, no more odd readings displayed, but I just curious as to why.
An 18X compares the roof sensor with pool sensor and turns the pump on&off when needed.
A couple of things I'd to ask the forum.
1. The cable length to the roof sensor is about 10m so you wouldn't expect much voltage drop. At first the roof sensor didn't work at all, as if it wasn't connected. After some experimentation, I found it would work ok only after I dropped the value of the DS18B20 pullup resistor to 2k2. Does anyone know why this might be?
2. Has anyone had any experience with DS18B20s occasionally delivering crazy readings, way above or below actual temperature. Normally I probably wouldn't have noticed because the next reading would overwrite the bad reading, but I store and display the day's min & max temperatures so the crook readings were quite obvious.
I wonder if this is caused by noise?, spikes? something like that. The sensors are cabling in screened data cable.
I have worked around the problem by taking two readings in a row and rejecting both readings if they differ. This works fine, no more odd readings displayed, but I just curious as to why.
Last edited by a moderator: