超聲波清洗機清洗劑則溫度越高,清洗作用越顯
瀏覽: 發(fā)布日期:2019-08-17
單片機超聲波清洗機的體系規(guī)劃和調(diào)試淺談_濟南潔升超聲波清洗機The system is intelligently controlled by the SPCE061A MCU, and the active stalking of the frequency is completed using the voltage maximum method. The ultrasonic cleaning machine has good cleaning effect, high conversion efficiency, and wide use vision.
體系由SPCE061A單片機完成了智能化操控,使用電壓最大值法完成了頻率的主動盯梢。該超聲波清洗機清洗作用好,變換效率高,使用遠景寬廣。
The software design of the ultrasonic cleaning machine system uses u\u0026rsquo;nSPTM integrated development environment IDE, which integrates the functions of editing, compiling, connecting, debugging and simulation of the program, with friendly interactive interface, shortcut keys and quick visit list. Programming and debugging work is convenient and efficient. The SPCE061A MCU integrates a functional module for online programming control. Therefore, it is not necessary to insert or remove any chip during the debugging process, and there is no need to block the power supply.
軟件設(shè)計
The control software of SPCE061A MCU consists of the main program and the abort service program. The main program flow chart is shown in Figure 5. The system is initialized at boot time. The initialization job includes CPU clock selection, punctual count clock setting, and initialization of the corresponding I/O port and A/D converter. In the meantime, the CPU clock frequency is set to 49.152MHz, and the punctual TimerA counting clock selects the highest clock frequency, that is, the CPU clock frequency is divided by two. The reason for selecting the highest clock frequency is that the high clock frequency is relatively simple to obtain an accurate reference frequency.
超聲波清洗機體系軟件設(shè)計選用u’nSPTM集成開發(fā)環(huán)境IDE,它集程序的編輯、編譯、連接、調(diào)試以及仿真等功能為一體,具有友好的交互界面、快捷鍵和迅速拜訪列表等,使編程、調(diào)試作業(yè)便利且高效。SPCE061A單片機內(nèi)部集成了進行在線編程操控的功能模塊,因而,在調(diào)試過程中無需插拔任何芯片,也無需堵截電源。
After the initialization of the punctual TimerA, the APWMO pin outputs a pulse sequence of 30 to 35 kHz, and the voltages of the ultrasonic transducers at both ends of the ultrasonic transducer are checked together, and the frequency corresponding to the maximum value of the voltage is set to the resonance frequency.
SPCE061A單片機的操控軟件由主程序和中止效勞程序構(gòu)成。主程序流程圖如圖5所示。開機時對體系進行初始化,初始化作業(yè)包含CPU時鐘挑選、守時器計數(shù)時鐘設(shè)置以及相應(yīng) I/O 口和A/D變換器的初始化。其間設(shè)置CPU時鐘頻率為49.152MHz,守時器TimerA計數(shù)時鐘選用最高的時鐘頻率,即CPU時鐘頻率的二分頻,選用最高時鐘頻率的原因是高的時鐘頻率對比簡單得到準確的基準頻率。
When the system is running in practice, the resonant frequency will also change due to changes in the parameters of the metadevice used and changes in operating conditions. After sampling the voltages at both ends of the transducer, the sampled values ??are sent to I0A0 (LIN-IN0), and the 10-bit successive A/D converter integrated in the SPCE061A microcontroller is used for analog-to-digital conversion.
經(jīng)過對守時器TimerA的初始化,使APWMO引腳輸出30~35kHz的脈沖序列,一起檢查超聲波清洗機超聲波換能器兩頭電壓,將電壓最大值對應(yīng)的頻率設(shè)置為諧振頻率。
In the practical program, the voltage values ??at both ends of the transducer are sampled 8 times in succession, and the average value is filtered, and the average value is taken as the A/D conversion result. The A/D conversion result is compared with the resonance voltage value, and the frequency of the APWMO output pulse sequence is adjusted according to the comparison result, thereby adjusting the resonance frequency in real time. The keyboard is identified by scanning the corresponding port by the program, and the operation mode, power, and punctual time set by the keyboard are dynamically displayed by the LED. The punctuality of the punctuality TimerB, the punctual time to stop, enter the suspension service program.
體系在實踐運行時,因為所用元器材參數(shù)的改變及作業(yè)條件的改變,諧振頻率也會發(fā)生改變。經(jīng)過對換能器兩頭電壓進行采樣,將采樣值送入I0A0(LIN-IN0),由SPCE061A單片機內(nèi)部集成的10位逐次迫臨式A/D變換器進行模數(shù)變換。
System debugging
實踐程序中,接連采樣8次換能器兩頭電壓值,進行平均值濾波,取該平均值為A/D變換成果。將該A/D變換成果與諧振時電壓值進行對比,根據(jù)對比成果調(diào)整APWMO輸出脈沖序列的頻率,從而實時調(diào)整諧振頻率。鍵盤是經(jīng)過程序?qū)ο鄳?yīng)端口的掃描來辨認的,經(jīng)過鍵盤設(shè)定的作業(yè)方式、功率、守時時刻由LED動態(tài)顯示。守時選用守時器TimerB,守時時刻到發(fā)生中止,進入中止效勞程序。
The key to system debugging is the matching problem of the load loop. Before the ultrasonic cleaning system is debugged, the equipment of the series resonant circuit should be aged. During the debugging, the waveform of the voltage and current can be investigated by the high-frequency oscilloscope. The phase difference is compared and the relevant parameters ar超聲波清洗機廠家e adjusted until the voltage and current are in phase.
