4 DIGITS THERMOMETER USING DS18B20 DIGITAL SENSOR
Updated on 17/01/2016 (a and b segments were swapped on drawing)
Counter based on PIC16F628A . Included C code and circuit diagram. Displays 55 to 125 centigrade. The temperature is read every 15 seconds, can be changed in the code. The math is using integers to calculate the degrees and the tenths of degrees are calculated separately.
The 7 segment LED is common cathode, 4 separate digits can be used with segments a to g linked.
You are free to use the circuit diagram and the software with no limitations.
Circuit Description
See also Technical Tips
All transistors are BC337 or equivalent.
Total 5V supply current is 90mA.
The 4 digits display is common cathode, the 7 resistors of 220 ohms enable current of 15 mA for each segment which is on for 25% of the time. The seven segments, a to g, of one digit are linked to the corresponding seven segments in the other digits.
Segment e is connected differently because RA4 is an open drain output.
The 4 digits are multiplexed by pins 69 that drive the common cathodes cc1cc4.
DP is the decimal point.
DS18B20 can be any type.
