0 Introduction
In industrial production, current, voltage, temperature, pressure, flow, flow rate and switch quantity are the main commonly used controlled parameters. Among them, temperature control is becoming more and more important. In many fields of industrial production, people need to detect and control the temperature in various heating furnaces, heat treatment furnaces, reaction furnaces and boilers. Using a single-chip microcomputer to control temperature not only has the advantages of convenient control, simplicity and flexibility, but also can greatly improve the technical indicators of the controlled temperature, thereby greatly improving the quality and quantity of the product. Therefore, the problem of temperature control by a single-chip microcomputer is a control problem that is often encountered in industrial production.
Most of the temperature detection systems currently used use a transmission system composed of analog temperature sensors, multi-channel analog switches, A/D converters and single-chip microcomputers. This temperature acquisition system requires a large number of temperature measurement cables to send the signals of field sensors to the acquisition card. The installation and disassembly are complicated and the cost is high. At the same time, the analog signal transmitted on the line is susceptible to interference and loss, and the measurement error is relatively large, which is not conducive to the controller making timely decisions based on temperature changes. In view of this situation, this paper proposes a temperature acquisition system using digital single bus technology, and uses Proteus and KeilμVision 3 software to perform comprehensive virtual simulation of the designed circuit, realizing real-time temperature measurement and display.
1. Proposal demonstration
1.1 Introduction to DS18B20
DS18B20 is a digital single bus device newly launched by DALLAS Semiconductor Company in the United States. It is a new generation of improved intelligent temperature sensor adapted to microprocessors. Compared with traditional thermistors, it can directly read the measured temperature, and can realize 9-12-bit digital value reading mode through simple programming according to actual requirements. 9-bit and 12-bit digital quantities can be completed in 93.75 ms and 750 ms respectively, and the information read from or written to DS18B20 only requires one line (single-line interface) to read and write. The temperature conversion power comes from the data bus, and the bus itself can also supply power to the connected DS18B20 without additional power supply. Therefore, the use of DS18B20 can make the system structure simpler and more reliable. At the same time, its unique and economical "one-line bus" allows users to easily build a sensor network, introducing a new concept for the construction of measurement systems. DS18B20 "one-wire bus" digital temperature sensor supports "one-wire bus" interface, and the measurement temperature range is -55℃~125℃, and the accuracy is ±0.5℃ in the range of -10~+85℃. The field temperature is directly transmitted in the digital mode of "one-wire bus", and the serial output is in the form of 16-bit digital quantity with sign extension, which greatly improves the anti-interference ability of the system. Therefore, the digital single bus device DS18B20 is suitable for field temperature measurement in harsh environments, such as: environmental control, equipment or process control, temperature measurement consumer electronic products, etc. It has made great improvements in temperature measurement accuracy, conversion time, transmission distance, resolution, etc., bringing more convenient and more satisfactory results to users. It can be widely used in temperature measurement and control instruments, measurement and control systems and large equipment in industrial, civil, military and other fields.
1.2 Introduction to Proteus and KeilμVision 3
Proteus is an EDA tool software developed by Labeenter electronics in the UK. Proteus is not only a design and simulation platform for analog circuits, digital circuits, and analog/digital mixed circuits, but also the world's most advanced and complete design and simulation platform for various types of microcontroller systems. It truly realizes the complete electronic design and development process from schematic design, circuit analysis and simulation, microcontroller code-level debugging and simulation, system testing and functional verification to PCB formation on the computer. The Proteus product series also includes the revolutionary VSM technology, which can simulate microcontroller-based designs together with all peripheral electronic devices.
KeilμVision 2 is a development tool for Keil's 8051 series MCUs. It can be used to compile C source code, assemble source programs, link and relocate target files and library files, create HEX files, debug target programs, etc. It is an integrated file management and compilation environment. It integrates multiple functions such as file editing, compilation and connection, project management, windows, tool references, and software simulation debugging, and is a very powerful development tool.
1.3 Connection settings between Proteus and Keil
(1) Detect TCP/IP.
(2) Copy the vdm51.dll in the MODELS folder under the Proteus installation directory to the keilc/C51/bin directory.
(3) Modify tools.ini in the Keil installation directory and add TDRV4=BIN\VDM51.DLL.
(4) Draw the schematic in Proteus and select “Use Remote Debug Monitor” in the “Debug” menu.
(5) Open a project in Keil, right-click Target1, and select Op-tions for Target'Target 1'. In the dialog box that opens, select the "Debug" tab, choose to use Proteus VSM Emulator for simulation (as shown in Figure 1), and click "Ok" to complete the Debug settings.
In this way, Proteus and Keil are connected, and the simulation results can be seen in Pro-teus or Keil.
2 Circuit Simulation
The circuit system uses the "one-wire bus" digital sensor DS18B20 to collect temperature and uses the LM016L LCD display for data display. First, start Proteus and select the required components from the Proteus component library to draw the circuit diagram and set the parameter values of the corresponding components. The interface circuit schematic is shown in Figure 2.
After the circuit is drawn, open Keil μVision 2 and create a new project named cewen.uv2. Select Select Device for Target under the Project menu and select AT89C51. Then click Option for Target 'Target1' under the Project menu, select Debug, and use Proteus VSM Emulator to simulate. Then create a new source file cewen.c and write the source program (only the temperature reading function is given):
Finally, add the source program file to the current project for compilation. After the compilation is successful, click Start/Stop Debug Session under the Debug menu. Then switch to the Proteus interface and you will find that the circuit has started simulation and you can see the simulation results. Figure 3 and Figure 4 are the interface circuit and display results of the oscilloscope display of the temperature sensor respectively.
3 Conclusion
This paper designs a new temperature acquisition system, which can perform real-time inspection of multi-point temperature through expansion, and each test module can realize its own function. At the same time, the design of the single-chip microcomputer temperature measurement system is virtually simulated and tested by combining Proteus and Keil simulation, and relatively good simulation results and analysis results are obtained. The results show that the combination of Proteus and Keil simulation can greatly simplify the design process of hardware circuits, reduce the development cost of single-chip microcomputer systems, improve efficiency and development speed, and has good practical application and guiding significance.
2009/12/10 20:15:10
Previous article:Warehouse temperature and humidity control system based on AT89C2051 (08-100)
Next article:Design of low-cost ECG monitoring system based on C8051F320 microcontroller
Recommended ReadingLatest update time:2024-11-16 17:34
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Single-chip microcomputer technology and application - electronic circuit design, simulation and production (edited by Zhou Runjing)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- MSP CapTIvate MCU Development Kit Evaluation Model
- Please tell me, what is the difference between NB-IOT module and NB-IOT chip, what additional features and functions does the former have over the latter?
- 【Home treasure】 esp32s2 freertos communication between tasks Event Groups
- View Circuit-ADC and System (2)
- Hi3559A Flying Camera Solution
- I would like some advice on troubleshooting the mnemonic reading device in the analog circuits book?
- A brief explanation of FPGA static timing analysis
- [TI star products limited time sale] + Buy, buy, buy!
- [Xianji HPM6750 Review] CoreMark running test
- Huawei Electromagnetic Compatibility Structural Design Specification V2.0