CN204461598U - A kind of signal generator being exclusively used in acoustic velocity measutement test - Google Patents
A kind of signal generator being exclusively used in acoustic velocity measutement test Download PDFInfo
- Publication number
- CN204461598U CN204461598U CN201520149548.2U CN201520149548U CN204461598U CN 204461598 U CN204461598 U CN 204461598U CN 201520149548 U CN201520149548 U CN 201520149548U CN 204461598 U CN204461598 U CN 204461598U
- Authority
- CN
- China
- Prior art keywords
- module
- pin
- chip
- rotary encoder
- frequency
- 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
Links
Landscapes
- Amplifiers (AREA)
Abstract
本实用新型公开了一种专用于声速测量试验的信号发生器,编码器输入模块包括旋转编码器和转向识别电路,旋转编码器的输出端分别与单片机控制模块和转向识别电路的输入端相连接,转向识别电路的输出端与单片机控制模块的输入端相连接;单片机控制模块的输出端分别与存储模块、显示模块和DDS正弦波生成模块的相应输入端相连接,DDS正弦波生成模块的输出端与低通滤波模块的输入端相连接,低通滤波模块的输出端与运算放大模块的输入端相连接。本实用新型专用于声速测量实验,只产生实验所需的36KHz~38KHz范围内的正弦波。由于输出正弦波的频率范围较窄,避免了频率浪费,同时频率调节容易且精度高、误差小。
The utility model discloses a signal generator specially used for the sound velocity measurement test. The encoder input module includes a rotary encoder and a steering identification circuit, and the output end of the rotary encoder is respectively connected with the single-chip microcomputer control module and the input end of the steering identification circuit. , the output end of the steering recognition circuit is connected with the input end of the single-chip microcomputer control module; the output end of the single-chip microcomputer control module is respectively connected with the corresponding input ends of the storage module, the display module and the DDS sine wave generation module, and the output of the DDS sine wave generation module The terminal is connected with the input terminal of the low-pass filter module, and the output terminal of the low-pass filter module is connected with the input terminal of the operational amplification module. The utility model is specially used in the sound velocity measurement experiment, and only generates sine waves in the range of 36KHz-38KHz required by the experiment. Since the frequency range of the output sine wave is narrow, frequency waste is avoided, and the frequency adjustment is easy, with high precision and small error.
Description
技术领域technical field
本实用新型涉及一种信号发生器,具体涉及一种专用于声速测量试验的信号发生器。The utility model relates to a signal generator, in particular to a signal generator specially used for sound velocity measurement tests.
背景技术Background technique
声速测量试验是最经典的大学物理实验之一,该实验不仅能够使得学生们了解到波速、波长和频率之间的定量关系以及形成驻波的条件等一般规律,还能进一步理解声音传播的本质。目前在声速测定实验中所用的超声波信号发生器虽然基本能满足实验要求,但是还存在两个不足之处:(1)现有的超声波信号发生器产生的频率过宽,为20Hz~200KHz,但是超声波声速测定实验中一般只需要特定频率(36KHz~38Hz)的信号,因此在声速测定实验使用时经常需要通过旋动旋钮进行机械调频,产生机械损耗而缩短仪器寿命,还会产生驻点漂移并且机械调频不易准确完成,易出现误差,不利于学生进行实验。(2)现有的信号发生器产生波形种类繁多,而声速测定实验只需要使用正弦波,这样现有信号发生器的很多的功能被浪费了,导致供大于求、功耗大。因此,研制一款物美价廉的调频范围窄,输出频率接近所需,只输出正弦波信号专用于声速测定实验使用的超声波信号发生器是很有必要的。The speed of sound measurement experiment is one of the most classic college physics experiments. This experiment can not only enable students to understand the general laws of the quantitative relationship between wave velocity, wavelength and frequency, and the conditions for forming standing waves, but also further understand the nature of sound propagation. . Although the ultrasonic signal generator used in the sound velocity measurement experiment can basically meet the experimental requirements at present, there are still two shortcomings: (1) the frequency generated by the existing ultrasonic signal generator is too wide, which is 20Hz~200KHz, but Ultrasonic sound velocity measurement experiments generally only need signals of specific frequencies (36KHz to 38Hz), so when using sound velocity measurement experiments, it is often necessary to perform mechanical frequency modulation by turning the knob, which will cause mechanical loss and shorten the life of the instrument. Mechanical frequency modulation is not easy to complete accurately, and errors are prone to occur, which is not conducive to students' experiments. (2) Existing signal generators generate a wide variety of waveforms, but the sound velocity measurement experiment only needs to use sine waves, so many functions of existing signal generators are wasted, resulting in oversupply and high power consumption. Therefore, it is necessary to develop a high-quality and cheap ultrasonic signal generator with narrow frequency modulation range, close to the required output frequency, and only output sine wave signal for the sound velocity measurement experiment.
在信号输入方面,现有的超声波信号源大多采用电位器调节产生所需频率的数值,然后产生所需要的正弦波、方波、三角波等。因为调频是通过旋动旋钮进行电位器调节,操作困难,易出现误差。经常采用电位器调频会造成机械损耗,缩短仪器寿命,还会产生驻点漂移并且电位器调频不易准确完成,不利于学生进行实验。In terms of signal input, most of the existing ultrasonic signal sources use potentiometers to adjust the value of the required frequency, and then generate the required sine wave, square wave, triangle wave, etc. Because the frequency modulation is adjusted by the potentiometer by turning the knob, the operation is difficult and errors are prone to occur. Frequent use of potentiometer frequency modulation will cause mechanical loss, shorten the life of the instrument, and cause stationary point drift, and potentiometer frequency modulation is not easy to complete accurately, which is not conducive to students' experiments.
实用新型内容Utility model content
本实用新型要解决的技术问题是提供一种专用于声速测量试验的信号发生器,只输出36KHz~38KHz频率范围内的正弦波,频率调节方便且精度较高。The technical problem to be solved by the utility model is to provide a signal generator specially used for the sound velocity measurement test, which only outputs sine waves in the frequency range of 36KHz-38KHz, and the frequency adjustment is convenient and the precision is high.
为解决上述技术问题,本实用新型所采取的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme adopted by the utility model is as follows:
一种专用于声速测量试验的信号发生器,包括电源模块、编码器输入模块、单片机控制模块、存储模块、显示模块、DDS正弦波生成模块、低通滤波模块和运算放大模块;所述电源模块为其他模块提供所需的直流电压;所述编码器输入模块包括旋转编码器和转向识别电路,旋转编码器的输出端分别与单片机控制模块和转向识别电路的输入端相连接,转向识别电路的输出端与单片机控制模块的输入端相连接;所述单片机控制模块的输出端分别与存储模块、显示模块和DDS正弦波生成模块的相应输入端相连接,DDS正弦波生成模块的输出端与低通滤波模块的输入端相连接,低通滤波模块的输出端与运算放大模块的输入端相连接;用户左转或右转旋转编码器的旋钮及连续按下旋转编码器的按钮开关,旋转编码器将旋钮转动值发送至转向识别电路,转向识别电路判别用户是左转或右转旋钮并将判别信号发送至单片机控制模块,同时旋转编码器将旋钮转动值及按钮开关连续按下的次数发送至单片机控制模块;单片机控制模块根据按钮开关连续按下的次数选定相应的步进值,并结合旋钮转动值及判别信号,生成36KHz~38KHz范围内的频率值,单片机控制模块一方面将该频率值和步进值发送至显示模块进行显示,一方面将该频率值发送至存储模块进行存储,另一方面将该频率值发送至DDS正弦波生成模块,由DDS正弦波生成模块产生频率等于该频率值的正弦波并将该正弦波发送至低通滤波模块进行去噪处理,低通滤波模块将去噪后生成的波形平滑的正弦波发送至运算放大模块进行信号放大,最后输出幅度经过调理且频率为36KHz~38KHz的正弦波信号。A signal generator dedicated to sound velocity measurement tests, including a power supply module, an encoder input module, a single-chip control module, a storage module, a display module, a DDS sine wave generation module, a low-pass filter module and an operational amplification module; the power supply module Provide the required DC voltage for other modules; the encoder input module includes a rotary encoder and a steering recognition circuit, the output of the rotary encoder is connected to the input of the single-chip control module and the steering recognition circuit respectively, and the steering recognition circuit Output end is connected with the input end of single-chip microcomputer control module; The output end of described single-chip microcomputer control module is connected with the corresponding input end of storage module, display module and DDS sine wave generation module respectively, the output end of DDS sine wave generation module is connected with low The input terminal of the pass filter module is connected, and the output terminal of the low-pass filter module is connected with the input terminal of the operational amplifier module; The encoder sends the rotation value of the knob to the steering recognition circuit. The steering recognition circuit judges whether the user is turning the knob left or right and sends the discrimination signal to the single-chip control module. At the same time, the rotary encoder sends the rotation value of the knob and the number of times the button switch is pressed continuously to the single-chip microcomputer control module; the single-chip microcomputer control module selects the corresponding step value according to the number of times the button switch is pressed continuously, and combines the knob rotation value and the discrimination signal to generate a frequency value in the range of 36KHz ~ 38KHz. The frequency value and step value are sent to the display module for display. On the one hand, the frequency value is sent to the storage module for storage, and on the other hand, the frequency value is sent to the DDS sine wave generation module, and the frequency generated by the DDS sine wave generation module is equal to The sine wave of the frequency value and send the sine wave to the low-pass filter module for denoising processing, the low-pass filter module sends the smooth sine wave generated after denoising to the operational amplifier module for signal amplification, and the final output amplitude is passed through Conditioned sine wave signal with a frequency of 36KHz ~ 38KHz.
其中,所述电源模块包括变压器、整流桥以及三个稳压芯片7812、7912和7805,实现交流220V至直流+12V、-12V和+5V的转换。Wherein, the power supply module includes a transformer, a rectifier bridge and three voltage stabilizing chips 7812, 7912 and 7805 to realize the conversion of AC 220V to DC +12V, -12V and +5V.
其中,所述单片机控制模块包括单片机STC89c52。Wherein, the single-chip microcomputer control module includes a single-chip microcomputer STC89c52.
其中,所述显示模块包括GXM 1602NSL液晶屏;单片机STC89c52的39-32脚分别接GXM 1602NSL液晶屏的7-14脚;单片机STC89c52的26-29脚分别接GXM 1602NSL液晶屏的4-6脚。Wherein, the display module includes a GXM 1602NSL liquid crystal screen; the 39-32 pins of the single-chip microcomputer STC89c52 are respectively connected to the 7-14 pins of the GXM 1602NSL liquid crystal screen; the 26-29 pins of the single-chip microcomputer STC89c52 are respectively connected to the 4-6 pins of the GXM 1602NSL liquid crystal screen.
其中,所述转向识别电路为与非门电路74HC00;旋转编码器的5脚接入到单片机STC89c52的23脚,旋转编码器的1脚同时接入到与非门电路74HC00的1脚和单片机STC89c52的21脚,旋转编码器的3脚同时接入到与非门电路74HC00的2脚和单片机STC89c52的22脚;与非门电路74HC00的11脚接入到单片机STC89c52的12脚;旋转编码器的旋钮右转时频率增加,左转时频率下降,并且左右旋转时对应的频率范围为36KHz~38KHz;连续按下旋转编码器的按钮开关一至三次对应的步进值分别为1Hz、10Hz和100Hz。Wherein, the steering recognition circuit is a NAND gate circuit 74HC00; the 5 pins of the rotary encoder are connected to the 23 pins of the single chip microcomputer STC89c52, and the 1 pin of the rotary encoder is simultaneously connected to the 1 pin of the NAND gate circuit 74HC00 and the single chip microcomputer STC89c52 The 21 pins of the rotary encoder, the 3 pins of the rotary encoder are connected to the 2 pins of the NAND gate circuit 74HC00 and the 22 pins of the single-chip STC89c52; the 11 pins of the NAND gate circuit 74HC00 are connected to the 12 pins of the single-chip STC89c52; the rotary encoder When the knob is turned to the right, the frequency increases, and when it is turned to the left, the frequency decreases, and the corresponding frequency range is 36KHz to 38KHz when the knob is turned left and right; the corresponding step values are 1Hz, 10Hz and 100Hz when the button switch of the rotary encoder is pressed continuously for one to three times.
其中,所述存储模块包括EEPROM芯片24c08;单片机STC89c52的25、24脚分别接芯片24c08的5、6脚。Wherein, the storage module includes an EEPROM chip 24c08; pins 25 and 24 of the single-chip microcomputer STC89c52 are respectively connected to pins 5 and 6 of the chip 24c08.
其中,所述DDS正弦波生成模块包括AD9850芯片;单片机STC89c52的1-4脚分别接AD9850芯片的8、12、7、25脚。Wherein, the DDS sine wave generation module includes an AD9850 chip; pins 1-4 of the single-chip microcomputer STC89c52 are respectively connected to pins 8, 12, 7, and 25 of the AD9850 chip.
其中,所述低通滤波模块包括电阻R4、R5、电容C7-C7和电感L1-L3;所述运算放大模块包括运放芯片NE5532、电阻R1、R3和电位器R2;运放芯片NE5532的1脚为36KHz~38KHz的正弦波信号的输出端;电感L1与电容C2并联组成第一谐振电路,电感L2与电容C4并联组成第二谐振电路,电感L3与电容C6并联组成第三谐振电路,第一至第三谐振电路和电阻R3依次串联后接在AD9850芯片的21脚与运放芯片NE5532的3脚之间;电阻C4和电容C1并联后接在AD9850芯片的21脚与地之间,电容C3接在第一谐振电路与第二谐振电路的节点与地之间,电容C5接在第二谐振电路与第三谐振电路的节点与地之间,电容C7与电阻R5并联后接在第三谐振电路与电阻R3的节点与地之间;电阻R1和电位器R2串联后接在运放芯片NE5532的1脚与地之间,电位器R2的动臂接运放芯片NE5532的1脚,运放芯片NE5532的2脚接电阻R1与电位器R2的节点。Wherein, the low-pass filter module includes resistors R4, R5, capacitors C7-C7, and inductors L1-L3; the operational amplifier module includes an op-amp chip NE5532, resistors R1, R3, and potentiometer R2; 1 of the op-amp chip NE5532 The pin is the output terminal of the sine wave signal of 36KHz ~ 38KHz; the inductance L1 and the capacitor C2 are connected in parallel to form the first resonant circuit, the inductance L2 and the capacitor C4 are connected in parallel to form the second resonant circuit, the inductance L3 and the capacitor C6 are connected in parallel to form the third resonant circuit, the second The first to third resonant circuits and resistor R3 are connected in series between pin 21 of the AD9850 chip and pin 3 of the operational amplifier chip NE5532; resistor C4 and capacitor C1 are connected in parallel and connected between pin 21 of the AD9850 chip and ground, and the capacitor C3 is connected between the node of the first resonant circuit and the second resonant circuit and the ground, the capacitor C5 is connected between the node of the second resonant circuit and the third resonant circuit and the ground, the capacitor C7 is connected in parallel with the resistor R5 and then connected to the third Between the resonant circuit and the node of the resistor R3 and the ground; the resistor R1 and the potentiometer R2 are connected in series between the pin 1 of the operational amplifier chip NE5532 and the ground, and the arm of the potentiometer R2 is connected to the pin 1 of the operational amplifier chip NE5532. Connect pin 2 of the chip NE5532 to the node of resistor R1 and potentiometer R2.
采用上述技术方案所产生的有益效果在于:The beneficial effects produced by adopting the above-mentioned technical scheme are:
本实用新型专用于声速测量实验,只产生实验所需的36KHz~38KHz范围内的正弦波。由于输出正弦波的频率范围较窄,避免了频率浪费,同时频率调节容易且精度高、误差小。The utility model is specially used in the sound velocity measurement experiment, and only generates sine waves in the range of 36KHz-38KHz required by the experiment. Since the frequency range of the output sine wave is narrow, frequency waste is avoided, and the frequency adjustment is easy, with high precision and small error.
(1)本实用新型利用旋转编码器产生所需要频率的频值,轻松的实现频率调节,不仅避免了机械方式误差大、操作难、寿命短的缺点,而且提高了精度与选频速度。把频率限定在36KHz~38KHz范围内,并设置3个档位,且编码器顺时针(向右)旋转时频率增加,逆时针(向左)旋转时频率降低。在小范围内调节频率值,方便了操作和实验准确度。(2)本实用新型专器专用,利用AD9850芯片只输出正弦波,降低了功耗,节约成本,优选了电子器件,使误差缩小到0.4Hz以内。(3)现有信号发生器售价在800~1200之间,本实用新型优选电子器件,很好的降低了成本,本实用新型的成本可以降低到150以下,具有可观的性价比,并且信号输出精确度较高。(4)本实用新型在精简功耗的基础上,大量减少电子器件的使用,并且在不增加成本及不产生不良影响的前提下多使用贴片式器件,在不产生电磁干扰的前提下电路集成化程度更高,从而体积更小,利于搬动。(1) The utility model uses the rotary encoder to generate the frequency value of the required frequency, and realizes the frequency adjustment easily. It not only avoids the shortcomings of large mechanical errors, difficult operation, and short life, but also improves the accuracy and frequency selection speed. Limit the frequency within the range of 36KHz to 38KHz, and set 3 gears, and the frequency increases when the encoder rotates clockwise (to the right), and decreases when the encoder rotates counterclockwise (to the left). The frequency value can be adjusted within a small range, which facilitates operation and experimental accuracy. (2) The special device of the utility model is dedicated to use the AD9850 chip to only output sine waves, which reduces power consumption and saves costs, and optimizes electronic devices to reduce the error to within 0.4Hz. (3) The price of the existing signal generator is between 800 and 1200. The utility model is preferably an electronic device, which reduces the cost very well. The cost of the utility model can be reduced to below 150, which has considerable cost performance, and the signal output Higher accuracy. (4) The utility model greatly reduces the use of electronic devices on the basis of streamlining power consumption, and uses more patch devices without increasing costs and causing adverse effects, and without generating electromagnetic interference. The degree of integration is higher, so the volume is smaller, which is convenient for moving.
附图说明Description of drawings
图1为本实用新型的结构框图;Fig. 1 is a block diagram of the utility model;
图2为本实用新型第一部分的连接示意图;Fig. 2 is the connection schematic diagram of the first part of the utility model;
图3为本实用新型第二部分的连接示意图;Fig. 3 is the connection diagram of the second part of the utility model;
图4为本实用新型第三部分的连接示意图。Fig. 4 is a schematic connection diagram of the third part of the present invention.
具体实施方式Detailed ways
如图1所示,本实用新型公开了一种专用于声速测量试验的信号发生器,包括电源模块、编码器输入模块、单片机控制模块、存储模块、显示模块、DDS正弦波生成模块、低通滤波模块和运算放大模块;所述电源模块为其他模块提供所需的直流电压;所述编码器输入模块包括旋转编码器和转向识别电路,旋转编码器的输出端分别与单片机控制模块和转向识别电路的输入端相连接,转向识别电路的输出端与单片机控制模块的输入端相连接;所述单片机控制模块的输出端分别与存储模块、显示模块和DDS正弦波生成模块的相应输入端相连接,DDS正弦波生成模块的输出端与低通滤波模块的输入端相连接,低通滤波模块的输出端与运算放大模块的输入端相连接。用户左转或右转旋转编码器的旋钮及连续按下旋转编码器的按钮开关,旋转编码器将旋钮转动值发送至转向识别电路,转向识别电路判别用户是左转或右转旋钮并将判别信号发送至单片机控制模块,同时旋转编码器将旋钮转动值及按钮开关连续按下的次数发送至单片机控制模块;单片机控制模块根据开关连续按下的次数选定相应的步进值,并结合旋钮转动值及判别信号,生成36KHz~38KHz范围内的频率值,单片机控制模块一方面将该频率值和步进值发送至显示模块进行显示,一方面将该频率值发送至存储模块进行存储,另一方面将该频率值发送至DDS正弦波生成模块,由DDS正弦波生成模块产生频率等于该频率值的正弦波并将该正弦波发送至低通滤波模块进行去噪处理,低通滤波模块将去噪后生成的波形平滑的正弦波发送至运算放大模块进行信号放大,最后输出幅度经过调理且频率为36KHz~38KHz的正弦波信号。As shown in Figure 1, the utility model discloses a signal generator specially used for sound velocity measurement test, including a power supply module, an encoder input module, a single-chip microcomputer control module, a storage module, a display module, a DDS sine wave generation module, a low-pass filter module and operational amplification module; the power supply module provides the required DC voltage for other modules; the encoder input module includes a rotary encoder and a steering recognition circuit, and the output of the rotary encoder is connected to the single-chip control module and the steering recognition circuit respectively The input end of the circuit is connected, and the output end of the steering identification circuit is connected with the input end of the single-chip microcomputer control module; the output end of the single-chip microcomputer control module is connected with the corresponding input end of the storage module, the display module and the DDS sine wave generation module respectively , the output end of the DDS sine wave generating module is connected to the input end of the low-pass filter module, and the output end of the low-pass filter module is connected to the input end of the operational amplification module. The user turns the knob of the rotary encoder left or right and presses the button switch of the rotary encoder continuously, the rotary encoder sends the rotation value of the knob to the steering recognition circuit, and the steering recognition circuit judges whether the user is turning the knob left or right and will judge The signal is sent to the single-chip microcomputer control module, and at the same time, the rotary encoder sends the knob rotation value and the number of times the button switch is pressed continuously to the single-chip control module; the single-chip control module selects the corresponding step value according to the number of times the switch is pressed continuously, and combined with the knob The rotation value and the discrimination signal generate a frequency value in the range of 36KHz to 38KHz. On the one hand, the single-chip control module sends the frequency value and step value to the display module for display. On the one hand, it sends the frequency value to the storage module for storage. On the one hand, the frequency value is sent to the DDS sine wave generation module, and the DDS sine wave generation module generates a sine wave with a frequency equal to the frequency value and sends the sine wave to the low-pass filter module for denoising processing, and the low-pass filter module will The smooth sine wave generated after denoising is sent to the operational amplifier module for signal amplification, and finally the sine wave signal with adjusted amplitude and frequency of 36KHz-38KHz is output.
如图2所示,电源模块包括变压器、整流桥以及三个稳压芯片7812、7912和7805,实现交流220V至直流+12V、-12V和+5V的转换。单片机STC89c52、GXM 1602NSL液晶屏、AD9850芯片等需要+5V的直流电压,运放芯片NE5532需要+12V、-12V的供电电压。As shown in Figure 2, the power module includes a transformer, a rectifier bridge and three voltage regulator chips 7812, 7912 and 7805 to realize the conversion of AC 220V to DC +12V, -12V and +5V. Single-chip microcomputer STC89c52, GXM 1602NSL LCD screen, AD9850 chip, etc. need +5V DC voltage, and op-amp chip NE5532 needs +12V, -12V power supply voltage.
如图3所示,单片机控制模块包括单片机STC89c52;显示模块包括GXM1602NSL液晶屏;单片机STC89c52的39-32脚分别接GXM 1602NSL液晶屏的7-14脚;单片机STC89c52的26-29脚分别接GXM 1602NSL液晶屏的4-6脚;存储模块包括EEPROM芯片24c08;单片机STC89c52的25、24脚分别接芯片24c08的5、6脚。转向识别电路为与非门电路74HC00;旋转编码器J1的5脚接入到单片机STC89c52的23脚,旋转编码器J1的1脚同时接入到与非门电路74HC00的1脚和单片机STC89c52的21脚,旋转编码器J1的3脚同时接入到与非门电路74HC00的2脚和单片机STC89c52的22脚;与非门电路74HC00的11脚接入到单片机STC89c52的12脚。根据旋转编码器的工作原理结合与非门电路74HC00,将旋转编码器的按钮开关设置成三种档位的步进值及通过左右转动旋钮改变数值大小。旋转编码器的旋钮右转时频率增加,左转时频率下降,并且左右旋转时对应的频率范围为36KHz~38KHz;连续按下旋转编码器的按钮开关一至三次对应的步进值分别为1Hz、10Hz和100Hz;编码器旋转时每动一次变化相应的档位值,并且将频率范围限定在36KHz~38KHz。频率等于36KHz时,再逆势时针转动频率保持36KHz不变;频率等于38KHz,再顺时针转频率保持38KHz不变。本实用新型把频率调节范围缩小在声速测量实验所需要的36.8KHz附近,做到专器专用,节省资源。As shown in Figure 3, the single-chip microcomputer control module includes a single-chip microcomputer STC89c52; the display module includes a GXM1602NSL LCD screen; the 39-32 pins of the single-chip microcomputer STC89c52 are respectively connected to the 7-14 pins of the GXM 1602NSL LCD screen; the 26-29 pins of the single-chip microcomputer STC89c52 are respectively connected to the GXM 1602NSL The 4-6 pins of the LCD screen; the storage module includes the EEPROM chip 24c08; the 25 and 24 pins of the single-chip microcomputer STC89c52 are respectively connected to the 5 and 6 pins of the chip 24c08. The steering recognition circuit is the NAND gate circuit 74HC00; the 5-pin of the rotary encoder J1 is connected to the 23-pin of the single-chip microcomputer STC89c52, and the 1-pin of the rotary encoder J1 is simultaneously connected to the 1-pin of the NAND gate circuit 74HC00 and the 21-pin of the single-chip STC89c52 Pin 3 of the rotary encoder J1 is connected to pin 2 of the NAND gate circuit 74HC00 and pin 22 of the single-chip microcomputer STC89c52; pin 11 of the NAND gate circuit 74HC00 is connected to pin 12 of the single-chip microcomputer STC89c52. According to the working principle of the rotary encoder combined with the NAND circuit 74HC00, the button switch of the rotary encoder is set to the step value of three gears and the value can be changed by turning the knob left and right. When the knob of the rotary encoder is turned right, the frequency increases, and when it is turned left, the frequency decreases, and the corresponding frequency range is 36KHz to 38KHz when the knob is turned left and right; the corresponding step values of pressing the button switch of the rotary encoder one to three times are respectively 1Hz, 10Hz and 100Hz; when the encoder rotates, the corresponding gear value is changed every time, and the frequency range is limited to 36KHz ~ 38KHz. When the frequency is equal to 36KHz, the frequency remains unchanged at 36KHz when it is turned clockwise against the trend; when the frequency is equal to 38KHz, the frequency remains unchanged at 38KHz when it is turned clockwise again. The utility model narrows the frequency adjustment range to around 36.8KHz required by the sound velocity measurement experiment, so that it can be used exclusively for special devices and saves resources.
单片机STC89c52按设定程序产生36KHz~38KHz范围内的频率值,并将该频率值分别发送给EEPROM芯片(断电保护)、GXM 1602NSL液晶模块(实时显示)及AD9850芯片(产生正弦波)。EEPROM芯片对数据进行保存,当系统断电后旋转编码器产生的数值消失,而EEPROM芯片中的数据不会丢失,系统再次通电后,单片机STC89c52将会调用EEPROM芯片中的数据继续发送给AD9850芯片,从而输出期望的正弦波。GXM 1602NSL液晶屏在屏幕上显示步进值和频率值。The single-chip microcomputer STC89c52 generates a frequency value within the range of 36KHz to 38KHz according to the setting program, and sends the frequency value to the EEPROM chip (power-off protection), GXM 1602NSL liquid crystal module (real-time display) and AD9850 chip (generating sine wave). The EEPROM chip saves the data. When the system is powered off, the value generated by the rotary encoder disappears, but the data in the EEPROM chip will not be lost. After the system is powered on again, the single-chip microcomputer STC89c52 will call the data in the EEPROM chip and continue to send it to the AD9850 chip , thus outputting the desired sine wave. The GXM 1602NSL LCD screen displays the step value and frequency value on the screen.
如图4所示,DDS正弦波生成模块包括AD9850芯片;单片机STC89c52的1-4脚分别接AD9850芯片的8、12、7、25脚;低通滤波模块包括电阻R4、R5、电容C7-C7和电感L1-L3;所述运算放大模块包括运放芯片NE5532、电阻R1、R3和电位器R2;运放芯片NE5532的1脚为36KHz~38KHz的正弦波信号的输出端;电感L1与电容C2并联组成第一谐振电路,电感L2与电容C4并联组成第二谐振电路,电感L3与电容C6并联组成第三谐振电路,第一至第三谐振电路和电阻R3依次串联后接在AD9850芯片的21脚与运放芯片NE5532的3脚之间;电阻C4和电容C1并联后接在AD9850芯片的21脚与地之间,电容C3接在第一谐振电路与第二谐振电路的节点与地之间,电容C5接在第二谐振电路与第三谐振电路的节点与地之间,电容C7与电阻R5并联后接在第三谐振电路与电阻R3的节点与地之间;电阻R1和电位器R2串联后接在运放芯片NE5532的1脚与地之间,电位器R2的动臂接运放芯片NE5532的1脚,运放芯片NE5532的2脚接电阻R1与电位器R2的节点。As shown in Figure 4, the DDS sine wave generation module includes the AD9850 chip; the 1-4 pins of the single-chip microcomputer STC89c52 are respectively connected to the 8, 12, 7, and 25 pins of the AD9850 chip; the low-pass filter module includes resistors R4, R5, and capacitors C7-C7 and inductance L1-L3; the operational amplifier module includes op-amp chip NE5532, resistors R1, R3 and potentiometer R2; pin 1 of op-amp chip NE5532 is the output end of a sine wave signal of 36KHz~38KHz; inductance L1 and capacitor C2 The first resonant circuit is formed in parallel, the inductance L2 and the capacitor C4 are connected in parallel to form the second resonant circuit, the inductance L3 and the capacitor C6 are connected in parallel to form the third resonant circuit, and the first to third resonant circuits and the resistor R3 are connected in series to the 21 of the AD9850 chip. between pin 3 and pin 3 of the operational amplifier chip NE5532; resistor C4 and capacitor C1 are connected in parallel between pin 21 of the AD9850 chip and the ground; capacitor C3 is connected between the node of the first resonant circuit and the second resonant circuit and the ground , the capacitor C5 is connected between the node of the second resonant circuit and the third resonant circuit and the ground, the capacitor C7 is connected in parallel with the resistor R5 and then connected between the node of the third resonant circuit and the resistor R3 and the ground; the resistor R1 and the potentiometer R2 Connect in series between pin 1 of the operational amplifier chip NE5532 and the ground, the boom of the potentiometer R2 is connected to pin 1 of the operational amplifier chip NE5532, and pin 2 of the operational amplifier chip NE5532 is connected to the node of the resistor R1 and the potentiometer R2.
单片机STC89c52与AD9850芯片采用串行连接方式。AD9850芯片的参考时钟频率一般远高于单片机STC89c52的时钟频率,因此AD9850芯片的复位端与单片机STC89c52的复位端直接相连。由于直接从AD9850芯片内部D/A转换输出的模拟波形并非平滑的正弦波,经低通滤波模块平滑处理,再经运放芯片NE5532对低通滤波模块输出的信号幅度进行调理,即可得到预期的波形。Single-chip STC89c52 and AD9850 chip adopt serial connection. The reference clock frequency of the AD9850 chip is generally much higher than the clock frequency of the single-chip microcomputer STC89c52, so the reset terminal of the AD9850 chip is directly connected with the reset terminal of the single-chip microcomputer STC89c52. Since the analog waveform output directly from the D/A conversion inside the AD9850 chip is not a smooth sine wave, it is smoothed by the low-pass filter module, and then the signal amplitude output by the low-pass filter module is conditioned by the operational amplifier chip NE5532, and the expected waveform.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201520149548.2U CN204461598U (en) | 2015-03-17 | 2015-03-17 | A kind of signal generator being exclusively used in acoustic velocity measutement test |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201520149548.2U CN204461598U (en) | 2015-03-17 | 2015-03-17 | A kind of signal generator being exclusively used in acoustic velocity measutement test |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN204461598U true CN204461598U (en) | 2015-07-08 |
Family
ID=53668469
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201520149548.2U Expired - Fee Related CN204461598U (en) | 2015-03-17 | 2015-03-17 | A kind of signal generator being exclusively used in acoustic velocity measutement test |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN204461598U (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113504307A (en) * | 2021-09-10 | 2021-10-15 | 西南石油大学 | Multi-frequency core sound velocity measuring device |
| CN114138695A (en) * | 2021-12-16 | 2022-03-04 | 无锡市海鹰加科海洋技术有限责任公司 | A direct-reading sound velocity meter power supply and communication conversion circuit |
-
2015
- 2015-03-17 CN CN201520149548.2U patent/CN204461598U/en not_active Expired - Fee Related
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113504307A (en) * | 2021-09-10 | 2021-10-15 | 西南石油大学 | Multi-frequency core sound velocity measuring device |
| CN113504307B (en) * | 2021-09-10 | 2021-12-21 | 西南石油大学 | A multi-frequency core sound velocity measurement device |
| US11371962B1 (en) | 2021-09-10 | 2022-06-28 | Southwest Petroleum University | Multi-frequency acoustic velocity measurement device for core |
| CN114138695A (en) * | 2021-12-16 | 2022-03-04 | 无锡市海鹰加科海洋技术有限责任公司 | A direct-reading sound velocity meter power supply and communication conversion circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102967651A (en) | Eddy current testing excitation signal source based on DDS (Direct Digital Synthesis) technology | |
| CN204142782U (en) | The high precision numerical control power supply that a kind of output waveform is controlled | |
| CN102426472B (en) | Hardware-in-the-loop generator and use method thereof | |
| CN204461598U (en) | A kind of signal generator being exclusively used in acoustic velocity measutement test | |
| CN203025263U (en) | Portable amplitude-frequency characteristic tester | |
| CN103199813A (en) | Negative feedback idea-based memristor resistance value state control circuit | |
| CN111130509B (en) | An Audio Frequency Sweep Signal Generator Based on DDS Technology | |
| CN203287407U (en) | High voltage large power multiple harmonic generating device | |
| CN203722591U (en) | Signal-generator for experiments | |
| CN204157137U (en) | Based on the LED light cube control circuit of wireless power transmission | |
| CN204993279U (en) | Waveform generator | |
| CN201937558U (en) | Control device of signal generator | |
| CN205228502U (en) | Incremental encoder signal generating circuit | |
| CN210954125U (en) | Simple signal generating circuit based on AD9833 | |
| CN202998024U (en) | Portable high-precision multi-purpose medical sinusoidal signal generator | |
| CN203894323U (en) | Low-power consumption electric energy acquisition apparatus | |
| CN103454952B (en) | A kind of excitation source circuit of weld seam tracking sensor | |
| CN106357129B (en) | The controllable giant magnetostrictive transducer driving power of signal source | |
| CN203133166U (en) | Novel digital frequency sweeper | |
| CN104266578B (en) | Circuit of Ferromagnetic Coating Thickness Gauge Based on Mobile Display Terminal | |
| CN204667102U (en) | A kind of high-frequency apparatus control panel | |
| CN204992584U (en) | Digit reactor device based on PWM control technique | |
| CN203324737U (en) | Intelligent frequency variable sinusoidal signal generator | |
| CN204229153U (en) | High-power high voltage generation device | |
| CN205157754U (en) | Signal generator self -calibration system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150708 Termination date: 20160317 |