Encoder circuit
By introducing a signal amplification module into the tanker encoder circuit, the analog pulse signal output by the processor is amplified, which solves the problem of insufficient signal strength and improves the stability and accuracy of signal transmission.
Patent Information
- Application Number
- CN202421308316.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2034-06-07
AI Technical Summary
In the existing tanker encoder, the signal strength is insufficient when outputting the analog pulse signal, resulting in a susceptible to noise interference during the transmission process, affecting the transmission accuracy.
An encoder circuit is designed, including a sensor, a processor and a signal amplification module. The sensor detects the flow of the tanker and outputs an angular displacement signal. The processor converts it into two analog pulse signals with phase difference. The signal amplification module amplifies the signal strength through two amplification circuits to increase the signal output power.
It effectively improves the output strength of the analog pulse signal, enhances the transmission stability of the signal, reduces noise interference, and ensures stable signal transmission in the circuit.
Smart Images

Figure CN222438848U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of encoders, and in particular to an encoder circuit. Background Art
[0002] The fuel dispenser encoder is the core component of the fuel dispenser system. When the start button of the fuel dispenser is turned on, the system's motor is started, gasoline enters the flow sensor, and the encoder chip obtains the angular displacement signal transmitted by the flow sensor and converts the angular displacement signal into an analog pulse signal, and then transmits the analog pulse signal to the metering MCU end, thereby obtaining the accurate fuel volume. However, the analog pulse signal is weak when the encoder chip initially outputs it, resulting in the inability to overcome the noise on the transmission circuit, and the subsequent circuit cannot perform the next operation on it; therefore, the signal strength of the analog pulse signal during the transmission process between the encoder chip and the metering MCU end has a great influence on the transmission accuracy of the pulse signal.
[0003] How to improve the signal strength when the pulse signal is output has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the present application proposes an encoder circuit suitable for improving the signal strength when a pulse signal is output.
[0005] According to one aspect of the present application, there is provided an encoder circuit for improving signal strength, comprising: a sensor, a processor, and a signal amplification module;
[0006] The sensor is suitable for being installed on a fuel dispenser and is configured to detect a current flow rate of the fuel dispenser, and an output end of the sensor is electrically connected to an input end of a processor, for inputting the detected current flow rate into the processor; wherein the current flow rate detected by the sensor is represented by an angular displacement signal corresponding to the amount of fuel being refueled;
[0007] The signal amplification module includes: two amplification circuits; the first output end of the processor and the second output end of the processor are electrically connected to the input ends of the two amplification circuits respectively, so as to convert the current flow from an angular displacement signal into two analog pulse signals with a phase difference and then output them to the signal amplification module; the output ends of the two amplification circuits are suitable for being electrically connected to a metering microprocessor, so as to output the two analog pulse signals to the metering microprocessor.
[0008] In a possible implementation, the device further includes: a CAN transceiver;
[0009] The third output terminal of the processor is electrically connected to the first input terminal of the CAN transceiver to convert the current flow from an angular displacement signal into a digital pulse signal and then output the digital pulse signal to the CAN transceiver; the output terminal of the CAN transceiver is suitable for being electrically connected to a metering microprocessor to output the digital pulse signal to the metering microprocessor.
[0010] In a possible implementation, the device further includes: a power supply module;
[0011] The output end of the power supply module is electrically connected to the second input end of the CAN transceiver to provide an operating voltage for the CAN transceiver.
[0012] In a possible implementation, the power supply module is provided with a filter capacitor;
[0013] One electrode of the filter capacitor is electrically connected to the second input terminal of the CAN transceiver, and the other electrode of the filter capacitor is grounded to filter the working voltage connected to the CAN transceiver.
[0014] In a possible implementation, the amplifier circuit is provided with a triode;
[0015] The base of the transistor is electrically connected to the first output terminal of the processor or the second output terminal of the processor; the collector of the transistor is electrically connected to the metering microprocessor and is suitable for outputting analog pulse signals, and the emitter of the transistor is grounded.
[0016] In a possible implementation, the amplifier circuit is provided with a first current limiting resistor and a second current limiting resistor;
[0017] The base of the transistor is electrically connected to the first output terminal of the processor or the second output terminal of the processor through a first current limiting resistor;
[0018] One end of the second current limiting resistor is electrically connected to one end of the first current limiting resistor connected to the base of the transistor, and the other end of the second current limiting resistor is grounded.
[0019] In a possible implementation, the model of the transistor is S8050.
[0020] In a possible implementation, the model of the CAN transceiver is SN65HVD232DR.
[0021] Beneficial effects: The two amplifying circuits of the signal amplifying module can effectively amplify the strength of the two analog pulse signals output by the processor, increase the output power of the signal, enable the signal to be processed or transmitted, stabilize the signal, prevent the signal from being interfered with, and improve the stability of signal transmission so that it can be better transmitted in the circuit.
[0022] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0024] Figure 1 A circuit diagram showing a processor according to an embodiment of the present application;
[0025] Figure 2 A circuit diagram of a sensor according to an embodiment of the present application is shown;
[0026] Figure 3 A circuit diagram of a CAN transceiver according to an embodiment of the present application is shown;
[0027] Figure 4 A circuit diagram of a signal amplification module according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0029] Among them, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the utility model or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the utility model.
[0030] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0031] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0032] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0033] Figure 1 A circuit diagram of a processor U2 according to an embodiment of the present application is shown; Figure 2 A circuit diagram of the sensor U4 according to an embodiment of the present application is shown; Figure 3 A circuit diagram of a CAN transceiver U1 according to an embodiment of the present application is shown; Figure 4 FIG. 2 shows a circuit diagram of a signal amplification module according to an embodiment of the present application. Figure 1 As shown, an encoder circuit for improving signal strength includes: a sensor U4, a processor U2, and a signal amplification module; the sensor U4 is suitable for being installed on a fuel dispenser and is configured to detect the current flow of the fuel dispenser, and the output end of the sensor U4 is electrically connected to the input end of the processor U2, so as to input the detected current flow into the processor U2; wherein the current flow detected by the sensor U4 is characterized by an angular displacement signal corresponding to the refueling amount; the signal amplification module includes: two amplification circuits; the first output end of the processor U2 and the second output end of the processor U2 are electrically connected to the input ends of the two amplification circuits, respectively, so as to convert the current flow from the angular displacement signal into two analog pulse signals with a phase difference and then output them to the signal amplification module; the output ends of the two amplification circuits are suitable for being electrically connected to a metering microprocessor; so as to output the two analog pulse signals to the metering microprocessor.
[0034] Here, it should be noted that each rotation of the mechanical transmission shaft of the flow measurement converter drives the rotation of the magnet fixed on the shaft, and the rotation of the magnet forms the change of the N and S levels of the magnet. The sensor U4 calculates the angle of the magnetic field change according to the change of the magnetic field, and can generate an angular displacement signal of the encoder rotation, which is suitable for outputting the angular displacement signal to the processor U2; after the processor U2 converts the angular displacement signal into two analog pulse signals with phase difference, the two analog pulse signals are amplified by the signal amplification module and sent to the metering microprocessor of the fuel dispenser mainboard. The two amplification circuits of the signal amplification module can effectively amplify the intensity of the two analog pulse signals output by the processor U2, increase the output power of the signal, enable the signal to be processed or transmitted, and stabilize the signal, prevent the signal from being interfered, and improve the stability of the signal transmission so that it can be better transmitted in the circuit.
[0035] In a possible implementation, the sensor U4 uses a Hall sensor, and the 7th pin (VSS terminal) and the 8th pin (PROG terminal) of the sensor U4 are both grounded; the 16th pin and the 15th pin of the sensor U4 are electrically connected to the power output terminal of the power supply module to access the working voltage; the 6th pin (Z phase) of the sensor U4 is electrically connected to the 18th pin of the processor U2 to output the number of turns data, and the 11th pin (CS terminal) of the sensor U4 is electrically connected to the 35th pin of the processor U2 to transmit the chip select signal CS; the 10th pin (CLK terminal) of the sensor U4 is electrically connected to the 34th pin of the processor U2 to transmit the clock signal CLK; the 9th pin (DO terminal) of the sensor U4 is electrically connected to the 33rd pin of the processor U2 to transmit the DO signal.
[0036] In a possible implementation, it also includes: a CAN transceiver U1; the third output terminal of the processor U2 is electrically connected to the first input terminal of the CAN transceiver U1, so as to convert the current flow from an angular displacement signal to a digital pulse signal, and then output a digital pulse signal to the CAN transceiver U1; the output terminal of the CAN transceiver U1 is suitable for being electrically connected to a metering microprocessor, so as to output the digital pulse signal to the metering microprocessor. Here, it should be noted that the processor U2 is suitable for reading the angle value, and after converting the angle value into a digital pulse signal, it is sent to the metering microprocessor of the fuel dispenser mainboard through the CAN transceiver U1. The present application integrates the two output forms of analog pulse output and digital pulse output in the same circuit. With the same sensor U4 and the metering microprocessor (between MCU), it is possible to output two analog pulse signals, and also to output digital pulse signals through the CAN bus, which has the advantages of easy use, low cost, and simple production management.
[0037] In a possible implementation, the model of the CAN transceiver U1 is SN65HVD232DR. It should be noted that the third output terminal of the processor U2 is the 7th pin (PA.10 terminal) and the 6th pin (PA.11 terminal) of the processor U2, and the first input terminal of the CAN transceiver U1 is the 1st pin (TXD terminal) and the 4th pin (RXD terminal) of the CAN transceiver U1; Figure 1 and Figure 3As shown, the first pin (TXD end) of the CAN transceiver U1 is electrically connected to the seventh pin of the processor U2 to access the digital pulse signal; the fourth pin (RXD end) of the CAN transceiver U1 is electrically connected to the sixth pin of the microprocessor U2 to access the digital pulse signal; the second pin (GND end) of the CAN transceiver U1 is grounded; the third pin (VCC end) of the CAN transceiver U1 is electrically connected to the power output end of the power supply module to access the working voltage; the eighth pin (S end) of the CAN transceiver U1 is grounded; the sixth and seventh pins of the CAN transceiver U1 are suitable for being electrically connected to the metering microprocessor. Further, it also includes: a resistor R3; one end of the resistor R3 is electrically connected to the eighth pin (S end) of the CAN transceiver U1, and the other end of the resistor R3 is grounded.
[0038] In a possible implementation, the device further includes: a power supply module; an output end of the power supply module is electrically connected to the second input end of the CAN transceiver U1 to provide an operating voltage for the CAN transceiver U1. Figure 3 As shown, the power output terminal of the power supply module is electrically connected to the third pin of the CAN transceiver U1 (ie, the second input terminal of the CAN transceiver U1).
[0039] Furthermore, the power supply module is provided with a filter capacitor C2, one pole of the filter capacitor C2 is electrically connected to the third pin of the CAN transceiver U1 (i.e., the second input terminal of the CAN transceiver U1), and the other pole of the filter capacitor C2 is grounded. It should be noted that the filter capacitor C2 is suitable for filtering the working voltage connected to the CAN transceiver U1 to ensure the working stability of the CAN transceiver U1.
[0040] In a possible implementation, the power output end of the power supply module is electrically connected to the 16th and 15th pins of the sensor U4; it should be noted that the power supply module supplies power to the CAN transceiver U1 and also to the sensor U4.
[0041] Furthermore, the power supply module is provided with a filter capacitor C5; one electrode of the filter capacitor C5 is electrically connected to the 16th and 15th pins of the sensor U4, and the other electrode of the capacitor C5 is grounded. It should be noted that the capacitor C5 is suitable for filtering the working voltage connected to the sensor U4 to ensure the working stability of the sensor U4.
[0042] In a possible implementation, the signal amplification module includes: two amplification circuits; a first amplification circuit 100 and a second amplification circuit 200; a first output terminal of the processor U2 and a second output terminal of the processor U2 are electrically connected to the input terminal of the first amplification circuit 100 and the input terminal of the second amplification circuit 200 respectively. The first output terminal of the processor U2 is the 49th pin (PA.5 terminal) of the processor U2; the second output terminal of the processor U2 is the 32nd pin (PB.9 terminal) of the processor U2; Figure 1 and Figure 4 As shown, the 49th pin (PA.5 terminal) of the processor U2 is electrically connected to the input terminal of the first amplifier circuit 100 to output an analog pulse signal SIGNAL_A, and the 32nd pin (PB.9 terminal) of the processor U2 is electrically connected to the input terminal of the second amplifier circuit 200 to output another analog pulse signal SIGNAL_B.
[0043] In a possible implementation, the first amplifier circuit 100 is provided with a transistor Q1; the base of the transistor Q1 is electrically connected to the first output terminal (PA.5 terminal) of the processor U2; the collector of the transistor Q1 is electrically connected to the metering microprocessor for outputting an analog pulse signal SIGNAL_A, and the emitter of the transistor Q1 is grounded. When the input signal is applied to the base, the transistor Q1 controls the size of the output signal according to the size of the input signal. By adjusting the size and polarity of the input signal, the output signal can be amplified and controlled. At the same time, the transistor Q1 has a voltage stabilization function, which can avoid interference during the transmission of the pulse signal. Furthermore, the model of the transistor Q1 is S8050.
[0044] In a possible implementation, the first amplifier circuit 100 is provided with a first current limiting resistor R6 and a second current limiting resistor R7; the first current limiting resistor R6 and the second current limiting resistor R7 are both electrically connected to the base of the transistor Q1. As shown in the figure, one end of the first current limiting resistor R6 is electrically connected to the base of the transistor Q1, the other end of the first current limiting resistor R6 is electrically connected to the 49th pin of the processor U2, one end of the second current limiting resistor R7 is electrically connected to the circuit between the base of the transistor Q1 and the first current limiting resistor R6, and the other end of the second current limiting resistor R7 is grounded.
[0045] In a possible implementation, the first amplifier circuit 100 is provided with a resistor R5; one end of the resistor R5 is connected to the working voltage, and the other end of the resistor R5 is electrically connected to the connection circuit between the 49th pin of the processor U2 and the resistor R6.
[0046] In a possible implementation, the first amplifier circuit 100 is provided with a resistor R4; the collector of the transistor Q1 is connected to the working voltage through the resistor R4.
[0047] Furthermore, the model of transistor Q2 is S8050. Figure 4 As shown, the base of the transistor Q2 of the second amplifier circuit 200 is electrically connected to the second output terminal (PB.9 terminal) of the processor U2, and the collector of the transistor Q2 is suitable for being electrically connected to the metering microprocessor to output another analog pulse signal SIGNAL_B; the emitter of the transistor Q2 is grounded.
[0048] In a possible implementation, the second amplifier circuit 200 is provided with a second current limiting resistor R10 and a second current limiting resistor R11; the first current limiting resistor R10 and the second current limiting resistor R11 are both electrically connected to the base of the transistor Q2. Figure 4 As shown, one end of the first current limiting resistor R10 is electrically connected to the base of the transistor Q2, the other end of the first current limiting resistor R10 is electrically connected to the 32nd pin of the processor U2, one end of the second current limiting resistor R11 is electrically connected to the circuit between the base of the transistor Q2 and the first current limiting resistor R10, and the other end of the second current limiting resistor R11 is grounded.
[0049] In a possible implementation, the second amplifier circuit 200 is provided with a resistor R9; one end of the resistor R9 is connected to the working voltage, and the other end of the resistor R9 is electrically connected to the connection circuit between the 32nd pin of the processor U2 and the resistor R10.
[0050] In a possible implementation, the second amplifier circuit 200 is provided with a resistor R8; the collector of the transistor Q2 is connected to the working voltage through the resistor R8.
[0051] It should be noted that the model of the transistor Q1 and the transistor Q2 may also be S9013.
[0052] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. An encoder circuit, characterized in that: Used to improve signal strength, including: sensor, processor, signal amplification module; The sensor is suitable for detecting the current flow rate of the fuel dispenser, and the output end of the sensor is electrically connected to the input end of the processor, so as to input the detected current flow rate into the processor; wherein the current flow rate detected by the sensor is represented by an angular displacement signal corresponding to the refueling amount; The signal amplification module includes: two amplification circuits; the first output end of the processor and the second output end of the processor are electrically connected to the input ends of the two amplification circuits respectively, so as to convert the current flow from the angular displacement signal into two analog pulse signals with phase difference and then output them to the signal amplification module; The output ends of the two amplifying circuits are suitable for being electrically connected to a metering microprocessor so as to output two analog pulse signals to the metering microprocessor.
2. An encoder circuit according to claim 1, characterized in that: Also includes: CAN transceiver; The third output terminal of the processor is electrically connected to the first input terminal of the CAN transceiver so as to convert the current flow rate from the angular displacement signal into a digital pulse signal and then output the digital pulse signal to the CAN transceiver; the output terminal of the CAN transceiver is suitable for being electrically connected to the metering microprocessor so as to output the digital pulse signal to the metering microprocessor.
3. An encoder circuit according to claim 2, characterized in that: Also includes: Power supply module; The output end of the power supply module is electrically connected to the second input end of the CAN transceiver to provide an operating voltage for the CAN transceiver.
4. An encoder circuit according to claim 3, characterized in that: The power supply module is provided with a filter capacitor; One electrode of the filter capacitor is electrically connected to the second input terminal of the CAN transceiver, and the other electrode of the filter capacitor is grounded to filter the working voltage connected to the CAN transceiver.
5. An encoder circuit according to claim 1, characterized in that: The amplifying circuit is provided with a triode; The base of the transistor is electrically connected to the first output terminal of the processor or the second output terminal of the processor; the collector of the transistor is electrically connected to the metering microprocessor and is suitable for outputting an analog pulse signal, and the emitter of the transistor is grounded.
6. An encoder circuit according to claim 5, characterized in that: The amplifying circuit is provided with a first current limiting resistor and a second current limiting resistor; The base of the transistor is electrically connected to the first output terminal of the processor or the second output terminal of the processor through the first current limiting resistor; One end of the second current limiting resistor is electrically connected to one end of the first current limiting resistor connected to the base of the transistor, and the other end of the second current limiting resistor is grounded.
7. An encoder circuit according to claim 5, characterized in that: The model of the transistor is S8050.
8. An encoder circuit according to claim 2, characterized in that: The model of the CAN transceiver is SN65HVD232DR.