Horizontal switch tilt angle sensor circuit
By designing a horizontal switch inclination sensor circuit, the shortcomings of existing single-axis inclination sensors in terms of measurement range and power supply stability are solved, and the power supply stability and output stability are achieved to adapt to multiple input voltages, meeting the measurement requirements of some applications.
Patent Information
- Application Number
- CN202422166618.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2034-09-04
AI Technical Summary
Existing single-axis inclination sensors have shortcomings in measuring range and power supply stability and cannot fully meet the measurement requirements of certain applications.
A horizontal switch inclination sensor circuit is designed, including power supply circuit, inclination acquisition circuit, main control circuit, serial communication circuit, digital-to-analog conversion circuit, current converter and output protection circuit, and wide voltage input and linear voltage stabilization chip are used to improve power supply stability, and the output is more stable through digital-to-analog conversion and current conversion.
It realizes the ability to adapt to multiple input voltages, improves the stability and reliability of the power module, extends the service life of the product, and makes the output more stable through current conversion and protection circuits.
Smart Images

Figure CN223037150U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to a horizontal switch inclination sensor circuit. Background Art
[0002] With the continuous development of production and science, angle measurement is more and more widely used in various fields such as industrial scientific research, engineering machinery, etc. With the continuous improvement of technical level and measurement accuracy, the market demand for sensors is also increasing. An inclination sensor is used to measure the change in inclination relative to the horizontal plane. At present, the single-axis inclination sensor on the market is a high-precision sensing device dedicated to accurately measuring the change in the inclination angle of an object in a single specified axial direction. The core working principle of this sensor is to utilize the earth's gravity field and various physical effects, such as gravitational acceleration, capacitance effect, microelectromechanical system (MEMS) technology, magnetoresistive effect, etc. By precisely measuring the change in the component of the object's gravity in a specific axial direction, this angle change is then converted into an electrical signal that is easy to measure and process. The existing single-axis inclination sensors cannot fully meet the measurement requirements of some application sites due to their measurement range and power supply stability defects. Summary of the Invention
[0003] The technical problem to be solved by the utility model is to provide a horizontal switch inclination sensor circuit in view of the above-mentioned deficiencies of the prior art.
[0004] The technical solution for the utility model to solve the above technical problem is as follows: A horizontal switch inclination sensor circuit includes a power supply circuit, an inclination acquisition circuit, a main control circuit, a serial communication circuit, a digital-to-analog conversion circuit, a current converter, and an output protection circuit. The input end of the power supply circuit is connected to an external power supply, and the output end of the power supply circuit is electrically connected to the inclination acquisition circuit, the main control circuit, the serial communication circuit, the digital-to-analog conversion circuit, the current converter, and the output protection circuit respectively. The signal output end of the inclination acquisition circuit is electrically connected to the signal input end of the main control circuit. The signal output end of the main control circuit is electrically connected to the input end of the digital-to-analog conversion circuit. The output end of the digital-to-analog conversion circuit is electrically connected to the input end of the current converter and the output protection circuit. The output end of the current converter and the output protection circuit outputs a detection signal externally.
[0005] The beneficial effects of the present utility model are as follows: For the horizontal switch inclination sensor circuit of the present utility model, the power supply circuit is used to achieve wide-voltage input, which can adapt to various input voltages and better meet different market demands, improve the stability and reliability of the power supply module and the service life of the product. The induction signal is collected through the inclination acquisition circuit, converted by the digital-to-analog conversion circuit after being processed by the main control circuit, and voltage-to-current conversion is performed through the current converter and the output protection circuit, while the output is protected, making the output more stable.
[0006] Based on the above technical solutions, the present utility model can be further improved as follows:
[0007] Further: The power supply circuit includes a TVS tube T1, a capacitor C1, a diode D1, an inductor L1, an inductor L2, a capacitor C2, a capacitor C3, a capacitor C4, a resistor R1, a resistor R2, a linear voltage regulator chip U1, a resistor R3, a resistor R4, a capacitor C5, a first power output circuit, a second power output circuit, and a third power output circuit. The TVS tube T1 and the capacitor C1 are connected in parallel between the positive pole of the external power supply and the ground. The positive pole of the external power supply is electrically connected to the positive pole of the diode D1. An inductor L1, a capacitor C2, and an inductor L2 are sequentially connected in series between the negative pole of the diode D1 and the ground. The capacitor C3 and the capacitor C4 are respectively connected in parallel with the capacitor C2. The resistor R1 and the resistor R2 are connected in series and then connected in parallel with the capacitor C4. The common end of the inductor L1 and the capacitor C2 is electrically connected to the input end of the linear voltage regulator chip U1. The common end of the resistor R1 and the resistor R2 is electrically connected to the enable end of the linear voltage regulator chip U1. The grounding end of the linear voltage regulator chip U1 is grounded. A resistor R3 and a resistor R4 are connected in series between the output end of the linear voltage regulator chip U1 and the ground, and the common end of the resistor R3 and the resistor R4 is electrically connected to the feedback adjustment end of the linear voltage regulator chip U1. A capacitor C5 is electrically connected between the output end of the linear voltage regulator chip U1 and the ground. The output end of the linear voltage regulator chip U1 is respectively electrically connected to the input ends of the first power output circuit, the second power output circuit, and the third power output circuit. The output end of the first power output circuit is electrically connected to the power input end of the digital-to-analog conversion circuit. The output end of the second power output circuit is electrically connected to the power input ends of the inclination acquisition circuit, the current converter, and the output protection circuit. The output end of the third power output circuit is respectively electrically connected to the power input ends of the main control circuit and the serial communication circuit.
[0008] The beneficial effects of the above further solution are as follows: The power supply circuit uses wide-voltage input. T1 is a TVS tube that can prevent damage to the circuit caused by electrostatic surges. D1 is an anti-reverse connection diode. L1 is a filter inductor. C2 and C3 are filter capacitors. U1 is a linear voltage regulator. C4 is a chip power input filter capacitor. R1 and R2 play a role in current limiting and protection. R3 and R4 are resistor voltage dividers to adjust the output voltage. C5 is a filter capacitor to make the output voltage more stable.
[0009] Further: The first power output circuit includes resistor R5, triode Q1, triode Q2, resistor R6, capacitor C6, bidirectional diode D2, triode Q3, reverse voltage regulator diode TL1, capacitor C7, resistor R7, resistor R8, and capacitor C8. The output terminal of the linear voltage regulator chip U1 is electrically connected to the emitter of the triode Q1 and the collector of the triode Q3 respectively. The collector of the triode Q1 is grounded through the resistor R6. The base of the triode Q1 is electrically connected to the emitter of the triode Q2. The emitter of the triode Q2 is electrically connected to the collector of the triode Q3 through the resistor R5. The base of the triode Q2 is electrically connected to the collector of the triode Q1. The collector of the triode Q2 is grounded through the capacitor C6. A bidirectional diode D2 is electrically connected between the collector and the emitter of the triode Q3. The base of the triode Q3 is electrically connected to the collector of the triode Q2. The base of the triode Q3 is electrically connected to the cathode of the reverse voltage regulator diode TL1. The anode of the reverse voltage regulator diode TL1 is grounded. A capacitor C7 is electrically connected between the base of the triode Q3 and the reference terminal of the reverse voltage regulator diode TL1. A resistor R7 and a resistor R8 are connected in series between the emitter of the triode Q3 and the ground. The common terminal of the resistor R7 and the resistor R8 is electrically connected to the reference terminal of the reverse voltage regulator diode TL1. The emitter of the triode Q3 is grounded through the capacitor C8. The output terminal of the triode Q3 is electrically connected to the power input terminal of the digital-to-analog conversion circuit.
[0010] The beneficial effects of the above further solution are as follows: The reverse voltage regulator diode TL1 adjustable precision shunt regulator is used to output 5V voltage to provide the input voltage for the digital-to-analog conversion circuit. The output voltage is changed by adjusting the voltage divider formed by the resistors R7 and R8. C8 is a filter capacitor to make its output voltage more stable.
[0011] Further: The horizontal switch tilt sensor circuit further includes a power supply monitoring circuit. The input terminal of the power supply monitoring circuit is electrically connected to the output terminal of the first power output circuit. The output terminal of the power supply monitoring circuit is electrically connected to the monitoring voltage input terminal of the main control circuit.
[0012] The beneficial effects of the above further solution are as follows: By setting the power supply monitoring circuit to monitor whether the power supply voltage of the single-chip microcomputer is normal, the single-chip microcomputer can operate stably.
[0013] Further: The power supply monitoring circuit includes a resistor R10, a resistor R11, a resistor R12, a resistor R13, and a capacitor C13. The resistor R12 and the resistor R11 are connected in series between the output terminal of the first power supply output circuit and the ground. The common terminal of the resistor R12 and the resistor R11 is electrically connected to the common terminal of the inductor L1 and the capacitor C2. The resistor R13 and the capacitor C13 are connected in series between the common terminal of the resistor R12 and the resistor R11 and the ground. The common terminal of the resistor R13 and the capacitor C13 is electrically connected to the monitoring voltage input terminal of the main control circuit.
[0014] The beneficial effects of the above further solution are as follows: The input voltage of the PA1 pin of the main control circuit is adjusted by the resistor divider formed by the resistor R10 and the resistor R11. R13 is a current-limiting resistor to prevent the components of the main control circuit from being damaged due to excessive current.
[0015] Further: The tilt angle acquisition circuit uses a digital gyroscope chip of model ISM330DHCXT.
[0016] Further: The horizontal switch tilt angle sensor circuit further includes a monitoring and reset circuit. The power supply input terminal of the monitoring and reset circuit is electrically connected to the output terminal of the third power supply output circuit. The signal output terminal of the monitoring and reset circuit is electrically connected to the reset input terminal of the main control circuit.
[0017] The beneficial effects of the above further solution are as follows: The monitoring and reset circuit is used to monitor and reset the main control circuit, preventing the program of the main control circuit from running wild and being able to reset the system and restore its function.
[0018] Further: The current converter and the output protection circuit include a magnetic bead FB1, a capacitor C31, a resistor R35, a resistor R36, a diode D3, a current conversion chip U8, a capacitor C32, a capacitor C33, a resistor R37, a resistor R38, a resistor R39, a resistor R40, a triode Q6, a MOS transistor Q7, a resistor R41, a diode D4, a capacitor C34, a capacitor C35, a capacitor C36, a resistor R42, and a reverse voltage stabilizing diode T2. A series connection of the magnetic bead FB1 and the capacitor C31 is provided between the output terminal of the second power supply output circuit and the ground. The common terminal of the magnetic bead FB1 and the capacitor C31 is electrically connected to the adjustment terminal of the current conversion chip U8. The resistor R35 is electrically connected between the adjustment power supply terminal and the adjustment induction signal terminal of the current conversion chip U8. The signal input terminal of the current conversion chip U8 is electrically connected to the negative electrode of the diode D3 through the resistor R36. The positive electrode of the diode D3 is grounded. The negative electrode of the diode D3 is electrically connected to the output terminal of the digital-to-analog conversion circuit. The ground terminal of the current conversion chip U8 is grounded. The current gain setting terminal of the current conversion chip U8 is grounded through the resistor R37. The drive terminal of the current conversion chip U8 is electrically connected to the collector of the triode Q6 and the gate of the MOS transistor Q7 respectively. The drain of the MOS transistor Q7 is grounded through the capacitor C34. A series connection of the resistor R41, the diode D4, and the capacitor C36 is provided in sequence between the drain of the MOS transistor Q7 and the ground. The negative electrode of the diode D4 serves as the output terminal to output a detection signal externally. The capacitor C35, the resistor R42, and the reverse voltage stabilizing diode T2 are connected in parallel with the capacitor C36. The source of the MOS transistor Q7 is electrically connected to the base of the triode Q6. The resistor R40 is electrically connected between the base and the emitter of the triode Q6. The base of the triode Q6 is electrically connected to the source of the MOS transistor Q7. A series connection of the resistor R38 and the capacitor C33 is provided between the error indication terminal of the current conversion chip U8 and the ground. The common terminal of the resistor R38 and the capacitor C33 is grounded through the capacitor C32. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the positive input terminal of the current conversion chip U8. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the common terminal of the inductor L1 and the capacitor C2. The output enable terminal of the current conversion chip U8 is grounded through the resistor R39.
[0019] The beneficial effects of the above further solution are as follows: Through the amplification and linear conversion of the internal circuit, the output voltage of the digital-to-analog conversion circuit is converted into current by the current conversion chip U8, and a protection circuit is provided for the output. D4 is a rectifier diode, and C35 and C36 are filter capacitors, making the output current more stable. The reverse voltage stabilizing diode T2 is a TVS tube, preventing the circuit from being damaged due to the instantaneous voltage impact at the port. Description of the Drawings
[0020] Figure 1 Schematic diagram of the structure of the horizontal switch tilt sensor circuit according to an embodiment of the present utility model;
[0021] Figure 2 Schematic diagram of the power supply circuit according to an embodiment of the present utility model;
[0022] Figure 3 Schematic diagram of the power supply monitoring circuit according to an embodiment of the present utility model;
[0023] Figure 4 Schematic diagram of the tilt angle acquisition circuit according to an embodiment of the present utility model;
[0024] Figure 5 Schematic diagram of the main control circuit according to an embodiment of the present utility model;
[0025] Figure 6 Schematic diagram of the monitoring and reset circuit according to an embodiment of the present utility model;
[0026] Figure 7 Schematic diagram of the serial port communication circuit according to an embodiment of the present utility model;
[0027] Figure 8 Schematic diagram of the digital-to-analog conversion circuit according to an embodiment of the present utility model;
[0028] Figure 9 Schematic diagram of the current converter and output protection circuit according to an embodiment of the present utility model. Detailed implementation manners
[0029] The principles and features of the present utility model are described below with reference to the accompanying drawings. The examples given are only used to explain the present utility model and are not intended to limit the scope of the present utility model.
[0030] As Figure 1 shown, a horizontal switch tilt sensor circuit includes a power supply circuit, a tilt angle acquisition circuit, a main control circuit, a serial port communication circuit, a digital-to-analog conversion circuit, and a current converter and output protection circuit; the input end of the power supply circuit is connected to an external power supply, the output end of the power supply circuit is respectively electrically connected to the tilt angle acquisition circuit, the main control circuit, the serial port communication circuit, the digital-to-analog conversion circuit, and the current converter and output protection circuit, the signal output end of the tilt angle acquisition circuit is electrically connected to the signal input end of the main control circuit, the signal output end of the main control circuit is electrically connected to the input end of the digital-to-analog conversion circuit, the output end of the digital-to-analog conversion circuit is electrically connected to the input end of the current converter and output protection circuit, and the output end of the current converter and output protection circuit outputs a detection signal externally.
[0031] The horizontal switch inclination sensor circuit of the present utility model utilizes the power supply circuit to achieve wide-voltage input, can adapt to various input voltages, better meet different market demands, improve the stability, reliability and service life of the power supply module. The inclination acquisition circuit is used to collect induction signals, which are processed by the main control circuit and then converted by the digital-to-analog conversion circuit, and voltage-to-current conversion is performed through the current converter and the output protection circuit, while protecting the output to make the output more stable.
[0032] In one or more embodiments of the present utility model, the power supply circuit includes a TVS tube T1, a capacitor C1, a diode D1, an inductor L1, an inductor L2, a capacitor C2, a capacitor C3, a capacitor C4, a resistor R1, a resistor R2, a linear voltage regulator chip U1, a resistor R3, a resistor R4, a capacitor C5, a first power output circuit, a second power output circuit and a third power output circuit. The TVS tube T1 and the capacitor C1 are connected in parallel between the positive pole of the external power supply and the ground. The positive pole of the external power supply is electrically connected to the positive pole of the diode D1. An inductor L1, a capacitor C2 and an inductor L2 are sequentially connected in series between the negative pole of the diode D1 and the ground. The capacitor C3 and the capacitor C4 are respectively connected in parallel with the capacitor C2. The resistor R1 and the resistor R2 are connected in series and then connected in parallel with the capacitor C4. The common end of the inductor L1 and the capacitor C2 is electrically connected to the input end of the linear voltage regulator chip U1. The common end of the resistor R1 and the resistor R2 is electrically connected to the enable end of the linear voltage regulator chip U1. The grounding end of the linear voltage regulator chip U1 is grounded. A resistor R3 and a resistor R4 are connected in series between the output end of the linear voltage regulator chip U1 and the ground, and the common end of the resistor R3 and the resistor R4 is electrically connected to the feedback adjustment end of the linear voltage regulator chip U1. A capacitor C5 is electrically connected between the output end of the linear voltage regulator chip U1 and the ground. The output end of the linear voltage regulator chip U1 is respectively electrically connected to the input ends of the first power output circuit, the second power output circuit and the third power output circuit. The output end of the first power output circuit is electrically connected to the power input end of the digital-to-analog conversion circuit. The output end of the second power output circuit is electrically connected to the power input ends of the inclination acquisition circuit, the current converter and the output protection circuit. The output end of the third power output circuit is respectively electrically connected to the power input ends of the main control circuit and the serial port communication circuit. The power supply circuit adopts wide-voltage input. T1 is a TVS tube to prevent damage to the circuit caused by electrostatic surges. D1 is an anti-reverse connection diode. L1 is a filtering inductor. C2 and C3 are filtering capacitors. U1 is a linear voltage regulator. C4 is a chip power input filtering capacitor. R1 and R2 play a role in current limiting and protection. R3 and R4 are resistor voltage dividers to adjust the output voltage. C5 is a filtering capacitor to make the output voltage more stable.
[0033] Specifically, as Figure 2As shown, in one or more embodiments of the present utility model, the first power output circuit includes a resistor R5, a triode Q1, a triode Q2, a resistor R6, a capacitor C6, a bidirectional diode D2, a triode Q3, a reverse voltage regulator diode TL1, a capacitor C7, a resistor R7, a resistor R8, and a capacitor C8. The output terminal of the linear voltage regulator chip U1 is electrically connected to the emitter of the triode Q1 and the collector of the triode Q3 respectively. The collector of the triode Q1 is grounded through the resistor R6. The base of the triode Q1 is electrically connected to the emitter of the triode Q2. The emitter of the triode Q2 is electrically connected to the collector of the triode Q3 through the resistor R5. The base of the triode Q2 is electrically connected to the collector of the triode Q1. The collector of the triode Q2 is grounded through the capacitor C6. A bidirectional diode D2 is electrically connected between the collector and the emitter of the triode Q3. The base of the triode Q3 is electrically connected to the collector of the triode Q2. The base of the triode Q3 is electrically connected to the cathode of the reverse voltage regulator diode TL1. The anode of the reverse voltage regulator diode TL1 is grounded. A capacitor C7 is electrically connected between the base of the triode Q3 and the reference terminal of the reverse voltage regulator diode TL1. A resistor R7 and a resistor R8 are connected in series between the emitter of the triode Q3 and the ground. The common terminal of the resistor R7 and the resistor R8 is electrically connected to the reference terminal of the reverse voltage regulator diode TL1. The emitter of the triode Q3 is grounded through the capacitor C8. The output terminal of the triode Q3 is electrically connected to the power input terminal of the digital-to-analog conversion circuit. The reverse voltage regulator diode TL1 adjustable precision shunt regulator is used to output a 5V voltage to provide an input voltage for the digital-to-analog conversion circuit. The output voltage is changed by adjusting the voltage divider formed by the resistors R7 and R8. C8 is a filter capacitor to make the output voltage more stable.
[0034] As Figure 2 As shown, in one or more embodiments of the present utility model, the second power output circuit uses an LP2981 linear voltage regulator chip U2 and its peripheral circuits to provide a stable power input voltage for the inclination angle acquisition circuit, the current converter, and the output protection circuit. C9 is a filter capacitor, R9 is a current limiting resistor, and C10 is a filter capacitor to make the output voltage more stable. The third power output circuit uses an output fixed linear voltage regulator chip U3 of TLV1117-33IDCYR and its peripheral circuits to provide a stable input voltage for the main control circuit and the serial communication circuit. An inductor L3 and a capacitor C11 form an LC filter circuit to make the input voltage of the chip U3 more stable. C12 is a filter capacitor to make the output voltage more stable.
[0035] Optionally, in one or more embodiments of the present utility model, the horizontal switch inclination sensor circuit further includes a power supply monitoring circuit. The input end of the power supply monitoring circuit is electrically connected to the output end of the first power supply output circuit, and the output end of the power supply monitoring circuit is electrically connected to the monitoring voltage input end of the main control circuit. By setting the power supply monitoring circuit, it monitors whether the power supply voltage of the single-chip microcomputer is normal, enabling the single-chip microcomputer to operate stably.
[0036] Specifically, as Figure 3 shown, in one or more embodiments of the present utility model, the power supply monitoring circuit includes resistor R10, resistor R11, resistor R12, resistor R13, and capacitor C13. Resistor R12 and resistor R11 are connected in series between the output end of the first power supply output circuit and the ground. The common end of resistor R12 and resistor R11 is electrically connected to the common end of inductor L1 and capacitor C2. Resistor R13 and capacitor C13 are connected in series between the common end of resistor R12 and resistor R11 and the ground. The common end of resistor R13 and capacitor C13 is electrically connected to the monitoring voltage input end of the main control circuit. The input voltage of the PA1 pin of the main control circuit is adjusted by the resistor divider formed by resistor R10 and resistor R11. R13 is a current-limiting resistor to prevent the components of the main control circuit from being damaged due to excessive current.
[0037] Optionally, in one or more embodiments of the present utility model, the inclination acquisition circuit uses a digital gyroscope chip of model ISM330DHCXT and its peripheral circuits, as Figure 4 shown.
[0038] In one or more embodiments of the present utility model, the main control circuit uses a single-chip microcomputer of model STM32G0B1CBT6 and its peripheral circuits, as Figure 5 shown.
[0039] Optionally, in one or more embodiments of the present utility model, the horizontal switch inclination sensor circuit further includes a monitoring and reset circuit. The power supply input end of the monitoring and reset circuit is electrically connected to the output end of the third power supply output circuit, and the signal output end of the monitoring and reset circuit is electrically connected to the reset input end of the main control circuit. The monitoring and reset circuit is used to monitor and reset the main control circuit to prevent the program of the main control circuit from running wild and to be able to reset the system and restore its function. As Figure 6 shown, U6 is a monitoring and reset chip, R23 and R24 are pull-up resistors, and R22 and R25 are current-limiting resistors.
[0040] In one or more embodiments of the present utility model, the serial communication circuit is as Figure 7As shown, two NPN transistors are used to monitor the serial communication circuit, facilitating more stable two-way transmission of communication data between the main control circuit and the serial communication circuit.
[0041] As Figure 8 shown, in one or more embodiments of the present invention, the digital-to-analog conversion circuit uses a DAC121S101 chip and its peripheral circuit. R30, R31, and R32 are current-limiting resistors to make the signal output by the single-chip microcomputer more stable when transmitted to the digital-to-analog conversion chip, and C28 and C29 are filter capacitors to make the input voltage of the U7 power supply more stable.
[0042] As Figure 9As shown, in one or more embodiments of the present utility model, the current converter and the output protection circuit include a magnetic bead FB1, a capacitor C31, a resistor R35, a resistor R36, a diode D3, a current conversion chip U8, a capacitor C32, a capacitor C33, a resistor R37, a resistor R38, a resistor R39, a resistor R40, a triode Q6, a MOS transistor Q7, a resistor R41, a diode D4, a capacitor C34, a capacitor C35, a capacitor C36, a resistor R42, and a reverse voltage stabilizing diode T2. A series connection of the magnetic bead FB1 and the capacitor C31 is provided between the output terminal of the second power supply output circuit and the ground. The common terminal of the magnetic bead FB1 and the capacitor C31 is electrically connected to the adjustment terminal of the current conversion chip U8. A resistor R35 is electrically connected between the adjustment power supply terminal and the adjustment induction signal terminal of the current conversion chip U8. The signal input terminal of the current conversion chip U8 is electrically connected to the negative electrode of the diode D3 through the resistor R36. The positive electrode of the diode D3 is grounded. The negative electrode of the diode D3 is electrically connected to the output terminal of the digital-to-analog conversion circuit. The ground terminal of the current conversion chip U8 is grounded. The current gain setting terminal of the current conversion chip U8 is grounded through the resistor R37. The driving terminal of the current conversion chip U8 is electrically connected to the collector of the triode Q6 and the gate of the MOS transistor Q7 respectively. The drain of the MOS transistor Q7 is grounded through the capacitor C34. A series connection of a resistor R41, a diode D4, and a capacitor C36 is provided in sequence between the drain of the MOS transistor Q7 and the ground. The negative electrode of the diode D4 serves as an output terminal to output a detection signal externally. The capacitor C35, the resistor R42, and the reverse voltage stabilizing diode T2 are connected in parallel with the capacitor C36. The source of the MOS transistor Q7 is electrically connected to the base of the triode Q6. A resistor R40 is electrically connected between the base and the emitter of the triode Q6. The base of the triode Q6 is electrically connected to the source of the MOS transistor Q7. A series connection of the resistor R38 and the capacitor C33 is provided between the error indication terminal of the current conversion chip U8 and the ground. The common terminal of the resistor R38 and the capacitor C33 is grounded through the capacitor C32. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the positive input terminal of the current conversion chip U8. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the common terminal of the inductor L1 and the capacitor C2. The output enable terminal of the current conversion chip U8 is grounded through the resistor R39. Through the amplification and linear conversion of the internal circuit, the output voltage of the digital-to-analog conversion circuit is converted into current by the current conversion chip U8, and a protection circuit is provided for the output. D4 is a rectifier diode. The capacitors C35 and C36 are filter capacitors to make the output current more stable. The reverse voltage stabilizing diode T2 is a TVS tube to prevent the circuit from being damaged due to the instantaneous voltage impact at the port.
[0043] The horizontal switch inclination sensor circuit of the present utility model has the following advantages:
[0044] 1. The power supply circuit adopts wide voltage input, which can adapt to a variety of input voltages. The wide voltage input can better meet different market demands and improve the reliability and service life of the power supply module;
[0045] 2. The power supply circuit adopts an adjustable precision shunt regulator. The resistor divider connected to the reference terminal of the voltage reference chip can obtain the output voltage after adjustment and provide stable performance within a wide operating temperature range, making the output voltage more stable;
[0046] 3. A power supply monitoring circuit is added to monitor whether the power supply voltage of the main control circuit is normal, enabling the main control circuit to work stably;
[0047] 4. A monitoring and reset chip is used to monitor and reset the main control circuit. In case the program of the main control circuit runs wild, the system can be reset and its function can be restored;
[0048] 5. Monitor the TX and RX of the serial communication of the main control circuit to facilitate the two-way transmission of communication data between the main control circuit and the serial communication circuit more quickly and stably;
[0049] 6. The output voltage after digital-to-analog conversion outputs the corresponding current through a current transmitter, and a protection circuit is provided for the output to make the output current more stable.
[0050] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A horizontal switch tilt sensor circuit, characterized in that: It comprises a power supply circuit, a tilt angle acquisition circuit, a main control circuit, a serial communication circuit, a digital-to-analog conversion circuit, a current converter and an output protection circuit; the input end of the power supply circuit is connected to an external power supply, the output end of the power supply circuit is electrically connected to the tilt angle acquisition circuit, the main control circuit, the serial communication circuit, the digital-to-analog conversion circuit, the current converter and the output protection circuit respectively, the signal output end of the tilt angle acquisition circuit is electrically connected to the signal input end of the main control circuit, the signal output end of the main control circuit is electrically connected to the input end of the digital-to-analog conversion circuit, the output end of the digital-to-analog conversion circuit is electrically connected to the input end of the current converter and the output protection circuit, and the output end of the current converter and the output protection circuit outputs a detection signal to the outside.
2. The horizontal switch tilt sensor circuit according to claim 1, characterized in that: The power supply circuit includes a TVS tube T1, a capacitor C1, a diode D1, an inductor L1, an inductor L2, a capacitor C2, a capacitor C3, a capacitor C4, a resistor R1, a resistor R2, a linear voltage regulator chip U1, a resistor R3, a resistor R4, a capacitor C5, a first power output circuit, a second power output circuit and a third power output circuit. The TVS tube T1 and the capacitor C1 are connected in parallel between the positive electrode of the external power supply and the ground. The positive electrode of the external power supply is electrically connected to the positive electrode of the diode D1. The inductor L1, the capacitor C2 and the inductor L2 are connected in series between the negative electrode of the diode D1 and the ground. The capacitor C3 and the capacitor C4 are respectively connected in parallel with the capacitor C2. The resistor R1 and the resistor R2 are connected in series and then connected in parallel with the capacitor C4. The common end of the inductor L1 and the capacitor C2 is electrically connected to the input end of the linear voltage regulator chip U1. The common end of the resistor R1 and the resistor R2 is connected to the linear voltage regulator chip U1. The enable end of the linear voltage regulator chip U1 is electrically connected, the ground end of the linear voltage regulator chip U1 is grounded, the resistor R3 and the resistor R4 are connected in series between the output end of the linear voltage regulator chip U1 and the ground, and the common end of the resistor R3 and the resistor R4 is electrically connected to the feedback adjustment end of the linear voltage regulator chip U1, the capacitor C5 is electrically connected between the output end of the linear voltage regulator chip U1 and the ground, the output end of the linear voltage regulator chip U1 is electrically connected to the input ends of the first power output circuit, the second power output circuit and the third power output circuit respectively, the output end of the first power output circuit is electrically connected to the power input end of the digital-to-analog conversion circuit, the output end of the second power output circuit is electrically connected to the power input end of the inclination acquisition circuit and the current converter and the output protection circuit, and the output end of the third power output circuit is electrically connected to the power input end of the main control circuit and the serial communication circuit respectively.
3. The horizontal switch tilt sensor circuit according to claim 2, characterized in that: The first power supply output circuit includes a resistor R5, a transistor Q1, a transistor Q2, a resistor R6, a capacitor C6, a bidirectional diode D2, a transistor Q3, a reverse voltage regulator diode TL1, a capacitor C7, a resistor R7, a resistor R8 and a capacitor C8. The output end of the linear voltage regulator chip U1 is electrically connected to the emitter of the transistor Q1 and the collector of the transistor Q3 respectively. The collector of the transistor Q1 is grounded through the resistor R6. The base of the transistor Q1 is electrically connected to the emitter of the transistor Q2. The emitter of the transistor Q2 is electrically connected to the collector of the transistor Q3 through the resistor R5. The base of the transistor Q2 is electrically connected to the collector of the transistor Q1. The collector of the transistor Q2 is grounded through the capacitor C6. The bidirectional diode D2 is electrically connected between the collector and emitter of the transistor Q3, the base of the transistor Q3 is electrically connected to the collector of the transistor Q2, the base of the transistor Q3 is electrically connected to the cathode of the reverse Zener diode TL1, the anode of the reverse Zener diode TL1 is grounded, the capacitor C7 is electrically connected between the base of the transistor Q3 and the reference end of the reverse Zener diode TL1, the resistor R7 and the resistor R8 are connected in series between the emitter of the transistor Q3 and the ground, the common end of the resistor R7 and the resistor R8 is electrically connected to the reference end of the reverse Zener diode TL1, the emitter of the transistor Q3 is grounded through the capacitor C8, and the output end of the transistor Q3 is electrically connected to the power input end of the digital-to-analog conversion circuit.
4. The horizontal switch tilt sensor circuit according to claim 2, characterized in that: It also includes a power monitoring circuit, the input end of the power monitoring circuit is electrically connected to the output end of the first power output circuit, and the output end of the power monitoring circuit is electrically connected to the monitoring voltage input end of the main control circuit.
5. The horizontal switch tilt sensor circuit according to claim 4, characterized in that: The power supply monitoring circuit includes a resistor R10, a resistor R11, a resistor R12, a resistor R13 and a capacitor C13; the resistor R12 and the resistor R11 are connected in series between the output end of the first power supply output circuit and the ground; the common end of the resistor R12 and the resistor R11 is electrically connected to the common end of the inductor L1 and the capacitor C2; the resistor R13 and the capacitor C13 are connected in series between the common end of the resistor R12 and the resistor R11 and the ground; the common end of the resistor R13 and the capacitor C13 is electrically connected to the monitoring voltage input end of the main control circuit.
6. The horizontal switch tilt sensor circuit according to claim 1, characterized in that: The tilt angle acquisition circuit adopts a digital gyroscope chip of model ISM330DHCXT.
7. The horizontal switch tilt sensor circuit according to claim 2, characterized in that: It also includes a monitoring and reset circuit, wherein the power input terminal of the monitoring and reset circuit is electrically connected to the output terminal of the third power output circuit, and the signal output terminal of the monitoring and reset circuit is electrically connected to the reset input terminal of the main control circuit.
8. The horizontal switch tilt sensor circuit according to claim 2, characterized in that: The current converter and output protection circuit include a magnetic bead FB1, a capacitor C31, a resistor R35, a resistor R36, a diode D3, a current conversion chip U8, a capacitor C32, a capacitor C33, a resistor R37, a resistor R38, a resistor R39, a resistor R40, a transistor Q6, a MOS tube Q7, a resistor R41, a diode D4, a capacitor C34, a capacitor C35, a capacitor C36, a resistor R42 and a reverse voltage stabilizing diode T2. The magnetic bead FB1 and the capacitor C31 are connected in series between the output end of the second power supply output circuit and the ground. The common end of the current conversion chip U8 is electrically connected to the adjustment end of the current conversion chip U8, the resistor R35 is electrically connected between the adjustment power supply end and the adjustment sensing signal end of the current conversion chip U8, the signal input end of the current conversion chip U8 is electrically connected to the cathode of the diode D3 through the resistor R36, the anode of the diode D3 is grounded, the cathode of the diode D3 is electrically connected to the output end of the digital-to-analog conversion circuit, the ground end of the current conversion chip U8 is grounded, the current gain setting end of the current conversion chip U8 is grounded through the resistor R37, and the current conversion chip U8 The driving end is electrically connected to the collector of the transistor Q6 and the gate of the MOS transistor Q7 respectively, the drain of the MOS transistor Q7 is grounded through the capacitor C34, a resistor R41, a diode D4 and a capacitor C36 are connected in series between the drain of the MOS transistor Q7 and the ground, the cathode of the diode D4 is used as an output end to output a detection signal to the outside, the capacitor C35, the resistor R42 and the reverse voltage regulator diode T2 are connected in parallel with the capacitor C36, the source of the MOS transistor Q7 is electrically connected to the base of the transistor Q6, and the base and emitter of the transistor Q6 are electrically connected to the capacitor C35. The resistor R40 is electrically connected to the base of the transistor Q6 and the source of the MOS tube Q7. The resistor R38 and the capacitor C33 are connected in series between the error indication terminal of the current conversion chip U8 and the ground. The common terminal of the resistor R38 and the capacitor C33 is grounded through the capacitor C32. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the positive input terminal of the current conversion chip U8. The common terminal of the resistor R38 and the capacitor C33 is electrically connected to the common terminal of the inductor L1 and the capacitor C2. The output enable terminal of the current conversion chip U8 is grounded through the resistor R39.