Sensor gateway equipment based on OneWire bus communication
By designing a sensor gateway device containing multiple circuit modules, the problems of limited number of sensors, short signal transmission distance and large measurement errors under OneWire bus communication mode are solved, and efficient and convenient sensor data reading and protocol conversion are achieved. Meets the multi-point and large-scale temperature and humidity detection needs.
Patent Information
- Application Number
- CN202411671736.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-21
AI Technical Summary
In the prior art, the communication method of temperature sensors and humidity sensors has problems such as limited number of sensors mounted on the bus, short signal transmission distance, complex circuits and high cost, and large measurement errors.
Design a sensor gateway device based on OneWire bus communication, including MCU circuit, power supply circuit, OneWire bus driver circuit, isolated RS485 circuit, Ethernet circuit, CAN bus circuit, EEPROM storage circuit and Bluetooth module to realize sensors on OneWire bus Data reading and protocol conversion.
It realizes that more than 1,000 sensors are mounted on the OneWire bus, extending the sensor detection range, reducing the complexity and cost of the system, and solving the problem of large measurement errors, realizing data interoperability between IoT devices and OneWire bus devices.
Smart Images

Figure CN119496676A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a sensor gateway device based on OneWire bus communication. Background Art
[0002] With the development of Internet of Things technology, the use of sensors is increasing, especially temperature sensors and humidity sensors. At present, the communication methods of temperature sensors and humidity sensors are mainly serial methods such as I2C, I2S, RS485, RS232 and analog signals. The above communication methods have the following main disadvantages in practical applications: the number of sensors mounted on the bus is small, and generally no more than ten sensors can be mounted stably; when sensors are mounted, the signal transmission distance becomes shorter; the above communication methods all require power supply, have high requirements for circuits, and increase costs; for analog signal sensors, the length of the bus and the wire material have an inevitable impact on the reading results, so the sensor must be calibrated each time it is used, otherwise the measurement error will be extremely large, greatly reducing the convenience of use. Summary of the Invention
[0003] The object of the present invention is to provide a sensor gateway device based on OneWire bus communication to solve the problems raised in the prior art.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a sensor gateway device based on OneWire bus communication, comprising an MCU circuit, a power supply circuit, a OneWire bus driver circuit, an isolated RS485 circuit, an Ethernet circuit, a CAN bus circuit, an EEPROM storage circuit, and a Bluetooth module, wherein the MCU circuit is electrically connected to the power supply circuit, the OneWire bus driver circuit, the isolated RS485 circuit, the Ethernet circuit, the CAN bus circuit, the EEPROM storage circuit, and the Bluetooth module;
[0005] Among them, the MCU circuit is responsible for communicating with each circuit, the power circuit is used to provide power to each circuit, the OneWire bus driver circuit is responsible for driving external sensors, the isolated RS485 circuit is responsible for communicating with third-party devices via the 485 protocol, the Ethernet circuit is responsible for communicating with third-party devices via the TCP protocol, the CAN bus circuit is responsible for communicating with third-party devices via the CAN bus, the EEPROM storage circuit is used to store configuration information and operation logs, and the Bluetooth module is responsible for communicating with third-party devices via Bluetooth.
[0006] Furthermore, the MCU circuit includes a microcontroller U1, a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, a capacitor C5, a capacitor C6, a capacitor C8, a resistor R2, a resistor R4, a resistor R6, a resistor R8, a resistor R10, a resistor R20, an interface P2, an inductor FB1, a light-emitting diode LED4, and an analog ground AGND;
[0007] Pin 1, pin 19, pin 32, pin 48, and pin 64 of the microcontroller U1 are connected in parallel to VCC+3V3_MCU, and the anode of the light-emitting diode LED4 and the first ends of the inductor FB1, resistor R20, resistor R8, capacitor C1, capacitor C2, capacitor C3, capacitor C5, and capacitor C8 are connected to VCC+3V3_MCU;
[0008] Pin 18, pin 31, pin 47, and pin 63 of the microcontroller U1 are connected to ground in parallel, and pin 2 of the interface P2 and the second ends of capacitors C6, C4, C1, C2, C3, C5, and C8, as well as the second ends of resistors R6, R4, and R2 are grounded;
[0009] The second end of the inductor FB1 is connected to the 13th pin of the microcontroller U1, the 4th pin of the interface P2 is connected to the 46th pin of the microcontroller U1, the 3rd pin of the interface P2 is connected to the 49th pin of the microcontroller U1, the 1st pin of P2 is connected to the 7th pin of the microcontroller U1, and the second end of the resistor R10 is connected to the 2nd pin of the microcontroller U1;
[0010] The first end of capacitor C6 is located on the line between the second end of inductor FB1 and pin 13 of microcontroller U1, the second end of resistor R20 is connected to pin 5 of interface P2, resistor R8 is connected in series with capacitor C4, the second end of resistor R8 and the first end of capacitor C4 are located on the line between pin 7 of microcontroller U1 and pin 1 of Header5 interface P2, capacitors C1, C2, C3, C5, and C8 are connected in parallel, the cathode of light-emitting diode LED4 is connected to the first end of resistor R10, the first end of resistor R6 is connected to pin 12 of microcontroller U1, the analog ground AGND is located on the line between the first end of resistor R6 and pin 12 of microcontroller U1, the first end of resistor R4 is connected to pin 60 of microcontroller U1, and the first end of resistor R2 is connected to pin 28 of microcontroller U1.
[0011] Furthermore, the power supply circuit includes chip U4, linear regulator V1, positive voltage regulator U10, positive voltage regulator U16, positive voltage regulator U17, capacitor C7, capacitor C9, capacitor C10, capacitor C11, capacitor C13, capacitor C14, capacitor C24, capacitor C25, capacitor C18, capacitor C21, capacitor C28, capacitor C30, electrolytic capacitor E1, electrolytic capacitor E2, iron core inductor L1, resistor R42, resistor R43, resistor R44, resistor R16, resistor R18, resistor R47, MOS tube Q1, light-emitting diode LED3, self-recovery fuse F5, and interface JP7;
[0012] The first end of the iron core inductor L1, the first end of the resistor R16, the positive electrode of the electrolytic capacitor E1 and the first end of the capacitor C7, capacitor C10, capacitor C11, capacitor C24, capacitor C18, capacitor C28 and the third pin of the linear regulator V1, the first and third pins of the positive voltage regulator U10, the first and third pins of the positive voltage regulator U16, and the first and third pins of the positive voltage regulator U17 are connected to VCC+6V5, the second pin of the linear regulator V1 and the first end of the capacitor C13 and capacitor C14 are connected to VCC+5V0, and the positive voltage regulator U1 is connected to VCC+6V5. The 5th pin of 0 and the first end of capacitor C25 are connected to VCC+3V3_NET, the 5th pin of positive voltage device U16 and the first end of capacitor C21 are connected to VCC+3V3, the 5th pin of positive voltage device U17 and the first end of capacitor C30 are connected to VCC+3V3_MCU, the 1st pin of interface JP7, the drain of MOS tube Q1 and the first end of resistor R42 are connected to VCC+EXT, the second end of self-resettable fuse F5, the positive electrode of electrolytic capacitor E2, the 5th pin of chip U4 and the second end of resistor R47 are connected to VCC+IN;
[0013] Pin 2 of interface JP7, the anode of light-emitting diode LED3, the second end of resistor R44, the cathodes of electrolytic capacitor E1 and electrolytic capacitor E2, pin 2 of chip U4, pin 1 of linear regulator V1, pin 2 of positive voltage regulators U10, U16 and U17, and the second ends of capacitors C10, C11, C13, C14, C17, C24, C25, C18, C21, C28 and C30 are grounded;
[0014] The second end of the resistor R42 is connected to the cathode of the light-emitting diode LED3. The resistors R43 and R44 are connected in series. The gate of the MOS transistor Q1 is connected to the line between the resistors R43 and R44. The first end of the resistor R43 is connected to the line between the source of the MOS transistor Q1 and the first end of the resistor R42. The source of the MOS transistor Q1 is connected to the first end of the resettable fuse F5.
[0015] The electrolytic capacitor E1 is connected to the capacitor C7 in parallel, the first end of the resistor R18 is connected to the line between the second end of the capacitor C7 and the second pin of the chip U4, the second end of the resistor R18 is connected to the third pin of the chip U4, the second end of the resistor R16 is connected to the line between the second end of the resistor R18 and the third pin of the chip U4, the second end of the iron core inductor L1 is connected to the sixth pin of the chip U4, the second end of the capacitor C9 is connected to the line between the iron core inductor L1 and the sixth pin of the chip U4, the first end of the capacitor C9 is connected to the first pin of the chip U4, and the first end of the resistor R47 is connected to the fourth pin of the chip U4; the capacitor C10 and the capacitor C11 are connected in parallel, and the capacitor C13 and the capacitor C14 are connected in parallel.
[0016] Furthermore, the OneWire bus driver circuit includes resistor R9, resistor R11, resistor R31, resistor R32, resistor R38, resistor R39, resistor R12, resistor R13, resistor R17, resistor R19, resistor R28, resistor R29, resistor R33, resistor R34, resistor R35, resistor R45, resistor R46, resistor R5, resistor R14, resistor R15, N-type field effect transistor Q3, N-type field effect transistor Q5, N-type field effect transistor Q8, N-type field effect transistor Q9, N-type field effect transistor Q12, N-type field effect transistor Q13, N-type field effect transistor Q16, N-type field effect transistor Q17, N-type field effect transistor Q18, N-type field effect transistor Q19, N-type field effect transistor Q20, N-type field effect transistor Q21, N-type field effect transistor Q22, N-type field effect transistor Q23, N-type field effect transistor Q24, N-type field effect transistor Q25, N-type field effect transistor Q26, N-type field effect transistor Q27, N-type field effect transistor Q28, N-type field effect transistor Q29 ...1, N-type field effect transistor Q22, N-type field effect transistor Q23, N-type field effect transistor Q24, N-type field effect transistor Q25, N-type field effect transistor Q26, N-type field effect transistor Q26, N-type field effect transistor Q27, N-type field effect transistor Q28, N-type field effect transistor Q29, N-type field effect transistor Q2 Transistor Q17, Schottky diode D1, Schottky diode D3, Schottky diode D4, Schottky diode D2, transient suppressor diode DT1, transient suppressor diode DT2, transient suppressor diode DT3, transient suppressor diode DT4, transistor Q2, transistor Q6, transistor Q10, transistor Q14, resettable fuse F3, resettable fuse F1, resettable fuse F2, resettable fuse F4, NPN transistor Q4, NPN transistor Q7, NPN transistor Q11, NPN transistor Q15, connector JP2, connector JP4, connector JP5, connector JP3;
[0017] The gate of the N-type field effect transistor Q3 is connected to pin 53 of the microcontroller U1, the anode of the Schottky diode D1 is connected to pin 54 of the microcontroller U1, the gate of the N-type field effect transistor Q8 is connected to pin 8 of the microcontroller U1, the anode of the Schottky diode D3 is connected to pin 9 of the microcontroller U1, the gate of the N-type field effect transistor Q12 is connected to pin 16 of the microcontroller U1, the anode of the Schottky diode D4 is connected to pin 17 of the microcontroller U1, the gate of the N-type field effect transistor Q16 is connected to pin 10 of the microcontroller U1, and the anode of the Schottky diode D2 is connected to pin 11 of the microcontroller U1; a first end of the resistor R19 is connected to pin 52 of the microcontroller U1, a first end of the resistor R33 is connected to pin 3 of the microcontroller U1, a first end of the resistor R45 is connected to pin 20 of the microcontroller U1, and a first end of the resistor R14 is connected to pin 4 of the microcontroller U1;
[0018] First ends of resistors R9, R11, R31, R32, R38, R39, R12, R13, R17, R29, R35, and R5 and sources of transistors Q2, Q6, Q10, and Q14 are connected to VCC+5V0;
[0019] The sources of N-type field effect transistor Q3, N-type field effect transistor Q5, N-type field effect transistor Q8, N-type field effect transistor Q9, N-type field effect transistor Q12, N-type field effect transistor Q13, N-type field effect transistor Q16, and N-type field effect transistor Q17, the resistor R28, the resistor R34, the resistor R46, the second end of the resistor R15, the interface JP2, the interface JP4, the interface JP5, the second pin of the interface JP3, the first ends of the transient suppression diode DT1, the transient suppression diode DT2, the transient suppression diode DT3, and the transient suppression diode DT4, and the emitters of the NPN transistor Q4, the NPN transistor Q7, the NPN transistor Q11, and the NPN transistor Q15 are grounded;
[0020] The second end of resistor R9 is connected to the drain of N-type field effect transistor Q3. The second end of resistor R11, the drain of N-type field effect transistor Q5, the second end of transient suppression diode DT1, and the cathode of Schottky diode D1 are connected to pin 1 of interface JP2. The gate of N-type field effect transistor Q5 is located on the line between the second end of resistor R9 and the drain of N-type field effect transistor Q3.
[0021] The second end of resistor R31 is connected to the drain of N-type field effect transistor Q8. The second end of resistor R32, the drain of N-type field effect transistor Q9, the second end of transient suppression diode DT2, and the cathode of Schottky diode D3 are connected to pin 1 of interface JP4. The gate of N-type field effect transistor Q9 is located on the line between the second end of resistor R31 and the drain of N-type field effect transistor Q8.
[0022] The second end of resistor R38 is connected to the drain of N-type field effect transistor Q12. The second end of resistor R39, the drain of N-type field effect transistor Q13, the second end of transient suppressor diode DT3, and the cathode of Schottky diode D4 are connected to pin 1 of interface JP5. The gate of N-type field effect transistor Q13 is located on the line between the second end of resistor R38 and the drain of N-type field effect transistor Q12.
[0023] The second end of the resistor R12 is connected to the drain of the N-type field effect transistor Q16. The second end of the resistor R13, the drain of the N-type field effect transistor Q17, the second end of the transient suppression diode DT4, and the cathode of the Schottky diode D2 are connected to the first pin of the interface JP3. The gate of the N-type field effect transistor Q17 is located on the line between the second end of the resistor R12 and the drain of the N-type field effect transistor Q16.
[0024] The second end of resistor R17 and the gate of transistor Q2 are connected to the collector of NPN transistor Q4. The drain of transistor Q2 is connected to the first end of resettable fuse F3. The second end of resettable fuse F3 is located in the line between the cathode of Schottky diode D1 and pin 1 of interface JP2. The second end of resistor R19 and the first end of resistor R28 are connected to the base of NPN transistor Q4.
[0025] The second end of resistor R29 and the gate of transistor Q6 are connected to the collector of NPN transistor Q7. The drain of transistor Q6 is connected to the first end of resettable fuse F1. The second end of resettable fuse F1 is located in the line between the cathode of Schottky diode D3 and pin 1 of connector JP4. The second end of resistor R33 and the first end of resistor R34 are connected to the base of NPN transistor Q7.
[0026] The second end of resistor R35 and the gate of transistor Q10 are connected to the collector of NPN transistor Q11. The drain of transistor Q10 is connected to the first end of resettable fuse F2. The second end of resettable fuse F2 is located in the line between the cathode of Schottky diode D4 and pin 1 of connector JP5. The second end of resistor R45 and the first end of resistor R46 are connected to the base of NPN transistor Q11.
[0027] The second end of the resistor R5 and the gate of the transistor Q14 are connected to the collector of the NPN transistor Q15. The drain of the transistor Q14 is connected to the first end of the resettable fuse F4. The second end of the resettable fuse F4 is located on the line between the cathode of the Schottky diode D2 and the first pin of the interface JP3. The second end of the resistor R14 and the first end of the resistor R15 are connected to the base of the NPN transistor Q15.
[0028] Furthermore, the isolated RS485 circuit includes a transceiver U2, a DC-DC conversion module U15, a capacitor C16, a capacitor C26, a capacitor C12, a capacitor C17, a resistor R21, a resistor R24, a resistor R22, a resistor R23, a resistor R25, a transformer L2, an electrostatic suppression diode U9, and an interface P5;
[0029] Pin 3 of the transceiver U2 is connected to pin 38 of the microcontroller U1, pins 4 and 5 of the transceiver U2 are connected in parallel to pin 39 of the microcontroller U1, and pin 6 of the transceiver U2 is connected to pin 37 of the microcontroller U1;
[0030] The first end of resistor R21, the second end of capacitor C16, the second end of resistor R24, and pin 1 of transceiver U2 are connected to VCC+3V3, the second end of capacitor C26, the first end of capacitor C17, the second end of resistor R25, interface 16 of transceiver U2, pin 4 of DC-DC conversion module U15, and pin 4 of DC-DC conversion module U15 are connected to VCC+5VOO, and the second end of capacitor C12 and pin 2 of DC-DC conversion module U15 are connected to VCC+5V0;
[0031] Capacitor C16, the first end of capacitor C12, pin 7 and pin 8 of transceiver U2, and pin 1 of DC-DC converter module U15 are connected to GND; the first end of capacitor C26, the first end of resistor R22, the second end of electrostatic suppression diode U9, pin 9, pin 10, and pin 15 of transceiver U2, and pin 3 of DC-DC converter module U15 are connected to GNDOO;
[0032] The second end of R21 is located on the line between pin 38 of microcontroller U1 and pin 3 of transceiver U2, the second end of capacitor C16 is connected to pin 1 of transceiver U2, the first end of resistor R24 is located on the line between pin 6 of transceiver U2 and pin 37 of microcontroller U1, the second end of capacitor C26 is connected to pin 16 of transceiver U2, the left side of the first end of transformer L2 is connected to pin 13 of transceiver U2, the left side of the second end of transformer L2 is connected to pin 12 of transceiver U2, and the right side of the first end of transformer L2 is connected to Pin 2 of interface P5 and the right side of the second end of transformer L2 are connected to pin 1 of interface P5. The second end of resistor R22, the first end of resistor R23, and the upper portion of the first end of electrostatic suppression diode U9 are located on the line between the left side of the first end of transformer L2 and pin 13 of transceiver U2. The second end of resistor R23, the first end of resistor R25, and the lower portion of the first end of electrostatic suppression diode U9 are located on the line between the left side of the second end of transformer L2 and pin 12 of transceiver U2. Resistors R22, R23, and R25 are connected in series.
[0033] Furthermore, the Ethernet circuit includes a serial port server U5, a capacitor C19, a resistor R49, a resistor R50, a resistor R51, and a resistor R52;
[0034] Pin 8 of the serial port server U5 is connected to pin 42 of the microcontroller U1, and pin 9 of the serial port server U5 is connected to pin 43 of the microcontroller U1;
[0035] Connect the first end of resistor R49, resistor R50, resistor R51, resistor R52, the first end of capacitor C19, and pins 11 and 14 of the serial port server U5 to VCC+3V3_NET.
[0036] The second end of capacitor C19 and pins 10 and 16 of the serial port server U5 are grounded.
[0037] The second end of resistor R49 is connected to pin 3 of the serial port server U5, the second end of resistor R50 is connected to pin 4 of the serial port server U5, the second end of resistor R51 is connected to pin 5 of the serial port server U5, the second end of resistor R52 is connected to pin 6 of the serial port server U5, pin 41 of the microcontroller U1 is located on the line between the second end of resistor R50 and pin 4 of the serial port server U5, and pin 40 of the microcontroller U1 is located on the line between the second end of resistor R52 and pin 6 of the serial port server U5.
[0038] Furthermore, the CAN bus circuit includes a transceiver U3, a capacitor C49, a capacitor C51, a capacitor C52, a capacitor C53, a capacitor C54, a common-mode inductor filter L4, a resistor R36, a resistor R37, a circuit protection element U18, and an interface P1;
[0039] Pin 1 of the transceiver U3 is connected to pin 45 of the microcontroller U1, and pin 4 of the transceiver U3 is connected to pin 44 of the microcontroller U1;
[0040] A first end of capacitor C49 and pin 3 of transceiver U3 are connected to VCC+5V0, and a first end of capacitor C51 and pin 5 of transceiver U3 are connected to VCC+3V3;
[0041] The second ends of capacitors C49, C51, C52, C53, and C54, the second end of circuit protection element U18, and pins 2 and 8 of transceiver U3 are grounded;
[0042] The left side of the first end of the common-mode inductor filter L4 is connected to the 7th pin of the transceiver U3, the left side of the second end of the common-mode inductor filter L4 is connected to the 6th pin of the transceiver U3, the right side of the first end of the common-mode inductor filter L4 is connected to the 2nd pin of the interface P1, and the right side of the second end of the common-mode inductor filter L4 is connected to the 1st pin of the interface P1. The first end of the resistor R36, the first end of the capacitor C52 and the upper part of the first end of the circuit protection element U18 are located on the line between the left side of the first end of the common-mode inductor filter L4 and the 7th pin of the CAN transceiver U3. The second end of the resistor R37, the first end of the capacitor C54 and the lower part of the first end of the circuit protection element U18 are located on the line between the left side of the second end of the common-mode inductor filter L4 and the 6th pin of the transceiver U3. The capacitor C52 and the capacitor C54 are connected in series, the resistor R36 and the resistor R37 are connected in series, and the first end of the capacitor C53 is located on the line between the second end of the resistor R36 and the first end of the resistor R37.
[0043] Furthermore, the EEPROM storage circuit includes a chip U7, a capacitor C23, a resistor R40, and a resistor R41;
[0044] Resistor R40, the second end of resistor R41, the first end of capacitor C23, and pin 8 of chip U7 are connected to VCC+3V3_MCU;
[0045] The second end of the capacitor C23 and the 7th pin of the chip U7 are grounded, and the 1st pin, the 2nd pin, the 3rd pin, and the 4th pin of the chip U7 are grounded in parallel;
[0046] A first end of the resistor R40 is connected to the 6th pin of the chip U7 , and a first end of the resistor R41 is connected to the 5th pin of the chip U7 .
[0047] Furthermore, the Bluetooth module includes a Bluetooth wireless module U8, a capacitor C15, a capacitor C20, a capacitor C22, a resistor R48, a resistor R53, and a resistor R54;
[0048] The 2nd pin of the Bluetooth wireless module U8 is connected to the 25th pin of the microcontroller U1, the 3rd pin of the Bluetooth wireless module U8 is connected to the 24th pin of the microcontroller U1, the 11th pin of the Bluetooth wireless module U8 is connected to the 29th pin of the microcontroller U1, the 13th pin of the Bluetooth wireless module U8 is connected to the 30th pin of the microcontroller U1, and the 18th pin of the Bluetooth wireless module U8 is connected to the 23rd pin of the microcontroller U1;
[0049] The first end of the resistor R48, the first end of the capacitor C22, the resistor R53, the second end of the resistor R54, and the 14th pin of the Bluetooth wireless module U8 are connected to VCC+3V3;
[0050] Pin 1, pin 12, pin 16, pin 20, pin 21, pin 24, pin 25 of the Bluetooth wireless module U8 and the second ends of capacitors C15, C20, and C22 are grounded;
[0051] The first end of capacitor C15 is connected to pin 26 of the Bluetooth wireless module U8, the second end of resistor 48 is located on the line between the first end of capacitor C15 and pin 26 of the Bluetooth wireless module U8, the first end of resistor R53 is connected to pin 15 of the Bluetooth wireless module U8, the first end of capacitor C20 is connected to the line between the first end of resistor R53 and pin 16 of the Bluetooth wireless module U8, and the first end of resistor R54 is connected to pin 17 of the Bluetooth wireless module U8.
[0052] Compared with the prior art, the present invention has the following advantages: The present invention adopts a modular design, requiring only a single PCB to read sensor data on the OneWire bus and perform protocol conversion. The protocol can be converted to mainstream communication protocols such as RS485, CAN, TCP, and MQTT, making it convenient for various devices to read sensor data on the OneWire bus. The OneWire bus of the present invention can support over 1,000 temperature sensors or humidity sensors, effectively resolving the issue of a limited number of sensors mounted on the bus. Sensors can be arranged in large numbers and in multiple locations, enabling more detailed temperature data detection. Furthermore, the bus of the present invention can be extended to hundreds of meters, expanding the sensor detection range and meeting the needs of multi-point, wide-area temperature and humidity detection. Current IoT devices and network platforms are hindered from directly reading data from OneWire bus devices. The transmission method of the present invention overcomes this obstacle, enabling data intercommunication between the IoT, network platforms, and OneWire bus devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a system structure block diagram of the present invention;
[0054] Figure 2 This is a schematic diagram of the power supply circuit of the present invention;
[0055] Figure 3 This is a schematic diagram of the OneWire bus driver circuit of the present invention;
[0056] Figure 4 This is the schematic diagram of the isolated RS485 circuit of the present invention;
[0057] Figure 5 This is a schematic diagram of the Ethernet circuit of the present invention;
[0058] Figure 6 This is a schematic diagram of the CAN communication bus circuit of the present invention;
[0059] Figure 7 It is the principle diagram of the EEPROM storage circuit of the present invention;
[0060] Figure 8 This is a schematic diagram of the Bluetooth communication circuit of the present invention;
[0061] Figure 9 This is the schematic diagram of the MCU circuit of the present invention. DETAILED DESCRIPTION
[0062] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.
[0063] Example: Figures 1-9 As shown, the present invention provides a technical solution, a sensor gateway device based on OneWire bus communication, including an MCU circuit, a power supply circuit, a OneWire bus drive circuit, an isolated RS485 circuit, an Ethernet circuit, a CAN bus circuit, an EEPROM storage circuit, and a Bluetooth module, wherein the MCU circuit is electrically connected to the power supply circuit, the OneWire bus drive circuit, the isolated RS485 circuit, the Ethernet circuit, the CAN bus circuit, the EEPROM storage circuit, and the Bluetooth module;
[0064] Among them, the MCU circuit is responsible for communicating with each circuit, the power circuit is used to provide power to each circuit, the OneWire bus driver circuit is responsible for driving external sensors, the isolated RS485 circuit is responsible for communicating with third-party devices via the 485 protocol, the Ethernet circuit is responsible for communicating with third-party devices via the TCP protocol, the CAN bus circuit is responsible for communicating with third-party devices via the CAN bus, the EEPROM storage circuit is used to store configuration information and operation logs, and the Bluetooth module is responsible for communicating with third-party devices via Bluetooth.
[0065] See Figure 9 , the MCU circuit includes an STM32F091RCT6 microcontroller U1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, capacitor C5, capacitor C6, capacitor C8, resistor R2, resistor R4, resistor R6, resistor R8, resistor R10, resistor R20, Header5 interface P2, inductor FB1, light-emitting diode LED4 and analog ground AGND;
[0066] Among them, the MCU circuit is the core part of the device. The main frequency of the STM32F091RCT6 microcontroller U1 is 48MHZ and it has multiple peripheral interfaces.
[0067] Pin 1, pin 19, pin 32, pin 48, and pin 64 of the STM32F091RCT6 microcontroller U1 are connected in parallel to VCC+3V3_MCU, and the anode of the light-emitting diode LED4, the inductor FB1, and the first ends of the resistors R20, R8, capacitors C1, C2, C3, C5, and C8 are connected to VCC+3V3_MCU;
[0068] Pins 18, 31, 47, and 63 of the STM32F091RCT6 microcontroller U1 are connected to ground in parallel, and pin 2 of the Header 5 interface P2 and the second ends of capacitors C6, C4, C1, C2, C3, C5, and C8, as well as the second ends of resistors R6, R4, and R2 are grounded;
[0069] The second end of the inductor FB1 is connected to pin 13 of the STM32F091RCT6 microcontroller U1, the 4th pin of the Header 5 interface P2 is connected to pin 46 of the STM32F091RCT6 microcontroller U1, the 3rd pin of the Header 5 interface P2 is connected to pin 49 of the STM32F091RCT6 microcontroller U1, the 1st pin of the Header 5 interface P2 is connected to pin 7 of the STM32F091RCT6 microcontroller U1, and the second end of the resistor R10 is connected to pin 2 of the STM32F091RCT6 microcontroller U1;
[0070] The first end of the capacitor C6 is connected to the line between the second end of the inductor FB1 and the 13th pin of the STM32F091RCT6 microcontroller U1, the second end of the resistor R20 is connected to the 5th pin of the header 5 interface P2, the resistor R8 is connected in series with the capacitor C4, and the second end of the resistor R8 and the first end of the capacitor C4 are connected between the 7th pin of the STM32F091RCT6 microcontroller U1 and the header 5. On the line between pin 1 of interface P2, capacitors C1, C2, C3, C5, and C8 are connected in parallel, the cathode of light-emitting diode LED4 is connected to the first end of resistor R10, the first end of resistor R6 is connected to pin 12 of STM32F091RCT6 microcontroller U1, the analog ground AGND is connected to the line between the first end of resistor R6 and pin 12 of STM32F091RCT6 microcontroller U1, the first end of resistor R4 is connected to pin 60 of STM32F091RCT6 microcontroller U1, and the first end of resistor R2 is connected to pin 28 of STM32F091RCT6 microcontroller U1.
[0071] See Figure 2The power supply circuit includes SY8113BADC chip U4, ME1117A50B3G linear regulator V1, ME6217C33M5G-N positive voltage regulator U10, ME6217C33M5G-N positive voltage regulator U16, ME6217C33M5G-N positive voltage regulator U17, capacitor C7, capacitor C9, capacitor C10, capacitor C11, capacitor C13, capacitor C14, capacitor C24, capacitor C25, capacitor C18, capacitor C21, capacitor C28, capacitor C30, electrolytic capacitor E1, electrolytic capacitor E2, iron core inductor L1, resistor R42, resistor R43, resistor R44, resistor R16, resistor R18, resistor R47, AO3401 MOS tube Q1, light-emitting diode LED3, resettable fuse F5, and interface JP7;
[0072] The power input uses an AO3401 MOS tube Q1 to control the power supply. When the positive and negative poles of the external power supply are reversed, Q1 will not conduct, providing reverse connection protection. A resettable fuse F5 is connected after Q1 to provide short-circuit protection. In addition, the system uses the DC-DC converter chip SY8113BADC. This chip has a wide voltage input range of 4.5V-18V, a switching frequency of 500kHz, a maximum output current of 3A, and an adjustable output voltage. In this device, the output voltage of the SY8113BADC is 6.5V. To ensure the reliability of the output power supply, after being stepped down by the SY8113BADC, the voltage is converted to 5V and 3.3V through four LDO chips.
[0073] The first end of the iron core inductor L1, the first end of the resistor R16, the positive electrode of the electrolytic capacitor E1, and the first end of the capacitors C7, C10, C11, C24, C18, and C28, as well as the third pin of the ME1117A50B3G linear regulator V1, the first and third pins of the ME6217C33M5G-N positive voltage regulator U10, the first and third pins of the ME6217C33M5G-N positive voltage regulator U16, and the first and third pins of the ME6217C33M5G-N positive voltage regulator U17 are connected to VCC+6V5, ME1117 Connect the second pin of A50B3G linear regulator V1 and the first ends of capacitors C13 and C14 to VCC+5V0. Connect the fifth pin of ME6217C33M5G-N positive voltage regulator U10 and the first end of capacitor C25 to VCC+3V3_NET. Connect the fifth pin of ME6217C33M5G-N positive voltage regulator U16 and the first end of capacitor C21 to VCC+3V3. Connect the fifth pin of ME6217C33M5G-N positive voltage regulator U17 and the first end of capacitor C30 to VCC+3V3_MCU. Connect the first pin of connector JP7, the drain of AO3401 MOS tube Q1, and the first end of resistor R42 to VCC+EXT. Connect the second end of resettable fuse F5, the positive electrode of electrolytic capacitor E2, the fifth pin of SY8113BADC chip U4, and the second end of resistor R47 to VCC+IN.
[0074] Pin 2 of interface JP7, the anode of light-emitting diode LED3, the second end of resistor R44, the cathodes of electrolytic capacitor E1 and electrolytic capacitor E2, pin 2 of SY8113BADC chip U4, pin 1 of ME1117A50B3G linear regulator V1, pin 2 of ME6217C33M5G-N positive voltage regulators U10, U16, and U17, and the second ends of capacitors C10, C11, C13, C14, C17, C24, C25, C18, C21, C28, and C30 are grounded;
[0075] The second end of resistor R42 is connected to the cathode of light-emitting diode LED3. Resistors R43 and R44 are connected in series. The gate of AO3401 MOS transistor Q1 is connected to the line between resistors R43 and R44. The first end of resistor R43 is connected to the line between the drain of AO3401 MOS transistor Q1 and the first end of resistor R42. The source of AO3401 MOS transistor Q1 is connected to the first end of resettable fuse F5.
[0076] Electrolytic capacitor E1 is connected to capacitor C7 in parallel, the first end of resistor R18 is connected to the line between the second end of capacitor C7 and the second pin of SY8113BADC chip U4, the second end of resistor R18 is connected to the third pin of SY8113BADC chip U4, the second end of resistor R16 is connected to the line between the second end of resistor R18 and the third pin of SY8113BADC chip U4, the second end of iron core inductor L1 is connected to the sixth pin of SY8113BADC chip U4, the second end of capacitor C9 is connected to the line between iron core inductor L1 and the sixth pin of SY8113BADC chip U4, the first end of capacitor C9 is connected to the first pin of SY8113BADC chip U4, and the first end of resistor R47 is connected to the fourth pin of SY8113BADC chip U4; capacitor C10 and capacitor C11 are connected in parallel, and capacitor C13 and capacitor C14 are connected in parallel.
[0077] See Figure 3The OneWire bus driver circuit includes resistors R9, R11, R31, R32, R38, R39, R12, R13, R17, R19, R28, R29, R33, R34, R35, R45, R46, R5, R14, R15, 2N7002 N-type field effect transistor Q3, 2N7002 N-type field effect transistor Q5, 2N7002 N-type field effect transistor Q8, 2N7002 N-type field effect transistor Q9, 2N7002 N-type field effect transistor Q12, 2N7002 N-type field effect transistor Q13, 2N7002 N-type field effect transistor Q16, 2N7002 N-type field-effect transistor Q17, 1N5819 Schottky diode D1, 1N5819 Schottky diode D3, 1N5819 Schottky diode D4, 1N5819 Schottky diode D2, SMAJ6.0CA TVS transient suppressor diode DT1, SMAJ6.0CA TVS transient suppressor diode DT2, SMAJ6.0CA TVS transient suppressor diode DT3, SMAJ6.0CA TVS transient suppressor diode DT4, AO3401A transistor Q2, AO3401A transistor Q6, AO3401A transistor Q10, AO3401A transistor Q14, BSMD0805L-150 resettable fuse F3, BSMD0805L-150 resettable fuse F1, BSMD0805L-150 resettable fuse F2, BSMD0805L-150 resettable fuse F4, DTC143ZCA NPN transistor Q4, DTC143ZCA NPN transistor Q7, DTC143ZCA NPN transistor Q11, DTC143ZCANPN transistor Q15, connector JP2, connector JP4, connector JP5, connector JP3;
[0078] Each OneWire driver circuit implements OneWire protocol communication via two I / O interfaces, improving operational efficiency. Transient voltage suppression diodes (TVS) are located at the OneWire bus inputs to effectively suppress voltage surges on the bus. Furthermore, a strong pull-up circuit is provided at each OneWire bus driver port. By controlling Q2 (or Q6, Q10, or Q14), it connects the OneWire bus line to the 5V power supply, providing a reliable operating voltage for OneWire sensors operating in parasitic power mode.
[0079] The gate of the 2N7002 N-type field effect transistor Q3 is connected to pin 53 of the STM32F091RCT6 microcontroller U1. The anode of the 1N5819 Schottky diode D1 is connected to pin 54 of the STM32F091RCT6 microcontroller U1. The gate of the 2N7002 N-type field effect transistor Q8 is connected to pin 8 of the STM32F091RCT6 microcontroller U1. The anode of the 1N5819 Schottky diode D3 is connected to pin 9 of the STM32F091RCT6 microcontroller U1. The gate of the 2N7002 N-type field effect transistor Q12 is connected to pin 16 of the STM32F091RCT6 microcontroller U1. The anode of the 1N5819 Schottky diode D4 is connected to pin 17 of the STM32F091RCT6 microcontroller U1. The 2N7002 The gate of the N-type field effect transistor Q16 is connected to pin 10 of the STM32F091RCT6 microcontroller U1, and the anode of the 1N5819 Schottky diode D2 is connected to pin 11 of the STM32F091RCT6 microcontroller U1; the first end of the resistor R19 is connected to pin 52 of the STM32F091RCT6 microcontroller U1, the first end of the resistor R33 is connected to pin 3 of the STM32F091RCT6 microcontroller U1, the first end of the resistor R45 is connected to pin 20 of the STM32F091RCT6 microcontroller U1, and the first end of the resistor R14 is connected to pin 4 of the STM32F091RCT6 microcontroller U1;
[0080] First ends of resistors R9, R11, R31, R32, R38, R39, R12, R13, R17, R29, R35, and R5 and sources of transistors Q2, Q6, Q10, and Q14 of AO3401A are connected to VCC+5V0;
[0081] Sources of 2N7002 N-type FET Q3, 2N7002 N-type FET Q5, 2N7002 N-type FET Q8, 2N7002 N-type FET Q9, 2N7002 N-type FET Q12, 2N7002 N-type FET Q13, 2N7002 N-type FET Q16, and 2N7002 N-type FET Q17, resistors R28, R34, R46, the second end of resistor R15, DTC143ZCA NPN transistor Q4, DTC143ZCA NPN transistor Q7, DTC143ZCA NPN transistor Q11, and the emitter of DTC143ZCA NPN transistor Q15, connectors JP2, JP4, JP5, and pin 2 of connector JP3, SMAJ6.0CA TVS diode DT1, and SMAJ6.0CA First ends of TVS transient suppression diode DT2, SMAJ6.0CA TVS transient suppression diode DT3, SMAJ6.0CA TVS transient suppression diode DT4 and emitters of DTC143ZCA NPN transistor Q4, DTC143ZCA NPN transistor Q7, DTC143ZCA NPN transistor Q11, and DTC143ZCA NPN transistor Q15 are grounded;
[0082] The second end of resistor R9 is connected to the drain of 2N7002 N-type field effect transistor Q3. The second end of resistor R11, the drain of 2N7002 N-type field effect transistor Q5, the second end of SMAJ6.0CA TVS transient suppression diode DT1, and the cathode of 1N5819 Schottky diode D1 are connected to pin 1 of interface JP2. The gate of 2N7002 N-type field effect transistor Q5 is located on the line between the second end of resistor R9 and the drain of 2N7002 N-type field effect transistor Q3.
[0083] The second end of resistor R31 is connected to the drain of 2N7002 N-type field effect transistor Q8. The second end of resistor R32, the drain of 2N7002 N-type field effect transistor Q9, the second end of SMAJ6.0CA TVS transient suppression diode DT2, and the cathode of 1N5819 Schottky diode D3 are connected to pin 1 of interface JP4. The gate of 2N7002 N-type field effect transistor Q9 is located on the line between the second end of resistor R31 and the drain of 2N7002 N-type field effect transistor Q8.
[0084] The second end of resistor R38 is connected to the drain of 2N7002 N-type field effect transistor Q12. The second end of resistor R39, the drain of 2N7002 N-type field effect transistor Q13, the second end of SMAJ6.0CA TVS transient suppression diode DT3, and the cathode of 1N5819 Schottky diode D4 are connected to pin 1 of interface JP5. The gate of 2N7002 N-type field effect transistor Q13 is located on the line between the second end of resistor R38 and the drain of 2N7002 N-type field effect transistor Q12.
[0085] The second end of resistor R12 is connected to the drain of 2N7002 N-type field effect transistor Q16. The second end of resistor R13, the drain of 2N7002 N-type field effect transistor Q17, the second end of SMAJ6.0CA TVS transient suppression diode DT4, and the cathode of 1N5819 Schottky diode D2 are connected to pin 1 of interface JP3. The gate of 2N7002 N-type field effect transistor Q17 is located on the line between the second end of resistor R12 and the drain of 2N7002 N-type field effect transistor Q16.
[0086] The second end of resistor R17 and the gate of AO3401A transistor Q2 are connected to the collector of DTC143ZCA NPN transistor Q4. The drain of AO3401A transistor Q2 is connected to the first end of BSMD0805L-150 resettable fuse F3. The second end of BSMD0805L-150 resettable fuse F3 is located in the circuit between the cathode of 1N5819 Schottky diode D1 and pin 1 of connector JP2. The second end of resistor R19 and the first end of resistor R28 are connected to the base of DTC143ZCA NPN transistor Q4.
[0087] The second end of resistor R29 and the gate of AO3401A transistor Q6 are connected to the collector of DTC143ZCA NPN transistor Q7. The drain of AO3401A transistor Q6 is connected to the first end of BSMD0805L-150 resettable fuse F1. The second end of BSMD0805L-150 resettable fuse F1 is located in the circuit between the cathode of 1N5819 Schottky diode D3 and pin 1 of connector JP4. The second end of resistor R33 and the first end of resistor R34 are connected to the base of DTC143ZCA NPN transistor Q7.
[0088] The second end of resistor 357 and the gate of AO3401A transistor Q10 are connected to the collector of DTC143ZCA NPN transistor Q11. The drain of AO3401A transistor Q10 is connected to the first end of BSMD0805L-150 resettable fuse F2. The second end of BSMD0805L-150 resettable fuse F2 is located in the circuit between the cathode of 1N5819 Schottky diode D4 and pin 1 of connector JP5. The second end of resistor R45 and the first end of resistor R46 are connected to the base of DTC143ZCA NPN transistor Q11.
[0089] The second end of resistor R5 and the gate of AO3401A transistor Q14 are connected to the collector of DTC143ZCA NPN transistor Q15. The drain of AO3401A transistor Q14 is connected to the first end of BSMD0805L-150 resettable fuse F4. The second end of BSMD0805L-150 resettable fuse F4 is located in the line between the cathode of 1N5819 Schottky diode D2 and pin 1 of connector JP3. The second end of resistor R14 and the first end of resistor R15 are connected to the base of DTC143ZCA NPN transistor Q15.
[0090] See Figure 4 The isolated RS485 circuit includes SIT3485ISO RS485 transceiver U2, B0505S-1WR3 DC-DC converter module U15, capacitor C16, capacitor C26, capacitor C12, capacitor C17, resistor R21, resistor R24, resistor R22, resistor R23, resistor R25, ACT45C-510-2P-TL000 transformer L2, SM712 electrostatic suppression diode U9, and Header2 interface P5;
[0091] Among them, the model of the 485 isolation chip is IS03082. The use of the isolation chip can effectively reduce the echo interference on the 485 bus. At the same time, an SM712 electrostatic suppression diode U9 is provided at the input end of the 485 communication to suppress the surge voltage on the bus. At the same time, an ACT45C-510-2P-TL000 transformer L2 is provided to eliminate common-mode interference on the bus, thereby increasing the reliability of communication.
[0092] Pin 3 of the SIT3485ISO RS485 transceiver U2 is connected to pin 38 of the STM32F091RCT6 microcontroller U1. Pins 4 and 5 of the SIT3485ISO RS485 transceiver U2 are connected to pin 39 of the STM32F091RCT6 microcontroller U1. Pin 6 of the SIT3485ISO RS485 transceiver U2 is connected to pin 37 of the STM32F091RCT6 microcontroller U1.
[0093] The first end of resistor R21, the second end of capacitor C16, the second end of resistor R24, and pin 1 of SIT3485ISO RS485 transceiver U2 are connected to VCC+3V3, the second end of capacitor C26, the first end of capacitor C17, the second end of resistor R25, interface 16 of SIT3485ISO RS485 transceiver U2, pin 4 of B0505S-1WR3 DC-DC converter module U15, and pin 4 of B0505S-1WR3 DC-DC converter module U15 are connected to VCC+5VOO, the second end of capacitor C12, pin 2 of B0505S-1WR3 DC-DC converter module U15, and pin 2 of B0505S-1WR3 DC-DC converter module U15 are connected to VCC+5V0;
[0094] Connect capacitor C16, the first end of capacitor C12, pins 7 and 8 of the SIT3485ISO RS485 transceiver U2, and pin 1 of the B0505S-1WR3 DC-DC converter module U15 to GND. Connect the first end of capacitor C26, the first end of resistor R22, the second end of the SM712 electrostatic suppression diode U9, pins 9, 10, and 15 of the SIT3485ISO RS485 transceiver U2, and pin 3 of the B0505S-1WR3 DC-DC converter module U15 to GNDOO.
[0095] The second end of resistor R21 is located in the line between pin 38 of the STM32F091RCT6 microcontroller U1 and pin 3 of the SIT3485ISO RS485 transceiver U2. The second end of capacitor C16 is connected to pin 1 of the SIT3485ISO RS485 transceiver U2. The first end of resistor R24 is located in the line between pin 6 of the SIT3485ISO RS485 transceiver U2 and pin 37 of the STM32F091RCT6 microcontroller U1. The second end of capacitor C26 is connected to pin 16 of the SIT3485ISO RS485 transceiver U2. The left side of the first end of the ACT45C-510-2P-TL000 transformer L2 is connected to pin 13 of the SIT3485ISO RS485 transceiver U2. The left side of the second end of the ACT45C-510-2P-TL000 transformer L2 is connected to the SIT3485ISO Pin 12 of the RS485 transceiver U2 and the right side of the first end of the ACT45C-510-2P-TL000 transformer L2 are connected to pin 2 of the Header 2 interface P5. The right side of the second end of the ACT45C-510-2P-TL000 transformer L2 is connected to pin 1 of the Header 2 interface P5. The second end of the resistor R22, the first end of the resistor R23, and the upper part of the first end of the SM712 electrostatic suppression diode U9 are located on the line between the left side of the first end of the ACT45C-510-2P-TL000 transformer L2 and pin 13 of the SIT3485ISORS485 transceiver U2. The second end of the resistor R23, the first end of the resistor R25, and the lower part of the first end of the SM712 electrostatic suppression diode U9 are located on the left side of the second end of the ACT45C-510-2P-TL000 transformer L2 and the SIT3485ISO On the line between the 12th pins of the RS485 transceiver U2, resistors R22, D23, and R25 are connected in series.
[0096] See Figure 5 ,The Ethernet circuit includes NE2-T1M serial port server U5, capacitor C19, resistor R49, resistor R50, resistor R51, and resistor R52;
[0097] Pin 8 of the NE2-T1M serial port server U5 is connected to pin 42 of the STM32F091RCT6 microcontroller U1, and pin 9 of the NE2-T1M serial port server U5 is connected to pin 43 of the STM32F091RCT6 microcontroller U1.
[0098] Connect resistors R49, R50, R51, the first end of resistor R52, the first end of capacitor C19, and pins 11 and 14 of the NE2-T1M serial port server U5 to VCC+3V3_NET.
[0099] The second end of capacitor C19 and pins 10 and 16 of the NE2-T1M serial port server U5 are grounded.
[0100] The second end of resistor R49 is connected to pin 3 of NE2-T1M serial port server U5, the second end of resistor R50 is connected to pin 4 of NE2-T1M serial port server U5, the second end of resistor R51 is connected to pin 5 of NE2-T1M serial port server U5, the second end of resistor R52 is connected to pin 6 of NE2-T1M serial port server U5, pin 41 of STM32F091RCT6 microcontroller U1 is located on the line between the second end of resistor R50 and pin 4 of NE2-T1M serial port server U5, and pin 40 of STM32F091RCT6 microcontroller U1 is located on the line between the second end of resistor R52 and pin 6 of NE2-T1M serial port server U5.
[0101] See Figure 6 The CAN bus circuit includes the TJA1050 CAN transceiver U3, capacitor C49, capacitor C51, capacitor C52, capacitor C53, capacitor C54, ACT45C-510-2P-TL000 common-mode inductor filter L4, resistor R36, resistor R37, PESD1CAN circuit protection component U18, and Header 2 interface P1;
[0102] Among them, the communication rate of the TJA1050 CAN transceiver U3 can reach 1Mbps. This chip is powered by 3.3V voltage and is connected to the MCU through the CAN interface for CAN communication. It can realize the communication between the device and third-party devices through the CAN protocol.
[0103] Pin 1 of the TJA1050 CAN transceiver U3 is connected to pin 45 of the STM32F091RCT6 microcontroller U1, and pin 4 of the TJA1050 CAN transceiver U3 is connected to pin 44 of the STM32F091RCT6 microcontroller U1.
[0104] The first end of capacitor C49 and pin 3 of TJA1050 CAN transceiver U3 are connected to VCC+5V0, and the first end of capacitor C51 and pin 5 of TJA1050 CAN transceiver U3 are connected to VCC+3V3;
[0105] The second ends of capacitors C49, C51, C52, C53, and C54, the second end of the PESD1CAN circuit protection element U18, and pins 2 and 8 of the TJA1050 CAN transceiver U3 are grounded;
[0106] The left side of the first end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 is connected to pin 7 of the TJA1050 CAN transceiver U3, the left side of the second end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 is connected to pin 6 of the TJA1050 CAN transceiver U3, the right side of the first end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 is connected to pin 2 of the Header 2 interface P1, and the right side of the second end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 is connected to pin 1 of the Header 2 interface P1. The first end of the resistor R36, the first end of the capacitor C52, and the upper part of the first end of the PESD1 CAN circuit protection element U18 are located on the left side of the first end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 and the TJA1050 On the line between the 7th pin of the CAN transceiver U3, the second end of the resistor R37, the first end of the capacitor C54 and the lower part of the first end of the PESD1CAN circuit protection element U18 are located on the left side of the second end of the ACT45C-510-2P-TL000 common-mode inductor filter L4 and the 6th pin of the TJA1050 CAN transceiver U3, capacitors C52 and C54 are connected in series, resistors R36 and R37 are connected in series, and the first end of capacitor C53 is located on the line between the second end of resistor R36 and the first end of resistor R37.
[0107] See Figure 7 ,EEPROM storage circuit includes BL24C512 EEPROM chip U7, capacitor C23, resistor R40, resistor R4;
[0108] The EEPROM chip model is BL24C512, which has a capacity of 512Kbits. It communicates with the MCU via the I2C protocol, enabling the MCU to store and read system configuration parameters.
[0109] Resistor R40, the second end of resistor R41, the first end of capacitor C23, and pin 8 of BL24C512 EEPROM chip U7 are connected to VCC+3V3_MCU;
[0110] The second end of the capacitor C23 and the 7th pin of the BL24C512 EEPROM chip U7 are grounded, and the 1st pin, the 2nd pin, the 3rd pin, and the 4th pin of the BL24C512 EEPROM chip U7 are connected to the ground in parallel;
[0111] A first end of the resistor R40 is connected to the 6th pin of the BL24C512 EEPROM chip U7, and a first end of the resistor R41 is connected to the 5th pin of the BL24C512 EEPROM chip U7.
[0112] See Figure 8 , the Bluetooth module includes E104-BT09 Bluetooth wireless module U8, capacitor C15, capacitor C20, capacitor C22, resistor R48, resistor R53, and resistor R5;
[0113] Among them, the model of the Bluetooth wireless module is E104-BT09, which supports the BLE5.0 protocol;
[0114] Pin 2 of the E104-BT09 Bluetooth wireless module U8 is connected to pin 25 of the STM32F091RCT6 microcontroller U1, pin 3 of the E104-BT09 Bluetooth wireless module U8 is connected to pin 24 of the STM32F091RCT6 microcontroller U1, pin 11 of the E104-BT09 Bluetooth wireless module U8 is connected to pin 29 of the STM32F091RCT6 microcontroller U1, pin 13 of the E104-BT09 Bluetooth wireless module U8 is connected to pin 30 of the STM32F091RCT6 microcontroller U1, and pin 18 of the E104-BT09 Bluetooth wireless module U8 is connected to pin 23 of the STM32F091RCT6 microcontroller U1;
[0115] Connect the first end of resistor R48, the first end of capacitor C22, the second ends of resistors R53 and R54, and pin 14 of the E104-BT09 Bluetooth wireless module U8 to VCC+3V3;
[0116] Pin 1, pin 12, pin 16, pin 20, pin 21, pin 24, pin 25 of the E104-BT09 Bluetooth wireless module U8 and the second ends of capacitors C15, C20, and C22 are grounded;
[0117] The first end of capacitor C15 is connected to pin 26 of the E104-BT09 Bluetooth wireless module U8, the second end of resistor 48 is located on the line between the first end of capacitor C15 and pin 26 of the E104-BT09 Bluetooth wireless module U8, the first end of resistor R53 is connected to pin 15 of the E104-BT09 Bluetooth wireless module U8, the first end of capacitor C20 is located on the line between the first end of resistor R53 and pin 16 of the E104-BT09 Bluetooth wireless module U8, and the first end of resistor R54 is connected to pin 17 of the E104-BT09 Bluetooth wireless module U8.
[0118] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art will be able to modify the technical solutions described in the aforementioned embodiments or substitute equivalents for some of the technical features. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A sensor gateway device based on OneWire bus communication, characterized in that: The device comprises an MCU circuit, a power supply circuit, a OneWire bus driving circuit, an isolated RS485 circuit, an Ethernet circuit, a CAN bus circuit, an EEPROM storage circuit, and a Bluetooth module, wherein the MCU circuit is electrically connected to the power supply circuit, the OneWire bus driving circuit, the isolated RS485 circuit, the Ethernet circuit, the CAN bus circuit, the EEPROM storage circuit, and the Bluetooth module; The MCU circuit is responsible for communicating with each circuit, the power supply circuit is used to provide power for each circuit, the OneWire bus drive circuit is responsible for driving an external sensor, the isolated RS485 circuit is responsible for communicating with a third-party device via the 485 protocol, the Ethernet circuit is responsible for communicating with a third-party device via the TCP protocol, the CAN bus circuit is responsible for communicating with a third-party device via the CAN bus, the EEPROM storage circuit is used to store configuration information and operation logs, and the Bluetooth module is responsible for communicating with a third-party device via Bluetooth.
2. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The MCU circuit includes a microcontroller U1, a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, a capacitor C5, a capacitor C6, a capacitor C8, a resistor R2, a resistor R4, a resistor R6, a resistor R8, a resistor R10, a resistor R20, an interface P2, an inductor FB1, a light emitting diode LED4 and an analog ground wire AGND; The 1st, 19th, 32nd, 48th and 64th pins of the microcontroller U1 are connected in parallel to VCC+3V3_MCU, and the positive electrode of the light-emitting diode LED4 and the first ends of the inductor FB1, the resistor R20, the resistor R8, the capacitor C1, the capacitor C2, the capacitor C3, the capacitor C5 and the capacitor C8 are connected to VCC+3V3_MCU; The 18th pin, the 31st pin, the 47th pin and the 63rd pin of the microcontroller U1 are connected to the ground in parallel, the 2nd pin of the interface P2 and the second ends of the capacitors C6, C4, C1, C2, C3, C5 and C8 and the second ends of the resistors R6, R4 and R2 are grounded; The second end of the inductor FB1 is connected to the 13th pin of the microcontroller U1, the 4th pin of the interface P2 is connected to the 46th pin of the microcontroller U1, the 3rd pin of the interface P2 is connected to the 49th pin of the microcontroller U1, the 1st pin of P2 is connected to the 7th pin of the microcontroller U1, and the second end of the resistor R10 is connected to the 2nd pin of the microcontroller U1; The first end of the capacitor C6 is located on the line between the second end of the inductor FB1 and the 13th pin of the microcontroller U1, the second end of the resistor R20 is connected to the 5th pin of the interface P2, the resistor R8 is connected in series with the capacitor C4, the second end of the resistor R8 and the first end of the capacitor C4 are located on the line between the 7th pin of the microcontroller U1 and the 1st pin of the Header5 interface P2, the capacitors C1, C2, C3, C5 and C8 are connected in parallel, the cathode of the light-emitting diode LED4 is connected to the first end of the resistor R10, the first end of the resistor R6 is connected to the 12th pin of the microcontroller U1, the analog ground line is located on the line between the first end of the resistor R6 and the 12th pin of the microcontroller U1, the first end of the resistor R4 is connected to the 60th pin of the microcontroller U1, and the first end of the resistor R2 is connected to the 28th pin of the microcontroller U1.
3. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The power supply circuit includes a chip U4, a linear regulator V1, a positive voltage regulator U10, a positive voltage regulator U16, a positive voltage regulator U17, a capacitor C7, a capacitor C9, a capacitor C10, a capacitor C11, a capacitor C13, a capacitor C14, a capacitor C24, a capacitor C25, a capacitor C18, a capacitor C21, a capacitor C28, a capacitor C30, an electrolytic capacitor E1, an electrolytic capacitor E2, an iron core inductor L1, a resistor R42, a resistor R43, a resistor R44, a resistor R16, a resistor R18, a resistor R47, a MOS tube Q1, a light emitting diode LED3, a resettable fuse F5, and an interface JP7; The first end of the iron core inductor L1, the first end of the resistor R16, the positive electrode of the electrolytic capacitor E1 and the first ends of the capacitors C7, C10, C11, C24, C18 and C28, as well as the third pin of the linear regulator V1, the first and third pins of the positive voltage regulator U10, the first and third pins of the positive voltage regulator U16, and the first and third pins of the positive voltage regulator U17 are connected to VCC+6V5, the second pin of the linear regulator V1 and the first ends of the capacitors C13 and C14 are connected to VCC+5V0, and the The 5th pin and the first end of the capacitor C25 are connected to VCC+3V3_NET, the 5th pin of the positive voltage device U16 and the first end of the capacitor C21 are connected to VCC+3V3, the 5th pin of the positive voltage device U17 and the first end of the capacitor C30 are connected to VCC+3V3_MCU, the 1st pin of the interface JP7, the drain of the MOS tube Q1 and the first end of the resistor R42 are connected to VCC+EXT, and the second end of the self-recovery fuse F5, the positive electrode of the electrolytic capacitor E2, the 5th pin of the chip U4 and the second end of the resistor R47 are connected to VCC+IN; The second pin of the interface JP7, the positive electrode of the light emitting diode LED3, the second end of the resistor R44, the negative electrodes of the electrolytic capacitor E1 and the electrolytic capacitor E2, the second pin of the chip U4, the first pin of the linear regulator V1, the second pins of the positive voltage devices U10, U16 and U17, and the second ends of the capacitors C10, C11, C13, C14, C17, C24, C25, C18, C21, C28 and C30 are grounded; The second end of the resistor R42 is connected to the cathode of the light emitting diode LED3, the resistors R43 and R44 are connected in series, the gate of the MOS transistor Q1 is connected to the line between the resistor R43 and the resistor R44, the first end of the resistor R43 is connected to the line between the source of the MOS transistor Q1 and the first end of the resistor R42, and the source of the MOS transistor Q1 is connected to the first end of the resettable fuse F5; The electrolytic capacitor E1 is connected in parallel with the capacitor C7, the first end of the resistor R18 is connected to the line between the second end of the capacitor C7 and the second pin of the chip U4, the second end of the resistor R18 is connected to the third pin of the chip U4, the second end of the resistor R16 is connected to the line between the second end of the resistor R18 and the third pin of the chip U4, the second end of the core inductor L1 is connected to the sixth pin of the chip U4, the second end of the capacitor C9 is connected to the line between the core inductor L1 and the sixth pin of the chip U4, the first end of the capacitor C9 is connected to the first pin of the chip U4, and the first end of the resistor R47 is connected to the fourth pin of the chip U4; the capacitor C10 and the capacitor C11 are connected in parallel, and the capacitor C13 and the capacitor C14 are connected in parallel.
4. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The OneWire bus driving circuit includes a resistor R9, a resistor R11, a resistor R31, a resistor R32, a resistor R38, a resistor R39, a resistor R12, a resistor R13, a resistor R17, a resistor R19, a resistor R28, a resistor R29, a resistor R33, a resistor R34, a resistor R35, a resistor R45, a resistor R46, a resistor R5, a resistor R14, a resistor R15, an N-type field effect transistor Q3, an N-type field effect transistor Q5, an N-type field effect transistor Q8, an N-type field effect transistor Q9, an N-type field effect transistor Q12, an N-type field effect transistor Q13, an N-type field effect transistor Q16, and an N-type field effect transistor Q17, Schottky diode D1, Schottky diode D3, Schottky diode D4, Schottky diode D2, transient suppression diode DT1, transient suppression diode DT2, transient suppression diode DT3, transient suppression diode DT4, transistor Q2, transistor Q6, transistor Q10, transistor Q14, resettable fuse F3, resettable fuse F1, resettable fuse F2, resettable fuse F4, NPN transistor Q4, NPN transistor Q7, NPN transistor Q11, NPN transistor Q15, interface JP2, interface JP4, interface JP5, interface JP3; The gate of the N-type field effect transistor Q3 is connected to the 53rd pin of the microcontroller U1, the anode of the Schottky diode D1 is connected to the 54th pin of the microcontroller U1, the gate of the N-type field effect transistor Q8 is connected to the 8th pin of the microcontroller U1, the anode of the Schottky diode D3 is connected to the 9th pin of the microcontroller U1, the gate of the N-type field effect transistor Q12 is connected to the 16th pin of the microcontroller U1, the anode of the Schottky diode D4 is connected to the 17th pin of the microcontroller U1, the gate of the N-type field effect transistor Q16 is connected to the 10th pin of the microcontroller U1, and the anode of the Schottky diode D2 is connected to the 11th pin of the microcontroller U1; the first end of the resistor R19 is connected to the 52nd pin of the microcontroller U1, the first end of the resistor R33 is connected to the 3rd pin of the microcontroller U1, the first end of the resistor R45 is connected to the 20th pin of the microcontroller U1, and the first end of the resistor R14 is connected to the 4th pin of the microcontroller U1; The first ends of the resistors R9, R11, R31, R32, R38, R39, R12, R13, R17, R29, R35 and R5 and the sources of the transistors Q2, Q6, Q10 and Q14 are connected to VCC+5V0; The sources of the N-type field effect transistors Q3, Q5, Q8, Q9, Q12, Q13, Q16 and Q17, the second ends of the resistors R28, R34, R46 and R15, the second pins of the interfaces JP2, JP4, JP5 and JP3, the first ends of the transient suppression diodes DT1, DT2, DT3 and DT4, and the emitters of the NPN transistors Q4, Q7, Q11 and Q15 are grounded; The second end of the resistor R9 is connected to the drain of the N-type field effect transistor Q3, the second end of the resistor R11, the drain of the N-type field effect transistor Q5, the second end of the transient suppression diode DT1 and the cathode of the Schottky diode D1 are connected to the first pin of the interface JP2, and the gate of the N-type field effect transistor Q5 is located on the line between the second end of the resistor R9 and the drain of the N-type field effect transistor Q3; The second end of the resistor R31 is connected to the drain of the N-type field effect transistor Q8, the second end of the resistor R32, the drain of the N-type field effect transistor Q9, the second end of the transient suppression diode DT2 and the cathode of the Schottky diode D3 are connected to the first pin of the interface JP4, and the gate of the N-type field effect transistor Q9 is located on the line between the second end of the resistor R31 and the drain of the N-type field effect transistor Q8; The second end of the resistor R38 is connected to the drain of the N-type field effect transistor Q12, the second end of the resistor R39, the drain of the N-type field effect transistor Q13, the second end of the transient suppression diode DT3 and the cathode of the Schottky diode D4 are connected to the first pin of the interface JP5, and the gate of the N-type field effect transistor Q13 is located on the line between the second end of the resistor R38 and the drain of the N-type field effect transistor Q12; The second end of the resistor R12 is connected to the drain of the N-type field effect transistor Q16, the second end of the resistor R13, the drain of the N-type field effect transistor Q17, the second end of the transient suppression diode DT4 and the cathode of the Schottky diode D2 are connected to the first pin of the interface JP3, and the gate of the N-type field effect transistor Q17 is located on the line between the second end of the resistor R12 and the drain of the N-type field effect transistor Q16; The second end of the resistor R17 and the gate of the transistor Q2 are connected to the collector of the NPN transistor Q4, the drain of the transistor Q2 is connected to the first end of the resettable fuse F3, the second end of the resettable fuse F3 is located on the line between the cathode of the Schottky diode D1 and the first pin of the interface JP2, and the second end of the resistor R19 and the first end of the resistor R28 are connected to the base of the NPN transistor Q4; The second end of the resistor R29 and the gate of the transistor Q6 are connected to the collector of the NPN transistor Q7, the drain of the transistor Q6 is connected to the first end of the resettable fuse F1, the second end of the resettable fuse F1 is located on the line between the cathode of the Schottky diode D3 and the first pin of the interface JP4, and the second end of the resistor R33 and the first end of the resistor R34 are connected to the base of the NPN transistor Q7; The second end of the resistor R35 and the gate of the transistor Q10 are connected to the collector of the NPN transistor Q11, the drain of the transistor Q10 is connected to the first end of the resettable fuse F2, the second end of the resettable fuse F2 is located on the line between the cathode of the Schottky diode D4 and the first pin of the interface JP5, the second end of the resistor R45 and the first end of the resistor R46 are connected to the base of the NPN transistor Q11; The second end of the resistor R5 and the gate of the transistor Q14 are connected to the collector of the NPN transistor Q15, the drain of the transistor Q14 is connected to the first end of the resettable fuse F4, the second end of the resettable fuse F4 is located on the line between the cathode of the Schottky diode D2 and the first pin of the interface JP3, and the second end of the resistor R14 and the first end of the resistor R15 are connected to the base of the NPN transistor Q15.
5. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The isolated RS485 circuit includes a transceiver U2, a DC-DC conversion module U15, a capacitor C16, a capacitor C26, a capacitor C12, a capacitor C17, a resistor R21, a resistor R24, a resistor R22, a resistor R23, a resistor R25, a transformer L2, an electrostatic suppression diode U9, and an interface P5; The third pin of the transceiver U2 is connected to the 38th pin of the microcontroller U1, the fourth pin and the fifth pin of the transceiver U2 are connected in parallel to the 39th pin of the microcontroller U1, and the sixth pin of the transceiver U2 is connected to the 37th pin of the microcontroller U1; The first end of the resistor R21, the second end of the capacitor C16, the second end of the resistor R24 and the first pin of the transceiver U2 are connected to VCC+3V3, the second end of the capacitor C26, the first end of the capacitor C17, the second end of the resistor R25, the 16th interface of the transceiver U2, the 4th pin of the DC-DC conversion module U15 and the 4th pin of the DC-DC conversion module U15 are connected to VCC+5VOO, and the second end of the capacitor C12 and the 2nd pin of the DC-DC conversion module U15 are connected to VCC+5V0; The capacitor C16, the first end of the capacitor C12, the 7th pin and the 8th pin of the transceiver U2 and the 1st pin of the DC-DC conversion module U15 are grounded, and the first end of the capacitor C26, the first end of the resistor R22, the second end of the electrostatic suppression diode U9, the 9th pin, the 10th pin, the 15th pin of the transceiver U2 and the 3rd pin of the DC-DC conversion module U15 are grounded; The second end of the resistor R21 is located on the line between the 38th pin of the microcontroller U1 and the 3rd pin of the transceiver U2, the second end of the capacitor C16 is connected to the 1st pin of the transceiver U2, the first end of the resistor R24 is located on the line between the 6th pin of the transceiver U2 and the 37th pin of the microcontroller U1, the second end of the capacitor C26 is connected to the 16th pin of the transceiver U2, the left side of the first end of the transformer L2 is connected to the 13th pin of the transceiver U2, the left side of the second end of the transformer L2 is connected to the 12th pin of the transceiver U2, and the right side of the first end of the transformer L2 is connected to the 16th pin of the transceiver U2. The second pin of the interface P5 is connected, the right side of the second end of the transformer L2 is connected to the first pin of the interface P5, the second end of the resistor R22, the first end of the resistor R23 and the upper part of the first end of the electrostatic suppression diode U9 are located on the left side of the first end of the transformer L2 and the line between the 13th pin of the transceiver U2, the second end of the resistor R23, the first end of the resistor R25 and the lower part of the first end of the electrostatic suppression diode U9 are located on the left side of the second end of the transformer L2 and the 12th pin of the transceiver U2, and the resistor R22, the resistor D23 and the resistor R25 are connected in series.
6. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The Ethernet circuit includes a serial port server U5, a capacitor C19, a resistor R49, a resistor R50, a resistor R51, and a resistor R52; The 8th pin of the serial port server U5 is connected to the 42nd pin of the microcontroller U1, and the 9th pin of the serial port server U5 is connected to the 43rd pin of the microcontroller U1; The first ends of the resistors R49, R50, R51, and R52, the first end of the capacitor C19, and the 11th and 14th pins of the serial port server U5 are connected to VCC+3V3_NET; The second end of the capacitor C19 and the 10th and 16th pins of the serial port server U5 are grounded; The second end of the resistor R49 is connected to the 3rd pin of the serial port server U5, the second end of the resistor R50 is connected to the 4th pin of the serial port server U5, the second end of the resistor R51 is connected to the 5th pin of the serial port server U5, the second end of the resistor R52 is connected to the 6th pin of the serial port server U5, the 41st pin of the microcontroller U1 is located on the line between the second end of the resistor R50 and the 4th pin of the serial port server U5, and the 40th pin of the microcontroller U1 is located on the line between the second end of the resistor R52 and the 6th pin of the serial port server U5.
7. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The CAN bus circuit includes a transceiver U3, a capacitor C49, a capacitor C51, a capacitor C52, a capacitor C53, a capacitor C54, a common mode inductor filter L4, a resistor R36, a resistor R37, a circuit protection element U18, and an interface P1; The first pin of the transceiver U3 is connected to the 45th pin of the microcontroller U1, and the fourth pin of the transceiver U3 is connected to the 44th pin of the microcontroller U1; The first end of the capacitor C49 and the third pin of the transceiver U3 are connected to VCC+5V0, and the first end of the capacitor C51 and the fifth pin of the transceiver U3 are connected to VCC+3V3; The second ends of the capacitors C49, C51, C52, C53 and C54, the second end of the circuit protection element U18 and the second and eighth pins of the transceiver U3 are grounded; The left side of the first end of the common-mode inductor filter L4 is connected to the 7th pin of the transceiver U3, the left side of the second end of the common-mode inductor filter L4 is connected to the 6th pin of the transceiver U3, the right side of the first end of the common-mode inductor filter L4 is connected to the 2nd pin of the interface P1, the right side of the second end of the common-mode inductor filter L4 is connected to the 1st pin of the interface P1, and the first end of the resistor R36, the first end of the capacitor C52 and the upper part of the first end of the circuit protection element U18 are located above the common-mode inductor filter L4. and the 7th pin of the CAN transceiver U3, the second end of the resistor R37, the first end of the capacitor C54 and the lower part of the first end of the circuit protection element U18 are located on the line between the left side of the second end of the common mode inductor filter L4 and the 6th pin of the transceiver U3, the capacitor C52 and the capacitor C54 are connected in series, the resistor R36 and the resistor R37 are connected in series, and the first end of the capacitor C53 is located on the line between the second end of the resistor R36 and the first end of the resistor R37.
8. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The EEPROM storage circuit includes a chip U7, a capacitor C23, a resistor R40, and a resistor R41; The resistor R40, the second end of the resistor R41, the first end of the capacitor C23 and the 8th pin of the chip U7 are connected to VCC+3V3_MCU; The second end of the capacitor C23 and the 7th pin of the chip U7 are grounded, and the 1st pin, the 2nd pin, the 3rd pin and the 4th pin of the chip U7 are connected to the ground in parallel; The first end of the resistor R40 is connected to the 6th pin of the chip U7, and the first end of the resistor R41 is connected to the 5th pin of the chip U7.
9. A sensor gateway device based on OneWire bus communication according to claim 1, characterized in that: The Bluetooth module includes a Bluetooth wireless module U8, a capacitor C15, a capacitor C20, a capacitor C22, a resistor R48, a resistor R53, and a resistor R54; The second pin of the Bluetooth wireless module U8 is connected to the 25th pin of the microcontroller U1, the third pin of the Bluetooth wireless module U8 is connected to the 24th pin of the microcontroller U1, the 11th pin of the Bluetooth wireless module U8 is connected to the 29th pin of the microcontroller U1, the 13th pin of the Bluetooth wireless module U8 is connected to the 30th pin of the microcontroller U1, and the 18th pin of the Bluetooth wireless module U8 is connected to the 23rd pin of the microcontroller U1; The first end of the resistor R48, the first end of the capacitor C22, the resistor R53, the second end of the resistor R54 and the 14th pin of the Bluetooth wireless module U8 are connected to VCC+3V3; The first pin, the 12th pin, the 16th pin, the 20th pin, the 21st pin, the 24th pin, the 25th pin of the Bluetooth wireless module U8 and the second ends of the capacitors C15, C20 and C22 are grounded; The first end of the capacitor C15 is connected to the 26th pin of the Bluetooth wireless module U8, the second end of the resistor 48 is located on the line between the first end of the capacitor C15 and the 26th pin of the Bluetooth wireless module U8, the first end of the resistor R53 is connected to the 15th pin of the Bluetooth wireless module U8, the first end of the capacitor C20 is connected to the line between the first end of the resistor R53 and the 16th pin of the Bluetooth wireless module U8, and the first end of the resistor R54 is connected to the 17th pin of the Bluetooth wireless module U8.