Digital I2C Bus Temperature Sensor in Temperature Detection

Ds1624's basic features The ds1624 is a powerful digital temperature sensor from dallas. It is simpler than the ds1620 series and has a higher resolution than the ds1621. A single controller can be used to control up to 8 sensors. , Support i2c bus protocol, wide temperature range, stable readings, high resolution, no external circuits, and microcontroller interface is simple, can be widely used in temperature detection, temperature control, temperature alarm and other fields.

Temperature measurement range: -55°C~+125°C, resolution 0.03125°C

Temperature value is output with 13 digital outputs (two bytes transmission)

Read and write data with temperature conversion time less than 1 second. Implemented via 2-wire serial interface (sda, scl) Optional bus address Internally integrated 256b e2prom, can be used to save user-defined parameters. Pin Description ds1624 is 8-pin dip package Or soic package, its pin function is shown in the following table ds1624 working principle The ds1624 adopts the special on-chip temperature measurement technology to carry on the temperature measurement, its temperature measurement principle like chart 1.

The number of pulses of the low temperature coefficient oscillator is counted while the count gate is open. The period of the count pulse is determined by the high temperature coefficient oscillator, and the preset value of the counter and the temperature register is -55°C. If the counter reaches 0 before the end of the pulse, the temperature register is incremented and the counter is preset to the value of the non-linear accumulator and the count is resumed. If the pulse cycle is not completed before the counter reaches 0, the above process is repeated, otherwise Stop counting. The value in the final temperature register is the measured temperature value.

The ds1624 temperature value is expressed in units of 0.03125 °C. The internal temperature register of the 1624 is a 13-bit (2 bytes) register. This register can be serially read out via the iic bus, with the highest bit first. The contents of the thirteenth register are the temperature values ​​represented by the complement, the highest position sign bit, and the sign bit ?quot;1" indicates that the temperature value is negative, and "0" indicates that the temperature value is positive. The true value of the 13-bit data is. Multiplying by 0.03125 is the measured temperature value. For example:

The measured temperature is: +802*0.03125=25.0625°C

Ds1624 operating mode The ds1624 can operate in two modes, continuous conversion mode and one conversion mode, through the configuration register to control which operating mode is used.

Done is the conversion completion bit, when the temperature conversion is completed, it is 1, when it is being converted, it is 0, and 1shot is a mode bit. When this bit is 1, each time the start conversion command is received, a temperature conversion is performed. When it is 0, the continuous temperature is executed. For conversion, this bit is non-volatile.

Ds1624 embedded in a system, it is necessary to have mcu issued control commands, such as read and write status registers, read the temperature register, start the temperature conversion and other commands, mcu on the ds1624 control is achieved through the i2c bus interface, write and read Out full compliance with the i2c bus protocol.

The ds1624 command set contains the following five, which is more convenient and simple than the same series of ds1621.

(1) Start temperature conversion [eeh]

This command starts temperature conversion without reading data. In the next conversion mode, this command starts conversion. ds1624 remains idle after the conversion is completed. In continuous conversion mode, this command starts ds1624 for continuous temperature conversion.

(2) Temperature conversion end command [22h]

The command stops the temperature conversion and no more data is needed. In the continuous operation mode, this command stops the temperature conversion of the ds1624 and remains idle until the ds1624 gets a new temperature conversion start command.

(3) Reading temperature command [aah]

This command reads out the result of the most recent temperature conversion. The ds1624 then sends the temperature value represented by the two-byte complement. The highest is the sign bit, and the lowest three bits are not used.

(4) Access Configuration Register [ach]

If r/w=0, after this command is written in the configuration register, mcu sends a byte to determine the working mode of ds1624; if r/w=1, ds6124 sends out the current status to notify whether the mcu conversion is completed.

(5) Access memory [17h]

This command is used to access the 256b e2 memory integrated in the ds1624. The next byte of data is the address of the accessed memory, which enables e2 memory read/write operations. The read and write operations are the same as those of other i2c protocol e2 memories. The reader can refer to other information.

The flow chart of ds1624 start temperature conversion, access configuration register, read temperature value is shown in Fig. 2.

The typical application diagram of typical application ds1624, see Figure 3, which led display and temperature alarm circuit readers can design. The ds1624 does not have a dedicated temperature control function. The user can store temperature control information, such as upper temperature limit and lower temperature limit, in the e2 memory. When working, the ds1624 can be set to continuous operation mode. The mcu can continuously read the temperature value and send it to the display device for display. The temperature value can be compared with the temperature control parameter in the e2 memory to drive the alarm, heating or other actuators. You can also store pid parameters in e2 memory and implement closed-loop control through advanced algorithms.

Cautions When using the ds1624, several issues should be noted. 1. Write e2prom takes 10ms, so after each register write operation, it takes 10ms to wait for the next write operation. 2. Because sda ​​and scl are open-drain I/Os, pull-up resistors are required.

3, in the data transmission and write command words, must follow the i2c bus protocol, in the conversion from the write operation to read operation, should restart the data transmission, and then send the address and read and write bits.

4, in the composition of the temperature measurement system, a single chip can connect up to 8 pieces of ds1624, and can use the average method to improve the measurement accuracy. In this case, the addresses a2, a1, a0 should be adjusted differently.

CNC Milling Machining

CNC milling machining is a CNC machine tool trajectory by means of computer controlled machine, using high speed rotating cutting tool if you want to shape the material. With the size of products have become increasingly demanding, machining from the original two gradually changed to 3 axis machining, 4 axis machining, 5 axis machining center, precision can reach 0.001mm. us the maximum machine processing size: 500mm * 1000mm *600mm, 800kg machine under the maximum weight of workpiece, Machine tool spindle speed 20000RPM to ensure that the surface of the workpiece is smooth and clean.we often processed material of aluminum,steel, copper, stainless steel, titanium, POM, Teflon and so on. At the completion of high quality, high dimensional accuracy of CNC milling machining parts process, we will divided into rough machining and processing method fine to get the best effect, the margin size coarse and finish machining is 0.5 * 1mm. after processing some of the products after surface treatment such as plating polishing surface passivation.Sand (powder), anodic treatment (aluminum common CNC anodized black red blue anode, anode, anode). CNC milling machining is widely used in aviation, automotive, communications, medical equipment, electrical appliances, drone.


In addition to,we also provide high precision machining and precision machined parts,supply custom machining services and cnc machining services for small batch.

Cnc Milling Machining,Cnc Precision Milling Machining,Aluminum Profile Cnc Milling Machining,CNC Milling Service

Hong Kong RYH CO., LTD , https://www.szcncmachiningparts.com