CN1245631C - Rotation rate-analog voltage transformation module - Google Patents

Rotation rate-analog voltage transformation module Download PDF

Info

Publication number
CN1245631C
CN1245631C CN 03138923 CN03138923A CN1245631C CN 1245631 C CN1245631 C CN 1245631C CN 03138923 CN03138923 CN 03138923 CN 03138923 A CN03138923 A CN 03138923A CN 1245631 C CN1245631 C CN 1245631C
Authority
CN
China
Prior art keywords
circuit
signal
chip microcomputer
change
analog voltage
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.)
Expired - Fee Related
Application number
CN 03138923
Other languages
Chinese (zh)
Other versions
CN1482466A (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 03138923 priority Critical patent/CN1245631C/en
Publication of CN1482466A publication Critical patent/CN1482466A/en
Application granted granted Critical
Publication of CN1245631C publication Critical patent/CN1245631C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Direct Current Motors (AREA)

Abstract

The present invention relates to a rotary speed-analog voltage converting module which belongs to the technology of converting non electrical quantity into electrical quantity. The rotary speed-analog voltage converting module comprises a casing and an electronic circuit, wherein the circuit comprises at least a rotary speed signal detecting circuit, a signal processing circuit, a signal operating single-chip computer, a D/A converting circuit, an error detecting circuit, a display circuit, a memory and a power source, wherein the D/A converting circuit is in the shape of TLC5615, outputs analog voltage signals, and can also connect with a drive circuit to output higher drive power; the rotary speed signal detecting circuit is composed of proximity switches excited by a gear arranged on a main motor; the signal processing circuit is composed of a photocoupler and Schmitt trigger; the single chip computer is in the shape of AT89C2051, and a flash memory of a solidification program is arranged in the single chip computer; the drive circuit is composed of operational amplifiers; the error detecting circuit is composed of an MAX813L reset circuit and a watchdog circuit. The present invention has the advantages of simple structure, low cost, low operating cost, low noise and sufficiently high precision, and can be widely applied to automatic packaging machines.

Description

Rotating speed-aanalogvoltage modular converter
Technical field
The invention belongs to non electrical quantity-electric quantity signal switch technology field, more particularly relate to the single-chip microcomputer design of the rotating speed-aanalogvoltage modular converter of control in real time.
Background technology
Behind the blank, the synchronism of its master and slave motor is often destroyed in process of production for the automatic pillow type packing machine of existing use dual frequency converter structure.Main cause has two: on the one hand, be because control structure own determines the inevitable of this problem; On the other hand, use the solution of PLC,, can not address this problem because the velocity ratio of its processing is lower as control.Therefore, though the automatic packaging machine cost of dual frequency converter framework is low, simple in structure, noise is little, there is not widespread usage on market.High-grade automatic pillow type packing machine adopts the servomotor structure, its precision height, and noise is little, but the cost height, complex structure, so price is very high.In contrast, though adopt the automatic packaging machine production cost of mechanical linkage low, the user is in use very high owing to the use cost that mechanical wear produces, and noise is big simultaneously, and precision is low, so its price is low, and profit is low.
Purpose of the present invention, just be to overcome above-mentioned shortcoming and defect, advantages such as a kind of low noise of existing servomotor structure, low use cost are provided, have low cost, low price, the advantages of simple structure and simple of mechanical linkage structure again, and the rotating speed-aanalogvoltage modular converter of the real-time control of single-chip microcomputer of degree of precision enough, that can accept is fully arranged.Use the automatic packaging machine of the dual frequency converter structure of this module will become the regeneration product of mechanical linkage structure packaging machine.
Summary of the invention
In order to achieve the above object, the present invention includes shell and be installed in electronic circuit in the shell.Electronic circuit comprises tach signal testing circuit, the signal processing circuit that is connected with the tach signal testing circuit, the signal operation single-chip microcomputer that is connected with signal processing circuit, the D/A change-over circuit that is connected with the signal operation single-chip microcomputer, the error detecting circuit that is connected with the signal operation single-chip microcomputer, the display circuit that is connected with the signal operation single-chip microcomputer, the storer that is connected with the signal operation single-chip microcomputer and at least to the power circuit of above-mentioned circuit supply.The D/A change-over circuit is exported the analog voltage signal of this module.
The D/A change-over circuit also can be connected with driving circuit, exports higher driving force.
The tach signal testing circuit is by to be installed in being formed near switch that gear on the main motor excites.
Signal processing circuit is by being formed with the photoelectrical coupler that is connected near switch, the Schmidt trigger that is connected with photoelectrical coupler.The model of signal operation single-chip microcomputer is AT89C2051, and the model of D/A change-over circuit is TLC5615.Driving circuit is made up of operational amplifier that is connected with TLC5615 and auxiliary circuit thereof.Error detecting circuit is resetted by MAX813L and watchdog circuit is formed.
The present invention utilizes near switch directly as the input signal of module, and utilizes the high-speed computation ability of single-chip microcomputer, the pulse signal of input is measured in real time computing, filtering, the digital value of the real-time velocity of rotation of output reflection then; By analog-digital chip, convert aanalogvoltage output to again.This voltage just can correctly reflect rotating speed like this, and precision is higher.Near switch multiple choices can be arranged, as long as the number of teeth can be sensed as umber of pulse that is rotating speed.
The hardware design of module adopts signal photoelectricity to isolate input, and with Schmidt trigger signal is carried out shaping, prevents that to greatest extent undesired signal from entering single-chip microcomputer.Single-chip microcomputer adopts AT89C2051, and this singlechip technology comparative maturity is reliable, and cost is lower.Analog-digital chip uses the TLC5615 of SPI interface, and it is simple to have an interface, and slewing rate is than very fast, conversion accuracy height, technology maturation, advantage such as highly reliable.Form reset circuit and watchdog circuit with MAX813L, can improve the reliability of system.Signal Processing mainly relies on Single Chip Microcomputer (SCM) program, thereby guarantees the dirigibility of module and stronger applicability.
Module adopts high-speed real-time to detect pulse width on software, and Wave-Smoothing Digital Filtration and the theoretical value technology such as auxiliary output of tabling look-up have been carried out comprehensive application to the multiple basic fundamental in the digital signal processing.Both overcome when measuring low frequency signal, because the voltage fluctuation that counting error produces, the while has also overcome Wave-Smoothing Digital Filtration and the control hysteresis effect that produces, the real-time sensitivity that has improved module.
The invention provides advantages such as a kind of low noise of existing servomotor structure, low use cost, have low cost, low price, the advantages of simple structure and simple of mechanical linkage structure again, and the rotating speed-aanalogvoltage modular converter of the real-time control of single-chip microcomputer of sufficiently high precision is arranged.Behind the automatic packaging machine blank of two frequency conversion structures, because frequency converter is subjected to the control of the voltage that the present invention exports, make from motor and main motor and on rotating speed, be consistent fully, thereby solved synchronous ruined problem behind the blank, continuous synchronization has increased significantly, and the cutting accuracy of packaging machine has reached the level of servomotor structure.This module not only can be widely used in the automatic packaging machine of dual frequency converter structure, and can be extended in other equipment that needs speed synchronization, and its range of application also not only is confined to the packaging machine industry.
Description of drawings
Fig. 1 is a circuit block diagram of the present invention.
Fig. 2 is its circuit theory diagrams.
Fig. 3 is applied to block diagram on the packaging machine of dual frequency converter structure for it.
Fig. 4 is the process flow diagram of software main program of the present invention.
Fig. 5 is regularly the process flow diagram of interruption subroutine.
Fig. 6 is the process flow diagram of signal interruption subroutine.
Embodiment
Embodiment 1.A kind of rotating speed-aanalogvoltage modular converter is as Fig. 1~shown in Figure 6.It comprises shell and electronic circuit.Electronic circuit comprises tach signal testing circuit 1, the signal processing circuit 2 that is connected with tach signal testing circuit 1, the signal operation single-chip microcomputer 3 that is connected with signal processing circuit 2, the D/A change-over circuit 4 that is connected with signal operation single-chip microcomputer 3, the error detecting circuit 5 that is connected with signal operation single-chip microcomputer 3, the display circuit 6 that is connected with signal operation single-chip microcomputer 3, the storer 7 that is connected with signal operation single-chip microcomputer 3 and at least to the power circuit 8 of above-mentioned circuit supply.The analog voltage signal of D/A change-over circuit 4 these modules of output.D/A change-over circuit 4 can also be connected with driving circuit 9, to export higher driving force.
Consult Fig. 3, tach signal testing circuit 1 is by to be installed in being formed near switch 12 that gear 11 on the main motor 10 excites.Main motor 10 also is connected with primary transducer 17 among the figure, this module 18 also successively with proportional control module 19, from frequency converter 20, be connected from (film) motor 21.Proportional control module 19 also is connected with PLC22.
Consult Fig. 2, signal processing circuit 2 is by being formed with the photoelectrical coupler 13 that is connected near switch 12, the Schmidt trigger 14 that is connected with photoelectrical coupler 13.The model of signal operation single-chip microcomputer 3 is AT89C2051, and the model of D/A change-over circuit 4 is TLC5615.Driving circuit 9 is made up of the operational amplifier 15 and the auxiliary circuit thereof that are connected with TLC5615.Error detecting circuit 5 is resetted by MAX813L and watchdog circuit 16 is formed.
Present embodiment 1 is the single-chip microcomputer transformation system of the mechanical separator speed conversion of signals electric signal of control in real time.Its signal deteching circuit 1 adopts the method for rotating near switch 12 detection of gear 11 that the rotating speed of main motor 10 is transformed into electric impulse signal.Each tooth of gear 11 can produce the analog voltage pulse of a current rotating speed of reflection.Because the signal near switch 12 outputs changes between the 24V at 0V, and the time of rising and falling edges is long, carries a large amount of higher hamonic waves simultaneously, therefore can not directly measure computing.Designed signal processing circuit 2, it is made up of photoelectrical coupler 13 and Schmidt trigger 14 for this reason.Photoelectrical coupler 13 is transformed into the pulse signal of 0~5V with the pulse signal of 0~24V, and realizes the front and back level isolation of signal.Schmidt trigger 14 utilizes its return difference characteristic, and square-wave signal is carried out shaping, makes it become the step signal of front and back along sudden change, a large amount of higher hamonic wave of while elimination, and signal just can correctly be measured like this.
Signal operation single-chip microcomputer 3 high speeds, real-time sequential operation have been realized the transformation of pulse signal to digital quantity.After single-chip microcomputer 3 calculates digital quantity, it is sent into modular converter, utilize the D/A change-over circuit 4 in the module to convert aanalogvoltage to, so just realized of the real-time conversion of mechanical separator speed signal to analog voltage signal.The aanalogvoltage driving force of considering modular converter output is lower, and range has only 0~5V, has therefore designed a driving circuit 9.This circuit is a kind of circuit of being made up of the integrated operational amplifier of high input impedance of scale operation in the same way, thereby obtains higher driving force and sensitive voltage output range.Error detecting circuit 5 is used to the calculating process of monitoring facilities constantly, and the interference when the external world makes program enter endless loop, and circuit produces a reset signal, makes program come back to normal running status, and the reliability of system is guaranteed.Display circuit 6 can design according to the actual needs.Storer 7 is used to storage system operation parameters needed.Power circuit 8 is the DC-DC conversion, is responsible for the DC converting of 24V is become the direct current of 5V, for the foregoing circuit power supply, guarantees the normal operation of system.
Embodiment 1 adopts the AT89C2051 single-chip microcomputer, and program Solidification is in the built-in 2KBFlashRom of single-chip microcomputer, and program is to adopt the special-purpose C language compilation of C51 single-chip microcomputer.Program mainly is divided into master routine, timing interruption subroutine, signal interruption subroutine three parts.
The visible Fig. 4 of the flow process of master routine.The single-chip microcomputer electrification reset enters master routine.Master routine at first carries out the initialization setting to mcu resource as interruption, timer etc., and scan round then according to different state inputs, is carried out returning after the processing separately, continues the input condition of scanning different conditions.
void?main()
{
uchar?i;
TMOD=0x12; // timer 1 is 16, and timer 0 is 8 and is reloaded into
THO=0x6e;
ITO=1; // timer interrupts the initialization setting
PTO=1;
TRO=1;
EXO=1;
ETO=1;
EA=1;
While (1) // show and the input and output setting according to the concrete needs of user
{
…………
}
}
Regularly visible Fig. 5 of flow process of interruption subroutine enters this interruption subroutine after timer overflows.A counter in this subroutine is used for cycle of test signal, and after counter was greater than maximum set value, the expression motor stopped operating, and it is zero that the output digital quantity makes output voltage.
Void time_over () interrupt1 // virtual test pulse timing counting subroutine
{
If (dogfood==1) dogfood=0; // watchdog reset
Signed_time++; // counting
If (signed_time>2500) { signed_time=0; Da5615 (0); } // counting region is judged
}
The visible Fig. 6 of the flow process of signal interruption subroutine.When pulse signal arrives, the entering signal interruption subroutine.At this moment the value of counter is the cycle of test signal just in the timer interruption subroutine, it is deposited in the buffer zone, then cycle of preceding four signals is added that the cycle of current demand signal carries out running mean, make the influence minimizing of counting and the caused error of mechanical shaking.When program design, will make tables of data, and utilize look up table technique to find current theoretical value, and compare with theoretical value and currency with mean value according to the theoretical value that physics law calculates.If it is because accidents such as machinery, electromagnetic interference (EMI) disturb institute to cause that difference in certain scope, is then represented causing of this difference, be not that real motor speed variation causes, therefore calculate the output of voltage digital amount according to theoretical value; If difference outside scope, represents then that the speed of motor changes, at this moment should calculate the output of voltage digital amount according to currency.The stability of voltage requirements when moving according to i.e. assurance is normal after the aforementioned algorithm also guarantees because motor speed suddenlys change, and the real-time that requires voltage in time to reflect.
Void get_signed () interrupt 0 // signal pulse is measured computing interruption subroutine { uchar i, seat_temp; EA=0; Dogfood=1; Signed_time_temp=signed_time; Signed_time=0;<!--SIPO<DP n=" 5 "〉--〉<dp n=" d5 "/EA=1; EX0=0; Change_sa_sum=change_sa_sum-change_sa_temp[0]; For (i=0; I<4; I++) // 5 measurement results are carried out running mean handle change_sa_temp[i]=change_sa_temp[i+1]; Change_sa_temp[4]=signed_time_temp; Change_sa_sum=change_sa_sum+change_sa_temp[4]; Change_sa_ave=change_sa_sum/5; Seat_temp=change_sa_ave/10; // average result is converted to the position if that tables look-up ((change_sa_ave%10)>=5) seat_temp+=1; If (signed_time>2000) // test pulse is carried out scope restriction { change_sa_num=0; Signed_time=2000; Goto output_vol; Else{if (change_sa_ave>1174﹠amp; Amp; ﹠amp; Amp; Change_sa_ave<=65536 ‖ change_sa_ave==0) { change_sa_num=0; Goto output_vol; Else // the value of tabling look-up and measured value are compared if (change_sa_ave<58) change_sa_num=1023; Elseif (abs (signed_time_ture[seat_temp]-signed_time_temp)<=3) change_sa_ave=signed_time_ture[seat_temp]; In // the scope, keep the value of tabling look-up change_sa_num=59334/change_sa_ave; } // calculate digital quantity elseif (abs (signed_time_ture[seat_temp]-signed_time_temp)>3) { outside // scope, keep measured value change_sa_ave=signed_time_temp; Change_sa_num=59334/change_sa_ave; // calculate digital quantity }<!--SIPO<DP n=" 6 "〉--〉<dp n=" d6 "/output-vol:-nop-o; Da5615 (change_sa_num); // digital quantity is exported EXO=1; }
Embodiment 1 is simple in structure, and cost and use cost are low, and noise is low, and sufficiently high precision is arranged.Can be widely used in the automatic packaging machine of dual frequency converter structure.

Claims (2)

1. rotating speed-aanalogvoltage modular converter, it comprises shell and is installed in electronic circuit in the shell, electronic circuit comprises the tach signal testing circuit at least, the signal processing circuit that is connected with the tach signal testing circuit, the signal operation single-chip microcomputer that is connected with signal processing circuit, the D/A change-over circuit that is connected with the signal operation single-chip microcomputer, the error detecting circuit that is connected with the signal operation single-chip microcomputer, the display circuit that is connected with the signal operation single-chip microcomputer, the storer that is connected with the signal operation single-chip microcomputer and to the power circuit of above-mentioned circuit supply, the analog voltage signal that the D/A change-over circuit is exported this module also is connected with driving circuit, the tach signal testing circuit is by to be installed in being formed near switch that gear on the main motor excites, it is characterized in that said signal processing circuit by with the photoelectrical coupler that is connected near switch, the Schmidt trigger that is connected with photoelectrical coupler is formed, the model of signal operation single-chip microcomputer is AT89C2051, the model of D/A change-over circuit is TLC5615, driving circuit is made up of operational amplifier that is connected with TLC5615 and auxiliary circuit thereof, and error detecting circuit is resetted by MAX813L and watchdog circuit is formed.
2. according to the described rotating speed of claim 1-aanalogvoltage modular converter, it is characterized in that said signal operation single-chip microcomputer inside also comprises the flash memory of following program Solidification in it:
1. the single-chip microcomputer electrification reset enters, and at first mcu resource is carried out the initialization setting as interruption, timer, and scan round then according to different state inputs, is carried out returning after the processing separately, continues the master routine of the input condition of scanning different conditions;
2. enter after timer overflows, one of them counter is used for cycle of test signal, and after counter was greater than maximum set value, the expression motor stopped operating, and it is zero timing interruption subroutine that the output digital quantity makes output voltage;
3. when pulse signal arrives, value as counter is the cycle of test signal just, it is deposited in the buffer zone, then cycle of preceding four signals is added that the cycle of current demand signal carries out running mean, make the influence minimizing of counting and the caused error of mechanical shaking; Utilizing look up table technique to find current theoretical value with mean value, and itself and currency are compared, is to export owing to machinery, the unexpected institute of electromagnetic interference (EMI) cause and calculate the voltage digital amount according to theoretical value if difference in certain scope, is then represented causing of this difference; If difference outside scope, represents then that the speed of motor changes, at this moment should calculate the signal interruption subroutine of voltage digital amount output according to currency.
CN 03138923 2003-07-24 2003-07-24 Rotation rate-analog voltage transformation module Expired - Fee Related CN1245631C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03138923 CN1245631C (en) 2003-07-24 2003-07-24 Rotation rate-analog voltage transformation module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03138923 CN1245631C (en) 2003-07-24 2003-07-24 Rotation rate-analog voltage transformation module

Publications (2)

Publication Number Publication Date
CN1482466A CN1482466A (en) 2004-03-17
CN1245631C true CN1245631C (en) 2006-03-15

Family

ID=34154965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03138923 Expired - Fee Related CN1245631C (en) 2003-07-24 2003-07-24 Rotation rate-analog voltage transformation module

Country Status (1)

Country Link
CN (1) CN1245631C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103010122A (en) * 2012-12-06 2013-04-03 四川金网通电子科技有限公司 Electric vehicle controller information output display method and device
CN103412499B (en) * 2013-08-22 2016-09-14 中国航天科工集团第三研究院第八三五七研究所 Portable synchronous machine and decomposer digital switching device
CN103631152B (en) * 2013-11-26 2015-12-30 南京航空航天大学 Engine controller hardware-in-loop simulation moment of torsion/rotating speed composite signal analogy method
CN103675324A (en) * 2013-12-13 2014-03-26 中国航空工业集团公司第六三一研究所 Rotation speed measurement method with anti-shake function
RU2601271C1 (en) * 2015-06-24 2016-10-27 Федеральное государственное бюджетное учреждение науки Институт проблем управления им. В.А. Трапезникова Российской академии наук Method for pneumatic frequency measuring body acceleration
CN107228952A (en) * 2017-06-20 2017-10-03 南京航空航天大学 A kind of high reliability rotating speed transducer module

Also Published As

Publication number Publication date
CN1482466A (en) 2004-03-17

Similar Documents

Publication Publication Date Title
CN102914665B (en) Motor revolving speed measurement and fault state detection system
CN102291065A (en) Brushless direct current motor control device based on DSP (Digital Signal Processor)
CN202041221U (en) Subdividing device of sine/cosine encoder
CN1245631C (en) Rotation rate-analog voltage transformation module
CN204203725U (en) A kind of for servomotor position control system with high accuracy
CN1010506B (en) Speed detecting arrangement
CN104317253A (en) System method for servo motor position control
CN104111347B (en) Raster encoder low-speed precision detection apparatus
CN201819917U (en) Automobile detection and analysis system with wheel speed sensor
CN1975436A (en) High precision wide range velocity measuring method and circuit
CN1862233A (en) Analogue speed signal generator
CN200972494Y (en) High precision frequency-measurement phase-measurement circuit
CN2641659Y (en) Rotation speed-analog voltage converting module
CN203232046U (en) Wind turbine impeller rotation speed measuring and monitoring device
CN203037662U (en) Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car
CN1136453C (en) Inteligent type electronic speed meter for vehicle
CN203479256U (en) Micro-distance electronic meter
CN205450016U (en) Motor for electric vehicle rotor speed detector
CN204807577U (en) Novel current meter examination car
CN2553383Y (en) Phase output magnetoelectric speed sensor
CN203896234U (en) Multi-motor synchronization controlling apparatus based on embedded system
CN2840044Y (en) High-precision and wide range tachometer circuit
CN202661062U (en) Real-time two-shaft rotation angle difference detector
CN201269881Y (en) Frequency conversion device and vehicle assembled with the device
CN208270206U (en) A kind of real-time detection apparatus for electric operator mechanical wear

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee