Demo One: DS1621 thermometer with LCD readout --- Files download
Demo One: DS1621 thermometer with LCD readoutAIM:
The temperature is recorded by DS1621 in which the data is passed through the 2-wire interface (SDA and SCL) to STC89C54RD+. The readout is shown by the 16 x 2 LCD display afterwards. See Figure 1 below.
FEATURES:
[*]Using 8-pin DIP package DS1621, good for DIY project.
[*]Small in size BASCOM 8051 BASIC program (less than 40 instructions).
[*]Easy to manipulate the I2C communication.
[*]Fast to initiate the LCD.
Figure 1. The room temperature as shown on the 16 x 2 LCD is 23 degree C.
CIRCUIT:
The LCD and STC89C54RD+ are connected as standard configuration. The DS1621’s address lines A0 to A2 is connected to the ground in this circuit. Its data SDA and clock SCL are connected to MCU I/O pins, say P0.0 and P0.1.
Figure 2. The DS1621 thermometer schematic.
PROGRAM:
Figure 3. The 8051 BASIC program for the DS1621 thermometer. There are fewer than 40 instructions.
DOWNLOAD:
[*]The schematic in PDF format:
[*]DS1621 thermometer program :
頁:
[1]