Using DS18B20 temperature sensor

TerryRy

Member
I'm using a DS18B20 sensor to measure battery temperature in a charger. The sensor is returning the value 000. Are there any tricks or traps with ReadTemp in Logicator? I expected that it would simply return the value of 020 for 20 deg C as an example. I have replaced the sensor without effect.
 

eclectic

Moderator
I can't help with the Logicator, but
please check the connections and resistor first.

Latest Manual 2, p. 184 Readtemp.

Then try the BASIC program on that page.

e

And Welcome to the Forum. :)
 

Technical

Technical Support
Staff member
No tricks in Logicator.
Make sure you are not using a project board that has a pull down resistor on it, DS18B20 needs a 4k7 pull up only.
 

TerryRy

Member
Thanks a lot for your suggestions, very helpful. Problem fixed. I didn't realise that the 4k7 pull-up resistor was required.

Thanks again
 
Top