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.

4 DIGITS THERMOMETER USING DS18B20 DIGITAL SENSOR
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.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 6-9 that drive the common cathodes cc1-cc4.
DP is the decimal point.
DS18B20 can be any type.

For more detail:    4 DIGITS THERMOMETER USING DS18B20 DIGITAL SENSOR

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter