Motorcycle instrument communication circuit
By designing a motorcycle instrument communication circuit, the oil quantity sensor and its signal line are used to realize half-duplex serial communication between external devices and motorcycle instruments, the problem of motorcycle instruments being unable to communicate with external devices is solved and the main cable modification is avoided.
Patent Information
- Application Number
- CN202422394898.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2034-09-30
AI Technical Summary
When existing motorcycle instruments do not have CAN communication function, they cannot communicate with external devices. They need to connect external communication cables and need to be placed in easy-to-reach locations. The manufacturer is unwilling to modify the main cable.
Using the motorcycle's oil volume sensor and its connection oil volume signal line, a signal transmission port, a data output port, a data input port, an oil volume signal port, a resistor, a signal amplification circuit and a function switching circuit are designed to realize half-duplex serial communication.
Communication between external devices and motorcycle instruments can be achieved without modifying the main cable to meet communication needs.
Smart Images

Figure CN223200196U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of motorcycles, in particular to a motorcycle instrument communication circuit. Background Art
[0002] Existing motorcycles generally use the CAN communication bus to communicate with external devices without removing the instrument panel. However, due to cost factors, some motorcycle instruments do not have CAN communication function. In this case, if the instrument wants to communicate with external devices, an external communication line is required, and the communication line must be placed in an easily accessible place. However, most car manufacturers are unwilling to modify the main cable separately for this purpose and reserve it.
[0003] In view of the above problems, it is necessary to study a motorcycle instrument communication circuit, which can use the motorcycle's oil level sensor and its connecting oil level signal line to enable external devices to communicate with the motorcycle instrument, so there is no need to modify the main cable. Utility Model Content
[0004] The utility model aims to provide a motorcycle instrument communication circuit, which can utilize the motorcycle's oil level sensor and its connecting oil level signal line to enable external equipment to communicate with the motorcycle instrument, thus eliminating the need to modify the main cable.
[0005] In order to achieve the above objectives, the solution of the present invention is:
[0006] A motorcycle instrument communication circuit includes a signal transmission port TR, a data output port TX, a data input port RX, a fuel level signal port FE, a resistor R1, a signal amplification circuit, and a function switching circuit. The signal transmission port TR is used to connect to a fuel level signal line connected to a motorcycle fuel level sensor Rt, and the data output port TX, the data input port RX, and the fuel level signal port FE are used to respectively connect to the RXD pin, TXD pin, and ADC pin of an MCU processor U0 of the motorcycle instrument. The signal transmission port TR is connected to a first end of the resistor R1, the fuel level signal port FE, the input end of the signal amplification circuit, and the output end of the function switching circuit. The second end of the resistor R1 is connected to a control power supply VCC. The output end of the signal amplification circuit is connected to the data output port TX, and the input end of the function switching circuit is connected to the data input port RX. The function switching circuit includes a NOT gate U2 and a transistor Q1. The input end of the NOT gate U2 is connected to the input end of the function switching circuit, the output end of the NOT gate U2 is connected to the base of the transistor Q1, the collector of the transistor Q1 is connected to the output end of the function switching circuit, and the emitter of the transistor Q1 is grounded.
[0007] The signal amplification circuit includes an operational amplifier U1, a resistor R3 and a resistor R4. The non-inverting input terminal of the operational amplifier U1 is connected to the input terminal of the signal amplification circuit, the inverting input terminal of the operational amplifier U1 is connected to the first end of the resistor R3 and the first end of the resistor R4, the second end of the resistor group R4 is grounded, and the second end of the resistor R3 and the output terminal of the operational amplifier U1 are connected to the output terminal of the signal amplification circuit.
[0008] The signal amplification circuit also includes a resistor R2 and a capacitor C1. The non-inverting input terminal of the operational amplifier U1 is connected to the input terminal of the signal amplification circuit through the resistor R2 and the capacitor C1. The first end of the resistor R2 and the first end of the capacitor C1 are connected to the non-inverting input terminal of the operational amplifier U1. The second end of the resistor R2 is connected to the input terminal of the signal amplification circuit, and the second end of the capacitor C1 is grounded.
[0009] The function switching circuit further includes a resistor R5 , and the output end of the NOT gate U2 is connected to the base of the transistor Q1 via the resistor R5 .
[0010] The motorcycle instrument communication circuit further includes an input filter circuit, and the fuel level signal port FE is connected to the signal transmission port TR via the input filter circuit.
[0011] The input filter circuit includes a resistor R6 and a capacitor C2, a first end of the resistor R6 is connected to the signal transmission port TR, a second end of the resistor R6 and a first end of the capacitor C2 are connected to the oil level signal port FE, and a second end of the capacitor C2 is grounded.
[0012] The voltage of the control power supply VCC is 5V.
[0013] After adopting the above scheme, the operating principle of the motorcycle instrument communication circuit of the utility model is:
[0014] On a typical motorcycle, the positive electrode of the fuel level sensor Rt is connected to the fuel level signal input terminal FUELIN (VF) of the motorcycle instrument panel through an fuel level signal line, and the negative electrode of the fuel level sensor Rt is connected to the motorcycle's metal frame (i.e., ground). The fuel level signal line is generally installed on the rear seat of the motorcycle, that is, it can be touched by opening the rear seat cushion of the motorcycle.
[0015] The signal transmission port TR of the motorcycle instrument communication circuit of the present invention is connected to the fuel level signal line, and the data output port TX, the data input port RX and the fuel level signal port FE are respectively connected to the RXD pin, TXD pin and ADC pin of the MCU processor U0 of the motorcycle instrument;
[0016] When the MCU processor U0 does not need to communicate with external devices, the voltage of the RXD pin of the MCU processor U0 depends on the output voltage of the signal amplifying circuit, and the TXD pin of the MCU processor U0 outputs a high level. At this time, the input end of the NOT gate U2 is high, causing the NOT gate U2 to output a low level to the base of the transistor Q1, thereby making the transistor Q1 non-conductive. At this time, the positive voltage of the oil level sensor Rt is input to the input end of the signal amplifying circuit and the oil level signal port FE. At this time, the signal amplifying circuit outputs a high level to the RXD pin of the MCU processor U0. According to the communication specification of the serial port, the RXD pin of the MCU processor U0 is continuously high, which makes the MCU processor U0 in a communication waiting state; and the voltage of the oil level signal port FE changes accordingly with the change of the positive voltage of the oil level sensor Rt. In this way, the MCU processor U0 can obtain the corresponding oil level information by obtaining the voltage of the oil level signal port FE.
[0017] When the MCU processor U0 of the motorcycle instrument needs to communicate with an external device for upgrading or other data exchange, the COMM port of the external device (the external device supports half-duplex serial communication, and the external device can achieve half-duplex serial communication through the signal amplification circuit and function switching circuit of the present invention) is connected to the positive electrode of the fuel level sensor Rt with a clip, and the GND end of the external device is connected to any part of the metal frame of the motorcycle with a clip. At this time, a half-duplex communication serial port circuit can be formed; when the TXD end data of the external device sends data 0 (that is, the COMM port outputs a low level), the signal transmission port TR is at a low level, causing the signal amplification circuit to output a low level to the RXD pin of the MCU processor U0. At this time, the MCU processor U0 enters the communication state, and the TXD pin of the MCU processor U0 outputs a low level to the NOT gate U2, causing the NOT gate U2 to output a high level to the base of the transistor Q1. At this time, the transistor Q1 is turned on, causing the positive electrode of the fuel level sensor Rt to short-circuit to the ground. In this way, the positive electrode of the fuel level sensor Rt remains at a low level, causing the RXD pin of the MCU processor U0 to be at a low level. Similarly, when the TXD pin of the MCU processor U0 sends data 0, the RXD end of the Upgrader is also low level;
[0018] From the above, it can be seen that the motorcycle instrument communication circuit of the present invention can establish a conversion circuit with equal voltage between the external device and the motorcycle instrument MCU processor U0, thereby enabling the external device and the motorcycle instrument MCU processor U0 to achieve half-duplex serial port communication.
[0019] In summary, the present invention can utilize the fuel level sensor of a motorcycle and the fuel level signal line connected thereto to enable external equipment to communicate with the motorcycle instrument, thus eliminating the need to modify the main cable. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the use of the motorcycle instrument communication circuit of the present utility model. DETAILED DESCRIPTION
[0021] In order to further explain the technical solution of the present invention, the present invention will be described in detail below through specific embodiments.
[0022] like Figure 1 As shown, the utility model discloses a motorcycle instrument communication circuit, which includes a signal transmission port TR, a data output port TX, a data input port RX, an oil level signal port FE, a resistor R1, a signal amplification circuit and a function switching circuit; wherein the signal transmission port TR is used to connect to the oil level signal line connected to the oil level sensor Rt of the motorcycle, the data output port TX, the data input port RX and the oil level signal port FE are used to connect to the RXD pin, TXD pin and ADC pin of the MCU processor U0 of the motorcycle respectively; the signal transmission port TR is connected to the first end of the resistor R1, the oil level signal line The signal port FE, the input end of the signal amplifying circuit and the output end of the function switching circuit, the second end of the resistor R1 is connected to the control power supply VCC, the voltage of the control power supply VCC can be 5V, the output end of the signal amplifying circuit is connected to the data output port TX, and the input end of the function switching circuit is connected to the data input port RX; the function switching circuit includes a NOT gate U2 and a transistor Q1, the input end of the NOT gate U2 is connected to the input end of the function switching circuit, the output end of the NOT gate U2 is connected to the base of the transistor Q1, the collector of the transistor Q1 is connected to the output end of the function switching circuit, and the emitter of the transistor Q1 is grounded.
[0023] The operating principle of the motorcycle instrument communication circuit of the utility model is:
[0024] On a typical motorcycle, the positive electrode of the fuel level sensor Rt is connected to the fuel level signal input terminal FUELIN (VF) of the motorcycle instrument panel through an fuel level signal line, and the negative electrode of the fuel level sensor Rt is connected to the motorcycle's metal frame (i.e., ground). The fuel level signal line is generally installed on the rear seat of the motorcycle, that is, it can be touched by opening the rear seat cushion of the motorcycle.
[0025] The signal transmission port TR of the motorcycle instrument communication circuit of the present invention is connected to the fuel level signal line, and the data output port TX, the data input port RX and the fuel level signal port FE are respectively connected to the RXD pin, TXD pin and ADC pin of the MCU processor U0 of the motorcycle instrument;
[0026] When the MCU processor U0 does not need to communicate with external devices, the voltage of the RXD pin of the MCU processor U0 depends on the output voltage of the signal amplifying circuit, and the TXD pin of the MCU processor U0 outputs a high level. At this time, the input end of the NOT gate U2 is high, causing the NOT gate U2 to output a low level to the base of the transistor Q1, thereby making the transistor Q1 non-conductive. At this time, the positive voltage of the oil level sensor Rt is input to the input end of the signal amplifying circuit and the oil level signal port FE. At this time, the signal amplifying circuit outputs a high level to the RXD pin of the MCU processor U0. According to the communication specification of the serial port, the RXD pin of the MCU processor U0 is continuously high, which makes the MCU processor U0 in a communication waiting state; and the voltage of the oil level signal port FE changes accordingly with the change of the positive voltage of the oil level sensor Rt. In this way, the MCU processor U0 can obtain the corresponding oil level information by obtaining the voltage of the oil level signal port FE.
[0027] When the MCU processor U0 of the motorcycle instrument needs to communicate with an external device for upgrading or other data exchange, the COMM port of the external device (the external device supports half-duplex serial communication, and the external device can achieve half-duplex serial communication through the signal amplification circuit and function switching circuit of the present invention) is connected to the positive electrode of the fuel level sensor Rt with a clip, and the GND end of the external device is connected to any part of the metal frame of the motorcycle with a clip. At this time, a half-duplex communication serial port circuit can be formed; when the TXD end data of the external device sends data 0 (that is, the COMM port outputs a low level), the signal transmission port TR is at a low level, causing the signal amplification circuit to output a low level to the RXD pin of the MCU processor U0. At this time, the MCU processor U0 enters the communication state, and the TXD pin of the MCU processor U0 outputs a low level to the NOT gate U2, causing the NOT gate U2 to output a high level to the base of the transistor Q1. At this time, the transistor Q1 is turned on, causing the positive electrode of the fuel level sensor Rt to short-circuit to the ground. In this way, the positive electrode of the fuel level sensor Rt remains at a low level, causing the RXD pin of the MCU processor U0 to be at a low level. Similarly, when the TXD pin of the MCU processor U0 sends data 0, the RXD end of the Upgrader is also low level;
[0028] From the above, it can be seen that the motorcycle instrument communication circuit of the present invention can establish a conversion circuit with equal voltage between the external device and the motorcycle instrument MCU processor U0, thereby enabling the external device and the motorcycle instrument MCU processor U0 to achieve half-duplex serial port communication.
[0029] In an embodiment of the present invention, the signal amplification circuit may include an operational amplifier U1, a resistor R3, and a resistor R4, wherein the non-inverting input of the operational amplifier U1 is connected to the input of the signal amplification circuit, the inverting input of the operational amplifier U1 is connected to the first end of the resistor R3 and the first end of the resistor R4, the second end of the resistor group R4 is grounded, and the second end of the resistor R3 and the output of the operational amplifier U1 are connected to the output of the signal amplification circuit. The signal amplification circuit may also include a resistor R2 and a capacitor C1, wherein the non-inverting input of the operational amplifier U1 is connected to the input of the signal amplification circuit via the resistor R2 and the capacitor C1, the first end of the resistor R2 and the first end of the capacitor C1 are connected to the non-inverting input of the operational amplifier U1, the second end of the resistor R2 is connected to the input of the signal amplification circuit, and the second end of the capacitor C1 is grounded; the resistor R2 and the capacitor C1 form a filter circuit to ensure the output stability of the signal amplification circuit.
[0030] In an embodiment of the present invention, the function switching circuit may further include a resistor R5. The output end of the NOT gate U2 is connected to the base of the transistor Q1 via the resistor R5. The resistor R5 may function as a current limiting protection.
[0031] In an embodiment of the present invention, the motorcycle instrument communication circuit may further include an input filter circuit, through which the fuel level signal port FE is connected to the signal transmission port TR. The input filter circuit can filter out noise, allowing the MCU processor U0 to accurately obtain fuel level information. Specifically, the input filter circuit includes a resistor R6 and a capacitor C2. The first end of the resistor R6 is connected to the signal transmission port TR, the second end of the resistor R6 and the first end of the capacitor C2 are connected to the fuel level signal port FE, and the second end of the capacitor C2 is grounded.
[0032] In summary, the present invention can utilize the fuel level sensor of a motorcycle and the fuel level signal line connected thereto to enable external equipment to communicate with the motorcycle instrument, thus eliminating the need to modify the main cable.
[0033] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A motorcycle instrument communication circuit, characterized in that: It includes a signal transmission port TR, a data output port TX, a data input port RX, a fuel level signal port FE, a resistor R1, a signal amplification circuit, and a function switching circuit; the signal transmission port TR is used to connect to the fuel level signal line connected to the motorcycle's fuel level sensor Rt, and the data output port TX, the data input port RX, and the fuel level signal port FE are used to connect to the RXD pin, TXD pin, and ADC pin of the motorcycle instrument's MCU processor U0, respectively; The signal transmission port TR is connected to the first end of the resistor R1, the fuel level signal port FE, the input end of the signal amplification circuit, and the output end of the function switching circuit. The second end of the resistor R1 is connected to the control power supply VCC. The output end of the signal amplification circuit is connected to the data output port TX, and the input end of the function switching circuit is connected to the data input port RX. The function switching circuit includes a NOT gate U2 and a transistor Q1. The input end of the NOT gate U2 is connected to the input end of the function switching circuit, the output end of the NOT gate U2 is connected to the base of the transistor Q1, the collector of the transistor Q1 is connected to the output end of the function switching circuit, and the emitter of the transistor Q1 is grounded.
2. The motorcycle instrument communication circuit according to claim 1, characterized in that: The signal amplification circuit includes an operational amplifier U1, a resistor R3 and a resistor R4. The non-inverting input terminal of the operational amplifier U1 is connected to the input terminal of the signal amplification circuit, the inverting input terminal of the operational amplifier U1 is connected to the first end of the resistor R3 and the first end of the resistor R4, the second end of the resistor group R4 is grounded, and the second end of the resistor R3 and the output terminal of the operational amplifier U1 are connected to the output terminal of the signal amplification circuit.
3. The motorcycle instrument communication circuit according to claim 2, characterized in that: The signal amplification circuit also includes a resistor R2 and a capacitor C1. The non-inverting input terminal of the operational amplifier U1 is connected to the input terminal of the signal amplification circuit through the resistor R2 and the capacitor C1. The first end of the resistor R2 and the first end of the capacitor C1 are connected to the non-inverting input terminal of the operational amplifier U1. The second end of the resistor R2 is connected to the input terminal of the signal amplification circuit, and the second end of the capacitor C1 is grounded.
4. The motorcycle instrument communication circuit according to claim 1, wherein: The function switching circuit further includes a resistor R5 , and the output end of the NOT gate U2 is connected to the base of the transistor Q1 via the resistor R5 .
5. The motorcycle instrument communication circuit according to claim 1, characterized in that: It also includes an input filter circuit, and the oil level signal port FE is connected to the signal transmission port TR through the input filter circuit.
6. The motorcycle instrument communication circuit according to claim 5, characterized in that: The input filter circuit includes a resistor R6 and a capacitor C2, a first end of the resistor R6 is connected to the signal transmission port TR, a second end of the resistor R6 and a first end of the capacitor C2 are connected to the oil level signal port FE, and a second end of the capacitor C2 is grounded.
7. The motorcycle instrument communication circuit according to claim 1, characterized in that: The voltage of the control power supply VCC is 5V.