Base shield and blood volume control circuit based on RS485 bus
By using a circuit design based on the RS485 bus, the problem of cumbersome control in existing technologies has been solved, enabling real-time monitoring and linkage control of the base shield and health, thus improving the stability and ease of maintenance of the system.
Patent Information
- Application Number
- CN202422998186.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2034-12-05
AI Technical Summary
Most existing base shield and health control circuits control the status of signal lights by outputting voltage through a single I/O signal, which makes the control cumbersome and difficult to maintain later.
The circuit design based on RS485 bus includes a microcontroller, RS485 bus communication circuit, dart signal guide light circuit, signal amplification circuit, signal light control circuit, Type-C interface circuit, external Flash storage circuit and power conversion circuit, to realize real-time monitoring and linkage control of the base's blood volume.
It achieves stable data transmission, strong real-time performance, and high reliability, making it suitable for stable operation in complex environments, while reducing maintenance difficulty and cost.
Smart Images

Figure CN223552024U_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of base shield and health control technology, and to a base shield and health control circuit based on RS485 bus. Background Technology
[0002] The core format of the RoboMaster 2024 University Championship (RMUC 2024) is a shooting competition between robots. Participating teams must design, develop, and build multiple robots that meet specific specifications to form a robot team for the competition. In a seven-minute timed match, both sides engage in tactical combat by controlling their robots; destroying the opponent's base results in victory.
[0003] The base features health and shield displays. By collecting hit information and feeding it back to the base control panel, the control panel controls the health display system to show when health is decreasing, and simultaneously activates the base's shield device.
[0004] Currently, most existing solutions control the status display of traffic lights by outputting voltage through a single I / O signal. This method is cumbersome and inconvenient for later maintenance. Summary of the Invention
[0005] The purpose of this invention is to provide a base shield and health control circuit based on RS485 bus, which realizes real-time monitoring and linkage control of base health.
[0006] This invention provides a base shield and health control circuit based on RS485 bus, including a microcontroller, a two-channel RS485 bus communication circuit electrically connected to the microcontroller, a dart signal guide light circuit electrically connected to the microcontroller, and a signal amplification circuit electrically connected to the microcontroller. The signal amplification circuit is electrically connected to a signal light control circuit.
[0007] Furthermore, the one-channel RS485 bus communication circuit includes an RS485 transceiver module U4. Pin 8 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal, pin 5 of the RS485 transceiver module U4 is electrically connected to the ground terminal, pin 6 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal through resistor R12, pin 6 of the RS485 transceiver module U4 is electrically connected to one end of a transient diode D8, the other end of the transient diode D8 is electrically connected to pin 7 of the RS485 transceiver module U4, resistor R13 is placed between pin 6 and pin 7 of the RS485 transceiver module U4, and pin 7 of the RS485 transceiver module U4 is electrically connected to the ground terminal through resistor R14. The other RS485 bus communication circuit includes an RS485 transceiver module U5. Pin 8 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal, pin 5 of the RS485 transceiver module U5 is electrically connected to the ground terminal, pin 6 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal through a resistor R15, pin 6 of the RS485 transceiver module U5 is electrically connected to one end of a transient diode D9, the other end of the transient diode D9 is electrically connected to pin 7 of the RS485 transceiver module U5, a resistor R16 is placed between pin 6 and pin 7 of the RS485 transceiver module U5, and pin 7 of the RS485 transceiver module U5 is electrically connected to the ground terminal through a resistor R17.
[0008] Furthermore, the dart signal guide light circuit includes a resistor R21. One end of the resistor R21 is electrically connected to the microcontroller, and the other end of the resistor R21 is electrically connected to the gate of the MOSFET Q4. The source of the MOSFET Q4 is electrically connected to the ground terminal. A resistor R23 is placed between the gate and source of the MOSFET Q4. The drain of the MOSFET Q4 is electrically connected to the negative terminal of the dart guide light, and the positive terminal of the dart guide light is electrically connected to the +12V input terminal.
[0009] Furthermore, the signal amplification circuit includes a signal amplification module U6. Pin 1 of the signal amplification module U6 is electrically connected to the +5V input terminal, pin 19 of the signal amplification module U6 is electrically connected to the ground terminal, pin 20 of the signal amplification module U6 is electrically connected to the +5V input terminal, and one end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to pin 20 of the signal amplification module U6, and the other end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to the ground terminal.
[0010] Furthermore, the aforementioned base shield and health control circuit based on RS485 bus also includes a Type-C interface circuit, which is electrically connected to the microcontroller.
[0011] Furthermore, the aforementioned base shield and health control circuit based on RS485 bus also includes an external Flash storage circuit, which is electrically connected to the microcontroller.
[0012] Furthermore, the aforementioned base shield and health control circuit based on RS485 bus also includes a power conversion circuit, which includes a power conversion module U3, model number XL1509-5.0E1.
[0013] Furthermore, the microcontroller is an STM32F103C8T6.
[0014] The beneficial effects of this invention: The base shield and health control circuit based on RS485 bus provided by this invention collects armor plate impact information through RS485 bus to realize real-time monitoring and linkage control of base health. It has the following advantages: Stable data transmission: The bus is a stable communication protocol, capable of long-distance data transmission, suitable for bridging various complex circuit systems; Strong real-time performance: The bus enables real-time data transmission, resulting in faster system response and making it more suitable for applications requiring rapid response; High reliability: The bus has high anti-interference capability and fault tolerance, ensuring stable system operation in complex environments; Easy maintenance: The circuit system based on RS485 bus has a high degree of modularity, making it easy to diagnose and repair, reducing system maintenance costs and difficulty.
[0015] The present invention will be further described in detail below with reference to the embodiments. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of a microprocessor circuit for a base shield and health control circuit based on an RS485 bus.
[0017] Figure 2 This is a schematic diagram of a 2-channel RS485 bus communication circuit.
[0018] Figure 3 This is a schematic diagram of a dart signal guide light circuit.
[0019] Figure 4 This is a schematic diagram of a power conversion circuit.
[0020] Figure 5 This is a schematic diagram of a signal light amplifier circuit.
[0021] Figure 6 This is a schematic diagram of a traffic light control circuit.
[0022] Figure 7 This is a schematic diagram of an external Flash storage circuit.
[0023] Figure 8 This is a schematic diagram of the Type-C interface circuit. Detailed Implementation
[0024] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the specific implementation methods, structural features and effects of the present invention are described in detail below with reference to the accompanying drawings and embodiments.
[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] In the description of this invention, it should be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "aligned", "overlapping", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0027] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature; in the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0028] Example 1
[0029] This embodiment provides a method such as Figures 1 to 8The base shield and health control circuit based on RS485 bus shown includes a microcontroller, two RS485 bus communication circuits electrically connected to the microcontroller, one RS485 bus communication circuit for controlling the base opening and closing by powering the bus servo motor, and the other RS485 bus communication circuit for communicating with the status lights of each armor plate and controlling the signal lights; a dart signal guide light circuit electrically connected to the microcontroller, the dart signal guide light has a reference voltage signal of 12V, while the microcontroller pin's default maximum output is only 3.3V, so a MOSFET is used to design this signal amplification circuit to amplify the 3.3V voltage; the signal amplification circuit electrically connected to the microcontroller is also connected to a signal light control circuit, which controls the armor plate signal lights. However, the reference voltage signal of the armor plate signal lights is 5V, while the microcontroller pin's default maximum output is only 3.3V, so this signal amplification circuit is designed to amplify the 3.3V voltage to 5V.
[0030] Furthermore, such as Figure 1 As shown, the microcontroller is an STM32F103C8T6. The input voltage of this microcontroller is 3.3V, so a 5V to 3.3V power supply module is provided to convert 5V to 3.3V to meet its working requirements. The microcontroller is connected to a clock circuit and a diode indicator light.
[0031] Furthermore, such as Figure 2As shown, the one-channel RS485 bus communication circuit includes an RS485 transceiver module U4. Pin 8 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal, pin 5 of the RS485 transceiver module U4 is electrically connected to the ground terminal, pin 6 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal through resistor R12, pin 6 of the RS485 transceiver module U4 is electrically connected to one end of a transient diode D8, the other end of the transient diode D8 is electrically connected to pin 7 of the RS485 transceiver module U4, resistor R13 is placed between pin 6 and pin 7 of the RS485 transceiver module U4, and pin 7 of the RS485 transceiver module U4 is electrically connected to the ground terminal through resistor R14. The other RS485 bus communication circuit includes an RS485 transceiver module U5. Pin 8 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal, pin 5 of the RS485 transceiver module U5 is electrically connected to the ground terminal, pin 6 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal through a resistor R15, pin 6 of the RS485 transceiver module U5 is electrically connected to one end of a transient diode D9, the other end of the transient diode D9 is electrically connected to pin 7 of the RS485 transceiver module U5, a resistor R16 is placed between pin 6 and pin 7 of the RS485 transceiver module U5, and pin 7 of the RS485 transceiver module U5 is electrically connected to the ground terminal through a resistor R17.
[0032] Furthermore, the RS485 transceiver module U4 and RS485 transceiver module U5 are both SP485EEN-L / TR; the transient diodes D8 and D9 are both P6SMB6.8CA.
[0033] Furthermore, such as Figure 3 As shown, the dart signal guide light circuit includes a resistor R21. One end of the resistor R21 is electrically connected to the microcontroller, and the other end of the resistor R21 is electrically connected to the gate of the MOSFET Q4. The source of the MOSFET Q4 is electrically connected to the ground terminal. A resistor R23 is placed between the gate and source of the MOSFET Q4. The drain of the MOSFET Q4 is electrically connected to the negative terminal of the dart guide light, and the positive terminal of the dart guide light is electrically connected to the +12V input terminal.
[0034] Furthermore, the MOSFET Q4 is model AO3400A.
[0035] Furthermore, such as Figure 5As shown, the signal amplification circuit includes a signal amplification module U6. Pin 1 of the signal amplification module U6 is electrically connected to the +5V input terminal. Pin 19 of the signal amplification module U6 is electrically connected to the ground terminal. Pin 20 of the signal amplification module U6 is electrically connected to the +5V input terminal. One end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to pin 20 of the signal amplification module U6, and the other end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to the ground terminal.
[0036] Furthermore, the signal amplification module U6 is model number 74HC245D.
[0037] Furthermore, such as Figure 6 As shown, the signal amplification circuit is electrically connected to the signal light control circuit. The microcontroller controls the signal light control circuit through the signal amplification circuit, and then controls the armor plate signal light that is electrically connected to the signal light control circuit.
[0038] Furthermore, such as Figure 8 As shown, the base shield and health control circuit based on RS485 bus also includes a Type-C interface circuit, which is electrically connected to the microcontroller.
[0039] Furthermore, such as Figure 7 As shown, the base shield and health control circuit based on RS485 bus also includes an external Flash storage circuit, which is electrically connected to the microcontroller.
[0040] Furthermore, the storage control module U1 of the external Flash storage circuit is model W25Q32JVSIQTR.
[0041] Furthermore, such as Figure 4 As shown, the base shield and health control circuit based on RS485 bus also includes a power conversion circuit, which includes a power conversion module U3, model number XL1509-5.0E1.
[0042] The working process of the base shield and health control circuit based on RS485 bus is as follows:
[0043] The working process of this invention involves two core components: armor plate control and blood volume control, which achieve information transmission and linkage via an RS485 bus. The specific working process is as follows:
[0044] First, after the system starts up, the pressure sensors on the armor plate become active, ready to receive attacks from the player. Simultaneously, the STM32 control board for health control completes initialization, including configuring the RS485 communication module and the WS2811 LED strip driver module, ensuring the entire system is in standby mode.
[0045] When a player strikes the armor plate, a pressure sensor detects the impact force in real time and converts it into an electrical signal. After processing the signal, the sensor sends the impact data to the STM32 control board in the health control section via a built-in RS485 communication module. The use of the RS485 bus ensures the stability and anti-interference capability of the data during transmission.
[0046] After receiving the impact data, the STM32 control board calculates the reduction in blood loss based on a preset algorithm. Then, the control board sends control commands to the WS2811 LED strip via the SPI protocol. The LED strip displays the corresponding color and brightness based on the blood loss reduction value, visually reflecting the degree of damage to the armor plate.
[0047] Throughout the game, the armor plates and health control system maintain constant communication. Whenever the armor plates are hit, the impact data is transmitted to the STM32 control board in real time, and the control board updates the LED display accordingly to ensure that the player receives immediate health feedback.
[0048] In addition, the STM32 control board also has a monitoring function, which monitors the RS485 communication status and the LED strip display in real time. Once an anomaly is detected, such as a communication interruption or LED strip failure, the control board will immediately take corresponding measures, such as re-establishing the communication connection or switching to a backup LED strip, to ensure the smooth running of the game.
[0049] When the game ends, the armor plate sends an end signal to the STM32 control board. Upon receiving the signal, the control board turns off the WS2811 LED strip and restores it to its initial state, preparing for the next game. Simultaneously, the control board stores the game data for analysis, providing a basis for device optimization.
[0050] In summary, this invention tightly connects the armor plates and the health control unit via RS485 bus, achieving an efficient and stable gaming experience. This allows players to intuitively understand the damage status of the armor plates during interaction, enhancing the game's fun and realism.
[0051] In summary, the base shield and health control circuit based on the RS485 bus provided in this embodiment, which collects armor plate impact information through the RS485 bus to achieve real-time monitoring and linkage control of the base's health, has the following advantages: Stable data transmission: The bus is a stable communication protocol that can achieve long-distance data transmission and is suitable for bridging various complex circuit systems; Strong real-time performance: The bus can achieve real-time data transmission, making the system react faster and more suitable for application scenarios requiring rapid response; High reliability: The bus has high anti-interference capability and fault tolerance, which can ensure the stable operation of the system in complex environments; Easy maintenance: The circuit system based on the RS485 bus has a high degree of modularity, is easy to diagnose and repair, and reduces the maintenance cost and difficulty of the system.
[0052] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A base shield and health control circuit based on RS485 bus, characterized in that: It includes a microcontroller, a two-channel RS485 bus communication circuit electrically connected to the microcontroller, a dart signal guide light circuit electrically connected to the microcontroller, and a signal amplification circuit electrically connected to the microcontroller, wherein the signal amplification circuit is electrically connected to a signal light control circuit.
2. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: The one-channel RS485 bus communication circuit includes an RS485 transceiver module U4. Pin 8 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal. Pin 5 of the RS485 transceiver module U4 is electrically connected to the ground terminal. Pin 6 of the RS485 transceiver module U4 is electrically connected to the +5V input terminal through a resistor R12. Pin 6 of the RS485 transceiver module U4 is electrically connected to one end of a transient diode D8. The other end of the transient diode D8 is electrically connected to pin 7 of the RS485 transceiver module U4. A resistor R13 is placed between pin 6 and pin 7 of the RS485 transceiver module U4. Pin 7 of the RS485 transceiver module U4 is electrically connected to the ground terminal through a resistor R14. The other RS485 bus communication circuit includes an RS485 transceiver module U5. Pin 8 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal, pin 5 of the RS485 transceiver module U5 is electrically connected to the ground terminal, pin 6 of the RS485 transceiver module U5 is electrically connected to the +5V input terminal through a resistor R15, pin 6 of the RS485 transceiver module U5 is electrically connected to one end of a transient diode D9, the other end of the transient diode D9 is electrically connected to pin 7 of the RS485 transceiver module U5, a resistor R16 is placed between pin 6 and pin 7 of the RS485 transceiver module U5, and pin 7 of the RS485 transceiver module U5 is electrically connected to the ground terminal through a resistor R17.
3. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: The dart signal guide light circuit includes a resistor R21. One end of the resistor R21 is electrically connected to the microcontroller, and the other end of the resistor R21 is electrically connected to the gate of the MOSFET Q4. The source of the MOSFET Q4 is electrically connected to the ground terminal. A resistor R23 is placed between the gate and source of the MOSFET Q4. The drain of the MOSFET Q4 is electrically connected to the negative terminal of the dart guide light, and the positive terminal of the dart guide light is electrically connected to the +12V input terminal.
4. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: The signal amplification circuit includes a signal amplification module U6. Pin 1 of the signal amplification module U6 is electrically connected to the +5V input terminal. Pin 19 of the signal amplification module U6 is electrically connected to the ground terminal. Pin 20 of the signal amplification module U6 is electrically connected to the +5V input terminal. One end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to pin 20 of the signal amplification module U6, and the other end of capacitor C25 and capacitor C26 connected in parallel is electrically connected to the ground terminal.
5. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: It also includes a Type-C interface circuit, which is electrically connected to the microcontroller.
6. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: It also includes an external Flash memory circuit, which is electrically connected to the microcontroller.
7. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: It also includes a power conversion circuit, which includes a power conversion module U3, model number XL1509-5.0E1.
8. The base shield and health control circuit based on RS485 bus as described in claim 1, characterized in that: The microcontroller is an STM32F103C8T6.