Dallas 18B20
The DS18B20 digital thermometer provides 9-bit to 12-bit Celsius temperature measurements and has an alarm function with nonvolatile user-programmable upper and lower trigger points. The DS18B20 communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. It has an operating temperature range of -55°C to +125° and is accurate to ±0.5°C over the range of -10°C to +85°C.
Here the thermometer (Dallas 18B20) senses the environment temperature and then sends that value as a digital input with 16bit binary code to the microcontroller. It could measure temperatures from -55°C to +125°C (-67°F to +257°F). Dallas 18B20 uses 1 wire bus system to communicate with the microcontroller. The 1-Wire bus system uses a single bus master to control one or more slave devices. The DS18B20 is always a slave. When there is only one slave on the bus, the system is referred to as a ‘single-drop’ system, the system is ‘multi-drop’ if there are multiple slaves on the bus.
Circuit Diagram
Download MikroC code and PROTEUS Design: Click Here