Intelligent vibration switch circuit
Through the multi -level amplification and digital potentiometer control of the intelligent vibration switch circuit, the automatic calibration and self -inspection of the vibration switch circuit at different frequencies can solve the problem of the complexity of vibration frequency debugging and frequency zone restrictions in existing technologies. The applicability and intelligence of the device.
Patent Information
- Application Number
- CN202411755614.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-01-28
AI Technical Summary
The existing vibration switch circuits need to be individually debugged at different vibration frequencies, which increases calibration complexity and labor costs, and the working frequency band of the solid vibration switch cannot meet the gain automatic control over a wide band range.
A intelligent vibration switch circuit is designed. The multi -level amplification method is used to combine the digital potentiometer to control the size of the digital potentiometer to achieve automatic channel switching and automatic phase adjustment. The calibration data and delay settings are stored through MCU storage to achieve automatic calibration and self -inspection.
Reduced electronic module varieties, improved applicability and intelligence, realized automatic gain control and phase adjustment, reduced labor costs, extended the service life of the equipment, and improved production efficiency and automatic maintenance capabilities in applications.
Smart Images

Figure CN119382684A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of switch circuits, and in particular to an intelligent vibration switch circuit. Background Art
[0002] Vibrating level switches are commonly used instruments in industrial control processes. The reliability of the switch is very important to the safety of industrial control. The switch is often used for high and low level alarms, feeding control, and preventing overflow of storage tanks.
[0003] In the industrial processes of mineral processing, material conveying system, fine chemical industry, etc., it is necessary to measure the high and low alarm or control signal of liquid and solid material level. At present, the commonly used tuning fork liquid level, vibrating rod, etc. drive the vibration of the vibrating body through piezoelectric ceramics, and use the resonance characteristics of the vibrating body. If the resonance frequency is reached, the maximum amplitude can be obtained. The vibration frequency of the solid material level switch is about 140-400Hz, while the vibration switch using interface measurement uses 400Hz; it can vibrate in the liquid and can distinguish whether it is in contact with solid materials.
[0004] However, current electronic modules basically require separate debugging for different vibration frequencies, or use different modules, which increases the complexity of calibrating each switch and requires more manpower costs. In addition, the operating frequency band of the solid vibration switch cannot meet the gain in a wider frequency band range, and the gain amplitude cannot be automatically controlled.
[0005] Based on this, the present invention designs an intelligent vibration switch circuit to solve the above problems. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, the present invention provides an intelligent vibration switch circuit.
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0008] An intelligent vibration switch circuit comprises a sensor module and a reference circuit module for generating a mid-level, wherein the sensor module comprises a signal input terminal and a signal output terminal, the signal output terminal of the sensor module is connected to a first signal input terminal of a signal secondary gain amplification module, and the signal output terminal of an MCU is connected to a second signal input terminal of the signal secondary gain amplification module through a signal primary gain module;
[0009] The two signal output ends of the signal secondary gain amplification module are respectively connected to the signal input ends with filtering channel one and filtering channel two, the signal output ends with filtering channel one and filtering channel two are respectively connected to the two signal input ends of the channel selection module, the signal output end of the channel selection module is connected to the signal input end of the MCU, the signal output end of the MCU is connected to the signal input end of the phase adjustment module, the signal output end of the phase adjustment module is connected to the signal input end of the peak sampling module, the signal output end of the peak sampling module is connected to the signal input end of the sensor module, and the power supply module is connected to the peak sampling module and the MCU, and provides power for them.
[0010] Furthermore, the primary signal amplification gain circuit includes a resistor R1, a resistor R2, a digital potentiometer R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a capacitor C1, a capacitor C2, a capacitor C3 and an operational amplifier U1A;
[0011] The positive electrode of the power supply is connected to one end of the resistor R4, the other end of the resistor R4 is connected to one end of the digital potentiometer R3 and one end of the resistor R1, the other end of the digital potentiometer R3 is connected to the slider of the digital potentiometer R3, the other end of the resistor R1 is connected to one end of the capacitor C2, one end of the resistor R7, and the non-inverting input end of the operational amplifier U1A, the other end of the capacitor C2, the other end of the resistor R7, and the output end of the operational amplifier U1A are connected to one end of the capacitor C3;
[0012] The other end of the capacitor C2, the other end of the resistor R7, the output end of the operational amplifier U1A, and one end of the capacitor C3 are all connected to the peak sampling module;
[0013] The other end of the capacitor C3 is connected to the signal secondary gain amplification module;
[0014] The negative pole of the power supply is connected to one end of the resistor R5, the other end of the resistor R5 is connected to the other end of the digital potentiometer R3 and one end of the resistor R2, the other end of the resistor R2 is connected to the inverting input end of the operational amplifier U1A, one end of the capacitor C1, and one end of the resistor R6, the other ends of the capacitor C1 and the resistor R6 are connected to a 1.65V power supply; the other end of the capacitor C3 is connected to the resistor R10, the other end of the resistor R10 is connected to a 1.65V power supply, the upper port of the operational amplifier U1A is grounded, and the lower port of the operational amplifier U1A is connected to VCC.
[0015] Furthermore, the signal secondary gain amplification module includes a resistor R10, a resistor R14, a capacitor C8, a resistor R15 and an operational amplifier U1B;
[0016] The other end of capacitor C3 is connected to one end of resistor R10 and the non-inverting input end of operational amplifier U1B, and the other end of resistor R13 is connected to a 1.65V power supply; the inverting input end of operational amplifier U1B is connected to one end of resistor R14 and one end of resistor R15, the other end of resistor R14 is connected to one end of capacitor C8, and the other end of capacitor C8 is connected to a 1.65V power supply, and the output end of operational amplifier U1B is connected to the other end of resistor R15, filter channel 1 4, and filter channel 2 5.
[0017] Furthermore, the band filter one channel includes a resistor R16, a resistor R17, a resistor R20, a capacitor C9, a capacitor C14, a capacitor C13 and an operational amplifier U3A;
[0018] One end of the resistor R20 is connected to the other end of the resistor R15 and the output end of the operational amplifier U1B, the other end of the resistor R20 is connected to one end of the capacitor C9 and the non-inverting input end of the operational amplifier U3A, the other end of the capacitor C9 is connected to a 1.65V power supply, the upper end of the operational amplifier U3A is connected to VCC, the inverting input end of the operational amplifier U3A is connected to one end of the capacitor C14 and one end of the resistor R17, the other end of the capacitor C14 is connected to one end of the resistor R16 and one end of the capacitor C13, the other end of the capacitor C13 is connected to the other end of the resistor R17 and the output end of the operational amplifier U3A, and the lower end of the operational amplifier U3A is grounded;
[0019] The other end of the capacitor C13 , the other end of the resistor R17 , and the output end of the operational amplifier U3A are all connected to the channel selection module 6 .
[0020] Furthermore, the second channel with filtering includes a resistor R18, a resistor R19, a resistor R21, a capacitor C10, a capacitor C11, a capacitor C12 and an operational amplifier U3B;
[0021] One end of the resistor R21 is connected to the other end of the resistor R15 and the output end of the operational amplifier U1B, the other end of the resistor R21 is connected to the non-inverting input end of the operational amplifier U3B and one end of the capacitor C10, the other end of the capacitor C10 is connected to a 1.65V power supply, the inverting input end of the operational amplifier U3B is connected to one end of the capacitor C11 and one end of the resistor R18, the other end of the capacitor C11 is connected to one end of the resistor R19 and one end of the capacitor C12, the other end of the resistor R19 is connected to a 1.65V power supply, and the other end of the resistor R18 and the other end of the capacitor C12 are connected to the output end of the operational amplifier U3B;
[0022] The other end of the resistor R18, the other end of the capacitor C12, and the output end of the operational amplifier U3B are all connected to the channel selection module.
[0023] Furthermore, the channel selection module is a switch S1; the other end of the capacitor C13, the other end of the resistor R17, and the output end of the operational amplifier U3A are all connected to the second port of the switch S1, the other end of the resistor R18, the other end of the capacitor C12, and the output end of the operational amplifier U3B are all connected to the third port of the switch S1, the fourth port of the switch S1 outputs a control signal, the fifth port and the eighth port of the switch S1 are both grounded, the first port and the sixth port of the switch S1 are both connected to VCC, and the seventh port of the switch S1 is connected to the phase adjustment module.
[0024] Furthermore, the phase adjustment module includes a digital potentiometer R22, a resistor R23, a capacitor C15, a capacitor C16 and an operational amplifier U4A, the seventh port of the switch S1 is connected to one end of the digital potentiometer R22, the other end of the digital potentiometer R22 is connected to one end of the capacitor C16 and the in-phase input end of the operational amplifier U4A, the other end of the capacitor C16 is connected to a 1.65V power supply, the inverting input end of the operational amplifier U4A is connected to one end of the resistor R23 and one end of the capacitor C15, the other end of the capacitor C15 is connected to the output end of the operational amplifier U4A, and the other end of the resistor R23 is connected to a 1.65V power supply; the other end of the capacitor C15 and the output end of the operational amplifier U4A are used to output signals.
[0025] Furthermore, the peak sampling module includes a resistor R24, a resistor R25, a resistor R26, a capacitor C17, a diode D2, an operational amplifier U5A and an operational amplifier U5B; one end of the resistor R26 is connected to the other end of the capacitor C2, the other end of the resistor R7, the output end of the operational amplifier U1A, and one end of the capacitor C3, the other end of the resistor R26 is connected to the non-inverting input end of the operational amplifier U5A, the inverting input end of the operational amplifier U5A is connected to one end of the resistor R25, the other end of the resistor R25 is connected to the inverting input end of the operational amplifier U5B and the output end of the operational amplifier U5B, the upper end of the operational amplifier U5A is grounded, the lower end of the operational amplifier U5A is connected to VCC, the output end of the operational amplifier U5A is electrically connected to one end of the diode D2, the other end of the diode D2 is connected to one end of the resistor R24, one end of the capacitor C17, and the non-inverting input end of the operational amplifier U5B, and the other end of the resistor R24 and the other end of the capacitor C17 are grounded.
[0026] Furthermore, the reference circuit module includes a polarity capacitor C4, a polarity capacitor C5, a resistor R8, a resistor R9 and an operational amplifier U4B;
[0027] One end of the polarity capacitor C5 is connected to VCC, VCC is connected to one end of the resistor R8 and the upper end of the operational amplifier U4B, the other end of the polarity capacitor C5 is connected to one end of the polarity capacitor C4, the other end of the resistor R8, one end of the resistor R9, and the non-inverting input end of the operational amplifier U4B, the other end of the polarity capacitor C4 and the other end of the resistor R9 are grounded, and the inverting input end of the operational amplifier U4B and the output end of the operational amplifier U4B are connected to a 1.65V power supply.
[0028] Furthermore, the first port and the seventeenth port of the MCU are both connected to a 3V power supply, the fifth port of the MCU is connected to one end of the inductor L1, the other end of the inductor L1 is connected to the 3V power supply, the fourth port of the MCU is connected to one end of the resistor R60 and one end of the capacitor C52, the other end of the resistor R60 is connected to the 3V power supply, the other end of the capacitor C52 is grounded, the thirty-first port of the MCU is connected to one end of the resistor R24, the other end of the resistor R24 is grounded, the twenty-eighth port of the MCU is connected to one end of the resistor R19, the other end of the resistor R19 is connected to one end of the capacitor C12, the other end of the capacitor C12 and the sixteenth port of the MCU are both grounded;
[0029] The second port of the MCU is connected to one end of the capacitor C13, one end of the crystal oscillator X1 is connected, and the other end of the capacitor C13 is grounded. The third port of the MCU is connected to one end of the capacitor C17 and the other end of the crystal oscillator X1, and the other end of the capacitor C17 is grounded.
[0030] Compared with the prior art, the present invention has the following beneficial effects: 1. The filtering method adopted by the electronic component of the present invention: a multi-stage amplification method, that is, a low-pass amplifier plus a high-pass amplifier is adopted to meet the gain of a wider frequency band;
[0031] 2. The present invention uses a digital potentiometer R3 to control the gain; realizes automatic switching of channels, uses two channels to meet a wider phase change range; uses a second digital potentiometer R22 to automatically adjust the phase change to obtain the best phase;
[0032] 3. The present invention adopts a band switch to set different switch delay action times for different structures. All calibration data, delay, vibration amplitude, gain setting value, phase value, and channel selection are automatically stored in the non-volatile memory of the MCU. Through regular self-inspection, it can be determined whether the technical performance of the instrument has deviated and whether recalibration is required.
[0033] 4. The present invention reduces the variety of electronic modules, improves the applicability of electronic modules, and improves the intelligence of electronic modules; improves the applicability of the whole machine application; facilitates the judgment of the reliability of the instrument and extends the practical life through self-diagnosis, thereby improving the production efficiency of the product and the speed and convenience of automatic maintenance in application. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A connection block diagram of an intelligent vibration switch circuit of the present invention;
[0035] Figure 2 A circuit diagram of an intelligent vibration switch circuit of the present invention;
[0036] Figure 3 A circuit diagram of a signal primary gain module of the present invention;
[0037] Figure 4 A circuit diagram of a signal secondary gain amplification module of the present invention;
[0038] Figure 5 A circuit diagram with a filtering channel of the present invention;
[0039] Figure 6 The circuit diagram of the present invention with two filtering channels;
[0040] Figure 7 A circuit diagram of a channel selection module of the present invention;
[0041] Figure 8 A circuit diagram of the phase adjustment module of the present invention;
[0042] Fig. 9 A circuit diagram of a peak sampling module of the present invention;
[0043] Fig.10 A circuit diagram of a reference circuit module of the present invention;
[0044] Fig.11 A circuit diagram of the MCU of the present invention;
[0045] Fig.12 A curve diagram of an intelligent vibration switch circuit of the present invention.
[0046] The numbers in the figure represent:
[0047] 1. Sensor module; 2. Signal primary gain module; 3. Signal secondary gain amplification module; 4. One channel with filter; 5. Two channels with filter; 6. Channel selection module; 7. MCU; 8. Phase adjustment module; 9. Peak sampling module; 10. Power supply module; 11. Reference circuit module. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0050] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0051] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0052] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0053] Embodiment 1: In some embodiments, please refer to the drawings of the specification Figure 1-Figure 11, an intelligent vibration switch circuit, comprising a sensor module 1 and a reference circuit module 11 for generating a mid-level (1.65V level), the sensor module 1 comprising a signal input end and a signal output end, the signal output end of the sensor module 1 is connected to the first signal input end of the signal secondary gain amplifier module 3, the signal output end of the MCU7 is connected to the second signal input end of the signal secondary gain amplifier module 3 through the signal primary gain module 2; the two signal output ends of the signal secondary gain amplifier module 3 are respectively connected to the signal input ends of the band filter channel 1 4 and the band filter channel 2 5, the signal output ends of the band filter channel 1 4 and the band filter channel 2 5 are respectively connected to the two signal input ends of the channel selection module 6, the signal output end of the channel selection module 6 is connected to the signal input end of the MCU7, the signal output end of the MCU7 is connected to the signal input end of the phase adjustment module 8, the signal output end of the phase adjustment module 8 is connected to the signal input end of the peak sampling module 9, the signal output end of the peak sampling module 9 is connected to the signal input end of the sensor module 1, the power supply module 10 is connected to the peak sampling module 9 and the MCU7, and provides power for them.
[0054] The non-volatile memory of the MCU 7 stores all calibration data, delay, vibration amplitude, gain setting value, phase value, and channel selection.
[0055] The MCU7 can realize the output of the switching relay, self-checking and automatic calibration, and delay setting of the switch sensitivity.
[0056] The primary signal amplification gain circuit 2 is used to simulate the input of a frequency signal and amplify it and input it into the signal secondary gain amplification module 3; the primary signal amplification gain circuit 2 is a low-pass signal amplifier, and the signal secondary gain amplification module 3 is a high-pass amplifier.
[0057] The primary signal amplification gain circuit 2 includes a resistor R1, a resistor R2, a digital potentiometer R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a capacitor C1, a capacitor C2, a capacitor C3 and an operational amplifier U1A;
[0058] The digital potentiometer R3 is used to control the size of the input signal;
[0059] The positive electrode of the power supply is connected to one end of the resistor R4, the other end of the resistor R4 is connected to one end of the digital potentiometer R3 and one end of the resistor R1, the other end of the digital potentiometer R3 is connected to the slider of the digital potentiometer R3, the other end of the resistor R1 is connected to one end of the capacitor C2, one end of the resistor R7, and the non-inverting input end of the operational amplifier U1A, the other end of the capacitor C2, the other end of the resistor R7, and the output end of the operational amplifier U1A are connected to one end of the capacitor C3;
[0060] The other end of the capacitor C2, the other end of the resistor R7, the output end of the operational amplifier U1A, and one end of the capacitor C3 are all connected to the peak sampling module 9;
[0061] The other end of the capacitor C3 is connected to the signal secondary gain amplification module 3;
[0062] The negative pole of the power supply is connected to one end of the resistor R5, the other end of the resistor R5 is connected to the other end of the digital potentiometer R3 and one end of the resistor R2, the other end of the resistor R2 is connected to the inverting input end of the operational amplifier U1A, one end of the capacitor C1, and one end of the resistor R6, and the other ends of the capacitor C1 and the resistor R6 are connected to a 1.65V power supply; the other end of the capacitor C3 is connected to the resistor R10, and the other end of the resistor R10 is connected to a 1.65V power supply, the upper port of the operational amplifier U1A is grounded, and the lower port of the operational amplifier U1A is connected to VCC.
[0063] The operational amplifiers used in the present invention are all of the AD8532AR type.
[0064] This circuit can standardize the input AC voltage signal of the piezoelectric ceramic into an AC signal with a fixed amplitude by adjusting the value of the digital potentiometer R3.
[0065] The signal secondary gain amplification module 3 includes a resistor R10, a resistor R14, a capacitor C8, a resistor R15 and an operational amplifier U1B;
[0066] The other end of capacitor C3 is connected to one end of resistor R10 and the non-inverting input end of operational amplifier U1B, and the other end of resistor R13 is connected to a 1.65V power supply; the inverting input end of operational amplifier U1B is connected to one end of resistor R14 and one end of resistor R15, the other end of resistor R14 is connected to one end of capacitor C8, and the other end of capacitor C8 is connected to a 1.65V power supply, and the output end of operational amplifier U1B is connected to the other end of resistor R15, filter channel 1 4, and filter channel 2 5.
[0067] The reference circuit module 11 includes a polar capacitor C4, a polar capacitor C5, a resistor R8, a resistor R9 and an operational amplifier U4B;
[0068] One end of the polarity capacitor C5 is connected to VCC, VCC is connected to one end of the resistor R8 and the upper end of the operational amplifier U4B, the other end of the polarity capacitor C5 is connected to one end of the polarity capacitor C4, the other end of the resistor R8, one end of the resistor R9, and the non-inverting input end of the operational amplifier U4B, the other end of the polarity capacitor C4 and the other end of the resistor R9 are grounded, and the inverting input end of the operational amplifier U4B and the output end of the operational amplifier U4B are connected to a 1.65V power supply.
[0069] Band filter one channel 4 includes resistor R16, resistor R17, resistor R20, capacitor C9, capacitor C14, capacitor C13 and operational amplifier U3A;
[0070] One end of the resistor R20 is connected to the other end of the resistor R15 and the output end of the operational amplifier U1B, the other end of the resistor R20 is connected to one end of the capacitor C9 and the non-inverting input end of the operational amplifier U3A, the other end of the capacitor C9 is connected to a 1.65V power supply, the upper end of the operational amplifier U3A is connected to VCC, the inverting input end of the operational amplifier U3A is connected to one end of the capacitor C14 and one end of the resistor R17, the other end of the capacitor C14 is connected to one end of the resistor R16 and one end of the capacitor C13, the other end of the capacitor C13 is connected to the other end of the resistor R17 and the output end of the operational amplifier U3A, and the lower end of the operational amplifier U3A is grounded;
[0071] The other end of the capacitor C13 , the other end of the resistor R17 , and the output end of the operational amplifier U3A are all connected to the channel selection module 6 .
[0072] The second filter channel 5 includes a resistor R18, a resistor R19, a resistor R21, a capacitor C10, a capacitor C11, a capacitor C12 and an operational amplifier U3B;
[0073] One end of the resistor R21 is connected to the other end of the resistor R15 and the output end of the operational amplifier U1B, the other end of the resistor R21 is connected to the non-inverting input end of the operational amplifier U3B and one end of the capacitor C10, the other end of the capacitor C10 is connected to a 1.65V power supply, the inverting input end of the operational amplifier U3B is connected to one end of the capacitor C11 and one end of the resistor R18, the other end of the capacitor C11 is connected to one end of the resistor R19 and one end of the capacitor C12, the other end of the resistor R19 is connected to a 1.65V power supply, and the other end of the resistor R18 and the other end of the capacitor C12 are connected to the output end of the operational amplifier U3B;
[0074] The other end of the resistor R18 , the other end of the capacitor C12 , and the output end of the operational amplifier U3B are all connected to the channel selection module 6 .
[0075] In the second filter channel 5, the capacitor C13 and the capacitor C14 in the first filter channel 4 are replaced by the capacitor C11 and the capacitor C12; the resistor R16 and the resistor R17 are replaced by the resistor R19 and the resistor R18; different center frequencies and bandwidths can be obtained.
[0076] The channel selection module 6 is a switch S1;
[0077] The other end of the capacitor C13, the other end of the resistor R17, and the output end of the operational amplifier U3A are all connected to the second port of the switch S1, the other end of the resistor R18, the other end of the capacitor C12, and the output end of the operational amplifier U3B are all connected to the third port of the switch S1, the fourth port of the switch S1 outputs a control signal, the fifth port and the eighth port of the switch S1 are both grounded, the first port and the sixth port of the switch S1 are both connected to VCC, and the seventh port of the switch S1 is connected to the phase adjustment module 8.
[0078] The switch S1 is a MAX319CJA analog switch.
[0079] The phase adjustment module 8 includes a digital potentiometer R22, a resistor R23, a capacitor C15, a capacitor C16 and an operational amplifier U4A. The seventh port of the switch S1 is connected to one end of the digital potentiometer R22, the other end of the digital potentiometer R22 is connected to one end of the capacitor C16 and the non-inverting input end of the operational amplifier U4A, the other end of the capacitor C16 is connected to a 1.65V power supply, the inverting input end of the operational amplifier U4A is connected to one end of the resistor R23 and one end of the capacitor C15, the other end of the capacitor C15 is connected to the output end of the operational amplifier U4A, and the other end of the resistor R23 is connected to a 1.65V power supply; the other end of the capacitor C15 and the output end of the operational amplifier U4A are used to output signals.
[0080] The peak sampling module 9 is used to measure the magnitude of the signal;
[0081] The peak sampling module 9 includes a resistor R24, a resistor R25, a resistor R26, a capacitor C17, a diode D2, an operational amplifier U5A and an operational amplifier U5B;
[0082] One end of the resistor R26 is connected to the other end of the capacitor C2, the other end of the resistor R7, the output end of the operational amplifier U1A, and one end of the capacitor C3; the other end of the resistor R26 is connected to the non-inverting input end of the operational amplifier U5A; the inverting input end of the operational amplifier U5A is connected to one end of the resistor R25; the other end of the resistor R25 is connected to the inverting input end of the operational amplifier U5B and the output end of the operational amplifier U5B; the upper end of the operational amplifier U5A is grounded; the lower end of the operational amplifier U5A is connected to VCC; the output end of the operational amplifier U5A is electrically connected to one end of the diode D2; the other end of the diode D2 is connected to one end of the resistor R24, one end of the capacitor C17, and the non-inverting input end of the operational amplifier U5B; the other end of the resistor R24 and the other end of the capacitor C17 are grounded;
[0083] By controlling the channel selection through the channel selection module 6, the signal of one of the channels can be output. By controlling the digital potentiometer R22 in the figure, the output phase can be changed to obtain a better output effect.
[0084] Lag phase: Arctg = R22 × 2πfC15.
[0085] Where f is the operating frequency.
[0086] The first port and the seventeenth port of MCU7 are both connected to a 3V power supply, the fifth port of MCU7 is connected to one end of the inductor L1, the other end of the inductor L1 is connected to the 3V power supply, the fourth port of MCU7 is connected to one end of the resistor R60 and one end of the capacitor C52, the other end of the resistor R60 is connected to the 3V power supply, the other end of the capacitor C52 is grounded, the thirty-first port of the MCU7 is connected to one end of the resistor R24, the other end of the resistor R24 is grounded, the twenty-eighth port of the MCU7 is connected to one end of the resistor R19, the other end of the resistor R19 is connected to one end of the capacitor C12, the other end of the capacitor C12 and the sixteenth port of MCU7 are both grounded;
[0087] The second port of MCU7 is connected to one end of capacitor C13 and one end of crystal oscillator X1, and the other end of capacitor C13 is grounded. The third port of MCU7 is connected to one end of capacitor C17 and the other end of crystal oscillator X1, and the other end of capacitor C17 is grounded.
[0088] like Fig.11 As shown, U5 includes 8 pins, the first pin is connected to the seventh pin, the second pin is connected to the 3V power supply, the third pin is grounded, the fourth and fifth pins use I2C communication, the sixth pin is connected to one end of R61, and the other end of R61 is grounded; U5 here is equivalent to the digital potentiometer R3 in the primary signal amplification gain circuit 2. The function of the digital potentiometer R3 to control the signal gain through I2C communication is realized.
[0089] U7 includes 8 pins, the second pin is connected to a 3V power supply, the fourth and fifth pins use I2C communication, the sixth pin is connected to one end of R62, and the other end of R62 is connected to a 3V power supply. U7 here is equivalent to the resistor R1 in the primary signal amplification gain circuit 2.
[0090] The present invention realizes the function of controlling the signal gain by the digital potentiometer R3 and the resistor R1 through I2C communication.
[0091] Embodiment 2: In some embodiments, Fig.11As shown, as a preferred embodiment of the present invention, MCU7 can determine the frequency range of the input signal according to the frequency of the vibration signal and the output amplitude, and then decide which channel to use through channel selection. MCU7 can also determine whether the vibration switch is a tuning fork vibration switch or a vibrating rod vibration switch.
[0092] Different channels can obtain different bandwidths and center frequencies by using different bandpass parameters;
[0093] The center frequency is calculated as:
[0094]
[0095] C f =C13=C14,
[0096]
[0097] A=2Q 2
[0098] Where f0 is the center frequency of the bandpass filter, C f Select a capacitor value with a specific specification, A is the gain of the bandpass filter, and Q is the bandpass quality factor of the width of the bandpass divided by the center frequency.
[0099] Embodiment 3: In some embodiments, please refer to the drawings of the specification Fig.12 , Fig.12 The upper and lower figures in the middle show the relationship between frequency and gain and frequency and phase after using different bandpass filter channels. The smooth curve in the figure is the frequency change curve of the tuning fork vibration, and the looped curve is the frequency change curve of the solid vibrating rod.
[0100] The first vertical line from left to right indicates that the frequency of the tuning fork vibration is 140Hz, which means the circuit's operating frequency is 140Hz, the gain is 195.7, and the phase lag is about 15 degrees, that is, the input and output are basically in phase, and resonance is easy to achieve;
[0101] The second vertical line from left to right indicates that the operating frequency of the solid vibrator is about 380 Hz, the operating frequency of the interface is 350 Hz, the gain is 132, and the phase lag is 10 degrees, which makes it easy to achieve resonance.
[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. That is, any equivalent changes and modifications made according to the content of the patent application scope of the present invention should belong to the technical scope of the present invention.
Claims
1. An intelligent vibration switch circuit, characterized in that: it comprises a sensor module (1) and a reference circuit module (11) for generating a mid-level, the sensor module (1) comprising a signal input end and a signal output end, the signal output end of the sensor module (1) is connected to a first signal input end of a signal secondary gain amplifier module (3), and the signal output end of an MCU (7) is connected to a second signal input end of the signal secondary gain amplifier module (3) via a signal primary gain module (2); The two signal output ends of the signal secondary gain amplification module (3) are respectively connected to the signal input ends of the first filter channel (4) and the second filter channel (5); the signal output ends of the first filter channel (4) and the second filter channel (5) are respectively connected to the two signal input ends of the channel selection module (6); the signal output end of the channel selection module (6) is connected to the signal input end of the MCU (7); the signal output end of the MCU (7) is connected to the signal input end of the phase adjustment module (8); the signal output end of the phase adjustment module (8) is connected to the signal input end of the peak sampling module (9); the signal output end of the peak sampling module (9) is connected to the signal input end of the sensor module (1); and the power supply module (10) is connected to the peak sampling module (9) and the MCU (7) and provides power thereto.
2. The intelligent vibration switch circuit according to claim 1, characterized in that: The primary signal amplification gain circuit (2) comprises a resistor (R1), a resistor (R2), a digital potentiometer (R3), a resistor (R4), a resistor (R5), a resistor (R6), a resistor (R7), a capacitor (C1), a capacitor (C2), a capacitor (C3) and an operational amplifier (U1A); The positive electrode of the power supply is connected to one end of the resistor (R4), the other end of the resistor (R4) is connected to one end of the digital potentiometer (R3) and one end of the resistor (R1), the other end of the digital potentiometer (R3) is connected to the slider of the digital potentiometer (R3), the other end of the resistor (R1) is connected to one end of the capacitor (C2), one end of the resistor (R7), and the non-inverting input end of the operational amplifier (U1A), and the other end of the capacitor (C2), the other end of the resistor (R7), and the output end of the operational amplifier (U1A) are connected to one end of the capacitor (C3); The other end of the capacitor (C2), the other end of the resistor (R7), the output end of the operational amplifier (U1A), and one end of the capacitor (C3) are all connected to the peak sampling module (9); The other end of the capacitor (C3) is connected to the signal secondary gain amplification module (3); The negative pole of the power supply is connected to one end of the resistor (R5), the other end of the resistor (R5) is connected to the other end of the digital potentiometer (R3) and one end of the resistor (R2), the other end of the resistor (R2) is connected to the inverting input end of the operational amplifier (U1A), one end of the capacitor (C1), and one end of the resistor (R6), and the other ends of the capacitor (C1) and the resistor (R6) are connected to a 1.65V power supply; the other end of the capacitor (C3) is connected to the resistor (R10), and the other end of the resistor (R10) is connected to the 1.65V power supply, the upper port of the operational amplifier (U1A) is grounded, and the lower port of the operational amplifier (U1A) is connected to VCC.
3. The intelligent vibration switch circuit according to claim 2, characterized in that: The signal secondary gain amplification module (3) comprises a resistor (R10), a resistor (R14), a capacitor (C8), a resistor (R15) and an operational amplifier (U1B); The other end of the capacitor (C3) is connected to one end of the resistor (R10) and the non-inverting input end of the operational amplifier (U1B), and the other end of the resistor (R13) is connected to a 1.65V power supply; the inverting input end of the operational amplifier (U1B) is connected to one end of the resistor (R14) and one end of the resistor (R15), the other end of the resistor (R14) is connected to one end of the capacitor (C8), the other end of the capacitor (C8) is connected to a 1.65V power supply, and the output end of the operational amplifier (U1B) is connected to the other end of the resistor (R15), the first filter channel (4), and the second filter channel (5).
4. The intelligent vibration switch circuit according to claim 3, characterized in that: The band filter channel (4) includes a resistor (R16), a resistor (R17), a resistor (R20), a capacitor (C9), a capacitor (C14), a capacitor (C13) and an operational amplifier (U3A); One end of the resistor (R20) is connected to the other end of the resistor (R15) and the output end of the operational amplifier (U1B); the other end of the resistor (R20) is connected to one end of the capacitor (C9) and the non-inverting input end of the operational amplifier (U3A); the other end of the capacitor (C9) is connected to a 1.65V power supply; the upper end of the operational amplifier (U3A) is connected to VCC; the inverting input end of the operational amplifier (U3A) is connected to one end of the capacitor (C14) and one end of the resistor (R17); the other end of the capacitor (C14) is connected to one end of the resistor (R16) and one end of the capacitor (C13); the other end of the capacitor (C13) is connected to the other end of the resistor (R17) and the output end of the operational amplifier (U3A); and the lower end of the operational amplifier (U3A) is grounded; The other end of the capacitor (C13), the other end of the resistor (R17), and the output end of the operational amplifier (U3A) are all connected to the channel selection module (6).
5. The intelligent vibration switch circuit according to claim 4, characterized in that: The second channel with filter (5) includes a resistor (R18), a resistor (R19), a resistor (R21), a capacitor (C10), a capacitor (C11), a capacitor (C12) and an operational amplifier (U3B); One end of the resistor (R21) is connected to the other end of the resistor (R15) and the output end of the operational amplifier (U1B); the other end of the resistor (R21) is connected to the non-inverting input end of the operational amplifier (U3B) and one end of the capacitor (C10); the other end of the capacitor (C10) is connected to a 1.65V power supply; the inverting input end of the operational amplifier (U3B) is connected to one end of the capacitor (C11) and one end of the resistor (R18); the other end of the capacitor (C11) is connected to one end of the resistor (R19) and one end of the capacitor (C12); the other end of the resistor (R19) is connected to a 1.65V power supply; the other end of the resistor (R18) and the other end of the capacitor (C12) are connected to the output end of the operational amplifier (U3B); The other end of the resistor (R18), the other end of the capacitor (C12), and the output end of the operational amplifier (U3B) are all connected to the channel selection module (6).
6. The intelligent vibration switch circuit according to claim 5, characterized in that: The channel selection module (6) is a switch (S1); the other end of the capacitor (C13), the other end of the resistor (R17), and the output end of the operational amplifier (U3A) are all connected to the second port of the switch (S1); the other end of the resistor (R18), the other end of the capacitor (C12), and the output end of the operational amplifier (U3B) are all connected to the third port of the switch (S1); the fourth port of the switch (S1) outputs a control signal; the fifth port and the eighth port of the switch (S1) are both grounded; the first port and the sixth port of the switch (S1) are both connected to VCC; and the seventh port of the switch (S1) is connected to the phase adjustment module (8).
7. The intelligent vibration switch circuit according to claim 6, characterized in that: The phase adjustment module (8) comprises a digital potentiometer (R22), a resistor (R23), a capacitor (C15), a capacitor (C16) and an operational amplifier (U4A); the seventh port of the switch (S1) is connected to one end of the digital potentiometer (R22); the other end of the digital potentiometer (R22) is connected to one end of the capacitor (C16) and the non-inverting input end of the operational amplifier (U4A); the other end of the capacitor (C16) is connected to a 1.65V power supply; the inverting input end of the operational amplifier (U4A) is connected to one end of the resistor (R23) and one end of the capacitor (C15); the other end of the capacitor (C15) is connected to the output end of the operational amplifier (U4A); the other end of the resistor (R23) is connected to the 1.65V power supply; the other end of the capacitor (C15) and the output end of the operational amplifier (U4A) are used to output signals.
8. The intelligent vibration switch circuit according to claim 7, characterized in that: The peak sampling module (9) includes a resistor (R24), a resistor (R25), a resistor (R26), a capacitor (C17), a diode (D2), an operational amplifier (U5A) and an operational amplifier (U5B); One end of the resistor (R26) is connected to the other end of the capacitor (C2), the other end of the resistor (R7), the output end of the operational amplifier (U1A), and one end of the capacitor (C3); the other end of the resistor (R26) is connected to the non-inverting input end of the operational amplifier (U5A); the inverting input end of the operational amplifier (U5A) is connected to one end of the resistor (R25); the other end of the resistor (R25) is connected to the inverting input end of the operational amplifier (U5B) and the output end of the operational amplifier (U5B); the upper end of the operational amplifier (U5A) is grounded; the lower end of the operational amplifier (U5A) is connected to VCC; the output end of the operational amplifier (U5A) is electrically connected to one end of the diode (D2); the other end of the diode (D2) is connected to one end of the resistor (R24), one end of the capacitor (C17), and the non-inverting input end of the operational amplifier (U5B); the other end of the resistor (R24) and the other end of the capacitor (C17) are grounded.
9. The intelligent vibration switch circuit according to claim 8, characterized in that: The reference circuit module (11) includes a polar capacitor (C4), a polar capacitor (C5), a resistor (R8), a resistor (R9) and an operational amplifier (U4B); One end of the polar capacitor (C5) is connected to VCC, VCC is connected to one end of the resistor (R8) and the upper end of the operational amplifier (U4B), the other end of the polar capacitor (C5) is connected to one end of the polar capacitor (C4), the other end of the resistor (R8), one end of the resistor (R9), and the non-inverting input end of the operational amplifier (U4B), the other end of the polar capacitor (C4) and the other end of the resistor (R9) are grounded, and the inverting input end of the operational amplifier (U4B) and the output end of the operational amplifier (U4B) are connected to a 1.65V power supply.
10. The intelligent vibration switch circuit according to claim 9, characterized in that: The first port and the seventeenth port of the MCU (7) are both connected to a 3V power supply, the fifth port of the MCU (7) is connected to one end of the inductor (L1), the other end of the inductor (L1) is connected to the 3V power supply, the fourth port of the MCU (7) is connected to one end of a resistor (R60) and one end of a capacitor (C52), the other end of the resistor (R60) is connected to the 3V power supply, the other end of the capacitor (C52) is grounded, the thirty-first port of the MCU (7) is connected to one end of a resistor (R24), the other end of the resistor (R24) is grounded, the twenty-eighth port of the MCU (7) is connected to one end of a resistor (R19), the other end of the resistor (R19) is connected to one end of a capacitor (C12), the other end of the capacitor (C12) and the sixteenth port of the MCU (7) are both grounded; The second port of the MCU (7) is connected to one end of the capacitor (C13), one end of the crystal oscillator (X1) is connected, and the other end of the capacitor (C13) is grounded; the third port of the MCU (7) is connected to one end of the capacitor (C17) and the other end of the crystal oscillator (X1), and the other end of the capacitor (C17) is grounded.