[Must-haves for the 2023 E-sports National One] Question B report template - can be used directly

Task  

Figure 1 Task content 

Require

  Figure 2 Contents of basic requirements

  Figure 3 play part of the content 

illustrate

  Figure 4 Explanation content

Grading

   Figure 5 Score content

text (part)


Summary


        The goal of this experiment is to design and manufacture a coaxial cable length and terminal load detection device, which is realized by using STM32 master control and analog circuit. The unit needs to be able to display the working status, cable length, load type and load parameters. Under the condition of terminal open circuit, the device should be able to detect the cable length, the absolute value of the relative error should not exceed 5%, and the detection time should not exceed 5 seconds. At the same time, the device also needs to correctly judge the load type after connecting the load, and display the resistance or capacitance value of the load. The absolute value of the relative error is not more than 10%.

Keywords: coaxial cable, length detection, load detection, STM32 master control, analog circuit

1 . System solutions

This design uses TI's TM4C123GH6PM as the main control, and the overall system is mainly composed of the main control, capacitor module and inductance module.

1.1 Demonstration and selection of the main control module

Solution 1: Select STM32 master control

Advantages: STM32 master control has good performance and stability, is widely used in embedded systems, and supports rich peripheral interfaces and communication functions.

Disadvantages: It is difficult to get started, and you need to be familiar with its programming environment and interface specifications.

Solution 2: Choose Arduino as the main controller

Advantages: Arduino master control is easy to use, has a large number of open source libraries and sample codes, suitable for rapid prototyping.

Disadvantages: limited resources, relatively weak scalability.

Solution 3: Use Raspberry Pi as the main controller

Advantages: The Raspberry Pi master has powerful computing and graphics processing capabilities, supports multiple operating systems, and can perform advanced communications with other devices.

Disadvantages: High power consumption and relatively expensive price.

Considering the cost, ease of use and performance requirements comprehensively, the first option is adopted, and the STM32 main control is selected.

1.2 Demonstration and selection of hardware control scheme

Option 1: Use analog circuits to build a system, and use the following hardware modules to realize functions

Main components:

1. Clock generator: generate excitation signal and reference clock signal.

2. High-precision counter: used to measure the time delay of the signal.

3. Display screen: display working status, cable length, load type and load parameters.

4. Key switch: used to select and start the corresponding function.

Solution 2: Use digital circuits to build a system, and use the following hardware modules to realize functions

Main components:

1. FPGA chip: used to realize signal generation, measurement and processing.

2. Display module: display working status, cable length, load type, and load parameters.

3. Key switch: used to select and start the corresponding function.

Solution 3: Use a single-chip microcomputer to build a system, and use the following hardware modules to realize functions

Main components:

1. Digital signal processor: used to realize signal generation, measurement and processing.

2. TFT liquid crystal display: display working status, cable length, load type and load parameters.

3. Key switch: used to select and start the corresponding function.

After comprehensive consideration, we choose option 1, which is suitable for analog circuit to realize the function, and the analog circuit can meet the requirements of cable length detection and load detection. This solution not only takes into account the reliability and stability of the hardware, but also takes into account the cost and ease of use.

3.2 Program design

3.2.1 Program function description

The program implements the following functions:

Display system working status, cable length, load type and load parameters.

In the case of an open circuit at the cable terminal, press the "length detection" button to start the detection, the device can detect and display the cable length L, the absolute value of the relative error is not more than 5%, and each detection time does not exceed 5 seconds.

After completing the length detection when the cable terminal is open circuit, keep L unchanged. When the terminal is connected to a resistive or capacitive load, press the "Load Detection" button to start the detection, and the device can correctly judge and display the load type. The time does not exceed 5 seconds.

4. Test plan and test results

4.1 Test scheme

4.1.1 Functional test

(1) Functional test

1. The device can display working status, cable length, load type and load parameters.

2. The cable length is 1000cm≤L≤2000cm, the terminal is open circuit, press the "length detection" button to start the detection, the device can detect and display the cable length L, the absolute value of the relative error is not more than 5%, and the detection time does not exceed 5s.

(2) Load test

1. After the cable length detection is completed under the open circuit condition of the terminal, keep L unchanged, connect a load of resistance and capacitance to the terminal, press the "load detection" button to start the detection, the device can correctly judge and display the load type, one detection The time does not exceed 5s.

This document gives only part of the content, if you want a complete document, you can pay attention to it and send a private message. to get it.

In fact, rigid standards cannot limit us with infinite possibilities, so ah! Come on boys!

Task  

Figure 1 Task content 

Require

  Figure 2 Contents of basic requirements

  Figure 3 play part of the content 

illustrate

  Figure 4 Explanation content

Grading

   Figure 5 Score content

text (part)


Summary


        The goal of this experiment is to design and manufacture a coaxial cable length and terminal load detection device, which is realized by using STM32 master control and analog circuit. The unit needs to be able to display the working status, cable length, load type and load parameters. Under the condition of terminal open circuit, the device should be able to detect the cable length, the absolute value of the relative error should not exceed 5%, and the detection time should not exceed 5 seconds. At the same time, the device also needs to correctly judge the load type after connecting the load, and display the resistance or capacitance value of the load. The absolute value of the relative error is not more than 10%.

Keywords: coaxial cable, length detection, load detection, STM32 master control, analog circuit

1 . System solutions

This design uses TI's TM4C123GH6PM as the main control, and the overall system is mainly composed of the main control, capacitor module and inductance module.

1.1 Demonstration and selection of the main control module

Solution 1: Select STM32 master control

Advantages: STM32 master control has good performance and stability, is widely used in embedded systems, and supports rich peripheral interfaces and communication functions.

Disadvantages: It is difficult to get started, and you need to be familiar with its programming environment and interface specifications.

Solution 2: Choose Arduino as the main controller

Advantages: Arduino master control is easy to use, has a large number of open source libraries and sample codes, suitable for rapid prototyping.

Disadvantages: limited resources, relatively weak scalability.

Solution 3: Use Raspberry Pi as the main controller

Advantages: The Raspberry Pi master has powerful computing and graphics processing capabilities, supports multiple operating systems, and can perform advanced communications with other devices.

Disadvantages: High power consumption and relatively expensive price.

Considering the cost, ease of use and performance requirements comprehensively, the first option is adopted, and the STM32 main control is selected.

1.2 Demonstration and selection of hardware control scheme

Option 1: Use analog circuits to build a system, and use the following hardware modules to realize functions

Main components:

1. Clock generator: generate excitation signal and reference clock signal.

2. High-precision counter: used to measure the time delay of the signal.

3. Display screen: display working status, cable length, load type and load parameters.

4. Key switch: used to select and start the corresponding function.

Solution 2: Use digital circuits to build a system, and use the following hardware modules to realize functions

Main components:

1. FPGA chip: used to realize signal generation, measurement and processing.

2. Display module: display working status, cable length, load type, and load parameters.

3. Key switch: used to select and start the corresponding function.

Solution 3: Use a single-chip microcomputer to build a system, and use the following hardware modules to realize functions

Main components:

1. Digital signal processor: used to realize signal generation, measurement and processing.

2. TFT liquid crystal display: display working status, cable length, load type and load parameters.

3. Key switch: used to select and start the corresponding function.

After comprehensive consideration, we choose option 1, which is suitable for analog circuit to realize the function, and the analog circuit can meet the requirements of cable length detection and load detection. This solution not only takes into account the reliability and stability of the hardware, but also takes into account the cost and ease of use.

3.2 Program design

3.2.1 Program function description

The program implements the following functions:

Display system working status, cable length, load type and load parameters.

In the case of an open circuit at the cable terminal, press the "length detection" button to start the detection, the device can detect and display the cable length L, the absolute value of the relative error is not more than 5%, and each detection time does not exceed 5 seconds.

After completing the length detection when the cable terminal is open circuit, keep L unchanged. When the terminal is connected to a resistive or capacitive load, press the "Load Detection" button to start the detection, and the device can correctly judge and display the load type. The time does not exceed 5 seconds.

4. Test plan and test results

4.1 Test scheme

4.1.1 Functional test

(1) Functional test

1. The device can display working status, cable length, load type and load parameters.

2. The cable length is 1000cm≤L≤2000cm, the terminal is open circuit, press the "length detection" button to start the detection, the device can detect and display the cable length L, the absolute value of the relative error is not more than 5%, and the detection time does not exceed 5s.

(2) Load test

1. After the cable length detection is completed under the open circuit condition of the terminal, keep L unchanged, connect a load of resistance and capacitance to the terminal, press the "load detection" button to start the detection, the device can correctly judge and display the load type, one detection The time does not exceed 5s.

This document gives only part of the content, if you want a complete document, you can pay attention to it and send a private message. to get it.

In fact, rigid standards cannot limit us with infinite possibilities, so ah! Come on boys!

Guess you like

Origin blog.csdn.net/qq_33505204/article/details/132114893