89c51 ds1820 based digital thermometer

Posted on Feb 7, 2014

The hardware configuration when using multiple 1-Wire temperature sensors like the DS1820 is very simple, as illustrated in the block diagram below. A single-wire bus is used for communication between the microcontroller and the temperature sensor. It is also possible to power the devices direclty via this 1-Wire bus. An almost unlimited number of

89c51 ds1820 based digital thermometer
Click here to download the full size of the above Circuit.

1-WireTM devices can be connected to the bus because each device has a unique 64-bit ROM code identifier which is used to address each sensor Temperature measurement is one of the most common tasks performed by the microcontroller. A DS1820 sensor is used for measurement here. It is capable of measuring temperature in the range of -55 °C to 125 °C with 0. 5 °C accuracy. For the purpose of transferring data to the microcontroller, a special type of serial communication called 1-wire is used. Due to a simple and wide use of these sensors, commands used to run and control them are in the form of functions stored in the One_Wire library. There are three functions in total: Concretely, you don`t have to study documentation provided by the manufacturer in order to use this sensor. It is sufficient to copy some of these functions in the program. The OneWire library provides routines for communication via the Dallas OneWire protocol, e. g. with DS18x20 digital thermometer. OneWire is a Master/Slave protocol, and all communication cabling required is a single wire. OneWire enabled devices should have open collector drivers (with single pull-up resistor) on the shared data line. Each OneWire device has also a unique 64-bit registration number (8-bit device type, 48-bit serial number and 8-bit CRC), so multiple slaves can co-exist on the same bus.

Leave Comment

characters left:

Related Circuits

  • New Circuits



    Popular Circuits

    H bridge switch for small motors
    The method of temperature controlling system of producing one-chip computer calorstat is analyzed
    how to make simple frequency counter
    SPDIF audio DAC with CS8416 and TDA1543
    PIC12F629 based IR decoder
    HF Transreceiver using NE612
    OCL power amplifying circuit