CN1790213A - Thermistor temperature measurement control method with voice prompt alarm function - Google Patents

Thermistor temperature measurement control method with voice prompt alarm function Download PDF

Info

Publication number
CN1790213A
CN1790213A CN 200510022633 CN200510022633A CN1790213A CN 1790213 A CN1790213 A CN 1790213A CN 200510022633 CN200510022633 CN 200510022633 CN 200510022633 A CN200510022633 A CN 200510022633A CN 1790213 A CN1790213 A CN 1790213A
Authority
CN
China
Prior art keywords
temperature
initialization
key assignments
input
subroutine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200510022633
Other languages
Chinese (zh)
Inventor
杨宏伟
昝玉顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Agricultural University
Original Assignee
Nanjing Agricultural University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Agricultural University filed Critical Nanjing Agricultural University
Priority to CN 200510022633 priority Critical patent/CN1790213A/en
Publication of CN1790213A publication Critical patent/CN1790213A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Temperature (AREA)

Abstract

The invention discloses a heat-sensitive resistance thermometric control computer program and method with voice prompting and alarming function based on 16-digit embedded type platform, which comprises the following steps: 1 initiating each part of system to obtain the input button value; disposing the value; detecting the temperature and displaying; controlling the temperature; returning to obtain the input value; 2 initiating the subprogram; 3 disposing the subprogram; 4 detecting the temperature; displaying the subprogram; 5 controlling the temperature of subprogram. The invention improves the working efficiency, which can be extended and updated further.

Description

A kind of have a voice prompt alarm function thermistor temperature measurement control method
Technical field
The present invention relates to a kind of thermometry, particularly a kind of have a voice prompt alarm function thermistor temperature measurement control method.
Background technology
The temperature characterisitic of measuring thermistor always is one of infrastest in the college physical experiment teaching, can allow the student recognize relation between temperature and the thermistor resistance by this experiment.
Before the present invention, because it is low to measure the integrated level of temperature device, great deal of experiment data needs manual operations, record, causes workload big, detects inaccurately, and error is big, influences experiment effect and production actual demand.Though some parts has also adopted integrated circuit, does not form system, can't comprehensively operate.On detection and display packing, mostly adopt 8 one chip microcomputers as the control core, carry out temperature detection, with Chinese character or digital displaying temperature data, display voltage does not vary with temperature and the family curve that changes on instrument panel, does not use prompting warning measures such as voice yet.On control method, many break-makes that directly adopt mechanical parts such as high-low level signal control relay, and then control heating, control method is single simple, can not well come more high efficiency control heating according to the temperature control unit characteristic.
Summary of the invention
Purpose of the present invention just is to overcome above-mentioned defective, design, a kind of related method that relates to computer program of process control that is used for measuring or detecting the thermistor temp characteristic of development.
Technical scheme of the present invention is:
A kind of have a voice prompt alarm function thermistor temperature measurement control method, it is characterized in that on embedded platform its step 1---master routine:
System's each several part initialization---is obtained the strong value of input and---the input key assignments that obtains is handled---temperature detection, demonstration---temperature control---are returned and obtained the input key assignments.
Step 2---initialization subroutine:
------the voice initialization---shows initialization and---plays startup music---display background literal---displaing coordinate axle---retrieval system initialization the initialization of IO mouth system initialization.
Step 3---key assignments is handled subroutine:
The input key assignments judges---key assignments comprise a position be set, be provided with that ten, numerical value subtract one, numerical value adds one, the cancellation input, confirm input, quiet/sound, and---the input key assignments is judged and is finished the back---show, report---returns the judgement of input key assignments.
Step 4---temperature detection, display subroutine:
Do AD changes initialization, and---counter, totalizer---start the AD conversion---and convert? not---continue conversion, that---the AD translation data that adds up---counter subtracts---counter is zero?---startup AD conversion is, and---------preservation, video data---do not return AD conversion initialization to calculate AD translation data mean value to close AD.
Step 5---temperature control subprogram:
Whether set of opening flag? not---return, be---reach design temperature? does not---heating---temperature variation surpass twice? not---return, be---does the voice broadcast Temperature numerical reach design temperature? be that------audio alert---return by voice broadcast Temperature numerical---displays temperature data in coordinate system---to stop heating.
Advantage of the present invention and effect are to realize fully robotization control and handle, displays temperature data and voice suggestion in time, so that handle and carry out next step operation, particularly voice suggestion, report to the police and to have avoided under the high temperature situation, security incident occurring; Not only displays temperature numerical value, and display voltage data, and on the LCD Panel of experimental apparatus panel real-time displays temperature voltage curve figure, the temperature characteristics of thermistor is come into plain view; Dependable performance, the measuring accuracy height is stopped personal error.In addition, adopt keyboard input control, measurement, control procedure are controlled, comprise the realization far distance controlled, and the ability that has further expanding and upgrade, to satisfy the needs in different application field.
Description of drawings
Fig. 1---main program flow chart of the present invention.
Fig. 2---initialization subroutine process flow diagram of the present invention.
Fig. 3---the present invention imports key assignments and handles subroutine figure.
Fig. 4---temperature control of the present invention and detection subroutine flow chart.
Fig. 5---temperature control subprogram process flow diagram of the present invention.
Embodiment
Computer software that the present invention relates to and program are based on 16 embedded platforms.
As shown in Figure 1, can correctly work, need carry out initialization system's each several part in order to make system's each several part; After the initialization, detect the computor-keyboard input, obtain the key assignments of user's input, carry out relevant treatment according to key assignments; Key assignments carries out temperature detection and demonstration after handling; At last, carrying out temperature control (temperature control) handles.
As shown in Figure 2, be initialization subroutine:
The first step is to systematic parameter initialization such as system clock, interrupt vectors; In second step, the IO mouth is carried out initialization; In the 3rd step, voice broadcast correlation module and resource are carried out initialization; In the 4th step, the correlation module and the resource of data presentation are carried out initialization; In the 5th step, play startup music; The 6th step, display background literal and data and curves coordinate axis.Finish initialization.
As shown in Figure 3, be that key assignments is handled subroutine:
System can detect the keyboard input after the various piece initialization is finished, and obtains the key assignments of user's input, carries out relevant treatment according to key assignments.System is seven buttons of K1~K7 altogether, and each keypress function is as follows:
K1: voice broadcast function is set opens or closes;
K2: confirm the temperature setting;
K3: the cancellation temperature is set;
K4: numerical value adds one;
K5: numerical value subtracts one;
K6: be provided with ten;
K7 a: position is set.
When pressing K1, system is switched between voice broadcast function is opened or closed; When pressing K2, system will confirm and the storing temperature setting value; When pressing K3, system will cancel desired temperature, and recover former setting value; When pressing K4, the numeral of corresponding positions adds one; When pressing K5, the numeral of corresponding positions subtracts one; When pressing K6, allow to be provided with ten of temperature data; When pressing K7, allow to be provided with a position of temperature data.
As shown in Figure 4, be temperature control and detection subroutine:
Press confirm enter key before, system is by the temperature sensor measurement Current Temperatures, obtains the voltage data of temperature sensor output angle by analog to digital converter, is converted into temperature data after as calculated, temperature data delivered to display device show.
As shown in Figure 5, be temperature control (temperature control) subroutine:
After pressing the affirmation enter key, system set temperature control opening flag position.The temperature control subroutine at first detects temperature control opening flag position, if this position is not set, then returns master routine.If set has then been judged according to Current Temperatures and design temperature, and then by photoelectrical coupler control heating arrangement.In this process, according to related setting detect in real time, voice broadcast and show current temperature value, and temperature-voltage response is presented in temperature-voltage coordinate system on the screen in real time.Audio alert after temperature arrives setting value begins constant temperature subsequently, up to setting new temperature value.
Use example:
After turning on the power switch, system is based on 16 embedded platforms, the master routine of performing step 1, initialization; The initialization subroutine of performing step 2 with auto-initiation, shows on screen and welcomes the interface, and play one section startup music, when playing startup music, system then will utilize the initialization subroutine of this time performing step 2, will finish each module initialization automatically; System then enters obtaining the strong value of input, the input key assignments that obtains being handled of step 1 master routine subsequently, and enter step 3 key assignments and handle subroutine this moment, will detect and demonstration Current Temperatures and voltage on screen; After the user is by keyboard input set temperature value, click acknowledgement key, system will report " OK "; Enter step 4 temperature detection, display subroutine then; Enter the temperature control subprogram of step 5 successively again, judge whether heating according to input temp, degree of heat etc. are controlled different heating intensities by the ON time of control photoelectrical coupler, can make heating process more accurate, and efficient is higher.If need heating, control module will be sent control signal control heater block, and in heating process displays temperature voltage response in real time, the temperature characteristics of thermistor is presented on the panel of experimental apparatus in real time.System is with the voice broadcast temperature variations in heating process, and when arriving design temperature audio alert, the introducing of voice technology can be liberated experimenter's eyes, needn't stare at instrument constantly in experiment, utilizes the sense of hearing just can grasp the degree that experiment is carried out.When temperature arrives setting value, system will keep temperature constant state.Experimental data and curve all have been presented on the LCDs of instrument panel, and experiment finishes behind the record data.

Claims (2)

1. one kind has the voice prompt alarm function thermistor temperature measurement control method, it is characterized in that on embedded platform its step 1---master routine:
System's each several part initialization---is obtained the strong value of input and---the input key assignments that obtains is handled---temperature detection, demonstration---temperature control---are returned and obtained the input key assignments.
Step 2---initialization subroutine:
------the voice initialization---shows initialization and---plays startup music---display background literal---displaing coordinate axle---retrieval system initialization the initialization of IO mouth system initialization.
Step 3---key assignments is handled subroutine:
The input key assignments judges---key assignments comprise a position be set, be provided with that ten, numerical value subtract one, numerical value adds one, the cancellation input, confirm input, quiet/sound, and---the input key assignments is judged and is finished the back---show, report---returns the judgement of input key assignments.
Step 4---temperature detection, display subroutine:
Do AD changes initialization, and---counter, totalizer---start the AD conversion---and convert? not---continue conversion, that---the AD translation data that adds up---counter subtracts---counter is zero?---startup AD conversion is, and---------preservation, video data---do not return AD conversion initialization to calculate AD translation data mean value to close AD.
Step 5---temperature control subprogram:
Whether set of opening flag? not---return, be---reach design temperature? does not---heating---temperature variation surpass twice? not---return, be---does the voice broadcast Temperature numerical reach design temperature? be that------audio alert---return by voice broadcast Temperature numerical---displays temperature data in coordinate system---to stop heating.
2. a kind of voice prompt alarm function thermistor temperature measurement control method that has according to claim 1, it is characterized in that in the key assignments processing subroutine, K1---voice broadcast opens or closes, K2---confirm the temperature setting, K3---the cancellation temperature is set, and K4---numerical value adds one, K5---and numerical value subtracts one, K6---is provided with ten, K7---position is set.
CN 200510022633 2005-12-26 2005-12-26 Thermistor temperature measurement control method with voice prompt alarm function Pending CN1790213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510022633 CN1790213A (en) 2005-12-26 2005-12-26 Thermistor temperature measurement control method with voice prompt alarm function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510022633 CN1790213A (en) 2005-12-26 2005-12-26 Thermistor temperature measurement control method with voice prompt alarm function

Publications (1)

Publication Number Publication Date
CN1790213A true CN1790213A (en) 2006-06-21

Family

ID=36788121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510022633 Pending CN1790213A (en) 2005-12-26 2005-12-26 Thermistor temperature measurement control method with voice prompt alarm function

Country Status (1)

Country Link
CN (1) CN1790213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169342B (en) * 2007-10-31 2010-06-09 王亮德 Cable adapter temperature monitoring system
CN108806120A (en) * 2017-05-02 2018-11-13 深圳市融美光科技有限公司 A kind of remaining sum shows cash box and its application method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169342B (en) * 2007-10-31 2010-06-09 王亮德 Cable adapter temperature monitoring system
CN108806120A (en) * 2017-05-02 2018-11-13 深圳市融美光科技有限公司 A kind of remaining sum shows cash box and its application method

Similar Documents

Publication Publication Date Title
EP2808652B1 (en) Portable electronic device with integrated temperature sensor being compensated by other sensing data
CN101972102B (en) Bath mat with accidental fall alarm prompt function
CN109164381A (en) A kind of mechanical state of high-voltage circuit breaker on-line monitoring and fault identification method and device
EP2796841B1 (en) Dynamic compensation of a sensor in a mobile device
KR20140125306A (en) System and method for determining sensor accuracy of a portable electronic device
WO2010109756A1 (en) Coordinate input display device
US20160299590A1 (en) Customization method, response method and mobile terminal for user-defined touch
EP2846135A2 (en) Portable Electronic Device with Environmental Sensor
WO2008007848A3 (en) Method of controllong touch panel display device and touch panel display device using the same
RU2007100429A (en) METHOD FOR ENTERING COMMANDS AND / OR SYMBOLS INTO A PORTABLE COMMUNICATION DEVICE SUPPORTED BY A TILT SENSOR
US8953820B2 (en) Method and apparatus for adjusting volume using distance sensors
US20130023738A1 (en) Mobile phone for health inspection and method using same
CN105892442A (en) Interface Device, Vehicle Examining Device Connecting With The Interface Device, And Controlling Method Of The Vehicle Examining Device
EP1968026A4 (en) Linear fire-detector alarming system based on data fusion and the method
CN1790213A (en) Thermistor temperature measurement control method with voice prompt alarm function
CN200979419Y (en) A multi-channel gas parameter measuring instrument
WO2023070791A1 (en) Volume compensation optimization method and apparatus, electronic device, and readable storage medium
CN101620021B (en) Twisting force detection device and detection method
CN111398202A (en) Gas data analysis method, gas data analysis device, electronic device, and storage medium
JP2006205970A (en) Platform door state monitoring system
EP2808651A1 (en) Portable electronic device with integrated temperature sensor being compensated by other sensing data
WO2005050355A3 (en) Color measurement profile with embedded characterization
WO2023143304A1 (en) Blood pressure measurement method, apparatus, and electronic device
TWI484369B (en) Sensing operation system and method thereof
CN201740603U (en) Temperature measuring, carbon determining and oxygen determining instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication