Power supply self-checking device based on domestic MCU
By using domestic MCU and A/D chips for analog-to-digital conversion in the power self-checking device, and combining it with SD cards and alarm modules, the problems of non-domesticization, no alarm and data storage of traditional devices are solved, and efficient power supply is realized. Signal acquisition and fault monitoring.
Patent Information
- Application Number
- CN202323380876.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2033-12-12
AI Technical Summary
Traditional power supply self-checking devices have problems such as non-localization, no alarm function, few data transmission channels, and no data storage. As a result, electrical signals cannot be effectively monitored and processed in embedded development, and equipment failures cannot be prevented.
A power supply self-test device based on domestic MCU is designed, using HYM32F103ARBT chip as the MCU main control module, combined with MS16E020 A/D chip for analog-to-digital conversion, equipped with SD card storage module, LED and voice alarm module, through SPI high-speed Serial interface and power conversion module implement data acquisition, processing and storage.
It has realized the localization of core chips and components, enhanced data transmission and signal processing capabilities, has an alarm function and can store fault information, and improved the monitoring and fault handling capabilities of voltage information.
Smart Images

Figure CN221667983U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electric signal acquisition and monitoring, and can be used for acquisition, processing, monitoring and the like of analog signals in the field of electronic information, and particularly relates to a power supply self-test device based on a domestically produced MCU. Background Art
[0002] With the progress and development of society, humans have begun to frequently come into contact with electrical energy, which has brought great changes to our society. As an important medium for modern devices to communicate, the processing of electrical signals has become one of the key research directions in the field of electronic information today. Electrical signals can be generally divided into two categories in electronic circuits: analog and digital. The latter mainly converts the voltage and current information of the former into digital signals that can be recognized by computers, and then writes programs to microcontrollers such as MCU to achieve the expected functions. In this process, we need to monitor the current and voltage information in the circuit at all times to prevent the circuit from being overloaded due to some unknown reasons during the operation of the equipment, thereby burning out the components. At present, this link has been widely used in the field of embedded development. It is also very important to realize the localization of this technology on the basis of realizing the above links.
[0003] At present, the electrical signal acquisition and monitoring circuit in the traditional power supply self-test device has the following main shortcomings: 1) Non-localization: In the past, when embedded development was carried out, the core chips used were usually purchased from abroad. Therefore, it is very necessary to realize the localization of the electrical signal acquisition and monitoring circuit; 2) No alarm function: The traditional electrical signal acquisition and monitoring circuit has weak interaction with the outside world, and has no alarm function when the collected data does not meet the standards; 3) Few data transmission channels and weak signal processing capabilities: Traditional electrical signal sampling circuits often use asynchronous sampling, with few sampling transmission channels and slow sampling rates. At the same time, due to the limitations of the domestic buffer and filter levels, it is impossible to directly sample analog signals, and the signal processing capabilities are weak; 4) No data storage: Without data storage function, it is impossible to accurately understand when the system fails. Utility Model Content
[0004] The purpose of the utility model is to provide a power self-test device based on a domestic MCU, which is used to solve the problems of non-domestication of the above-mentioned core chips and components, no alarm function, few data transmission channels and no data storage.
[0005] In order to solve the above technical problems, the utility model provides a power self-test device based on a domestic MCU, comprising: an MCU main control module, which adopts a HYM32F103ARBT chip; an acquisition module, which adopts an MS16E020 A / D chip and is connected to the MCU main control module through an SPI high-speed serial interface bus; a power module, which is connected to the MCU main control module; a storage module, which adopts an SD card storage circuit and is connected to the MCU main control module; and an LED and voice alarm module, which is connected to the MCU main control module.
[0006] Preferably, a reset module connected to the MCU main control module is further included, and the reset module mainly uses a capacitor C25, the upper end of the capacitor C25 is connected to the reset pin RESET_N of the MCU main control module, and the lower end is grounded GND.
[0007] Preferably, it also includes a clock module connected to the MCU main control module, the clock module mainly adopts an X49SM8MSD2SC crystal oscillator, and the upper and lower ends of the crystal oscillator are respectively connected to the crystal oscillator input pin OSC_IN and output pin OSC_OUT of the MCU main control module.
[0008] Preferably, the power module mainly uses two HYM-type power conversion chips to convert the 12V input power into 5V and 3.3V to power the entire circuit.
[0009] Preferably, the LED and voice alarm module includes 8-way LED alarm circuits and a voice alarm circuit; wherein each LED alarm circuit is composed of a resistor with a resistance value of 1K and a light-emitting diode connected in series, and the other end of the resistor is connected to the pin OUT of the MCU main control module, and the other end of the light-emitting diode is grounded GND; the voice alarm circuit mainly adopts a KT148A voice alarm chip, and an 8Ω / 0.5W speaker LS1 is connected in series at the SPK1 and SPK2 pins of the voice alarm chip.
[0010] Compared with the prior art, the utility model has the following beneficial effects:
[0011] This utility model realizes the localization of all components such as core chips and components, and adopts HYM32F103ARBT chip and a number of domestic components such as crystal oscillators, resistors and diodes; by building a single-chip minimum system, it realizes the data transmission between external information and the chip core, completes the processing of the collected data, and converts it into level information to monitor the voltage information through LED lights and voice chips; in this design scheme, we selected a high-performance, low-power domestic MCU chip: HYM32F103ARBT chip. It is a 32-bit microcontroller based on the ARM Cortex-M core, with a program memory capacity of 64KB, can work in an environment of -40℃~85℃, and can reach a maximum operating frequency of 72MHz. At the same time, adding an SD card module can store fault information. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The utility model is a hardware block diagram of a power self-test device based on a domestic MCU.
[0013] Figure 2 It is the circuit diagram of the MS16E020 chip of the utility model.
[0014] Figure 3 This is the circuit diagram of the HYM32F103ARBT chip of the utility model.
[0015] Figure 4 This is a circuit diagram of the power module of the utility model.
[0016] Figure 5 This is a circuit diagram of the storage module of the utility model.
[0017] Figure 6 The figure is a circuit diagram of the voice alarm circuit of the utility model.
[0018] Figure 7 The utility model is a circuit diagram of the LED alarm circuit.
[0019] Figure 8 This is a circuit diagram of the reset module of the utility model.
[0020] Fig. 9 This is a circuit diagram of the Clcok clock module of the present utility model. DETAILED DESCRIPTION
[0021] The utility model is further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the utility model will become clearer. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the utility model.
[0022] like Figure 1 As shown, the embodiment of the utility model provides a power self-test device based on a domestic MCU, including: an MCU main control module, which adopts a HYM32F103ARBT chip; an acquisition module, which adopts an MS16E020 A / D chip and is connected to the MCU main control module through an SPI high-speed serial interface bus; a power module, which is connected to the MCU main control module; a storage module, which adopts an SD card storage circuit and is connected to the MCU main control module; an LED and voice alarm module, which is connected to the MCU main control module.
[0023] The main function of the acquisition module is to perform analog-to-digital conversion on the analog signal output by the upper level, which is mainly achieved through the ADC module. It can be seen from the MS16E020 chip data sheet that the A / D module MS16E020 chip used in this embodiment has 8 built-in 16-bit fast, low-power successive approximation ADCs, supporting 8 channels of synchronous sampling. The conversion rate of each channel ADC of this ADC is up to 200kSPS; the power supply voltage of the internal front-end amplifier and ADC core is 4.75V to 5.25V, which can process ±10V and ±5V true bipolar input signals. MS16E020 has a built-in input buffer and anti-aliasing filter with 1MΩ input impedance, which can directly collect analog signals. At the same time, the chip integrates a flexibly configurable high-precision reference voltage generator and buffer to facilitate modular design. When designing the circuit, the key signals of the MS16E020 chip need to be configured. In actual work, the 8-channel analog differential signal at the input end is filtered by the input buffer with 1MΩ input impedance and anti-aliasing filter, and then the analog-to-digital conversion is completed by the A / D converter, and then the digital signal output is completed through the high-speed serial interface compatible with the SPI protocol. The circuit diagram of the MS16E020 chip is shown in the figure. Figure 2 shown.
[0024] like Figure 3 As shown, MCU design: The core chip of the device is the HYM32F103ARBT chip of Chengdu Honglixin. In the device, the 8-channel acquisition information of the AD chip is transmitted through the SPI bus, and then the information is transmitted to the Cortex-M3CPU for data processing through the APB2 and BusMatrix modules, and finally the information is exchanged with the outside world through the GPIO port, including SD card, voice chip, etc.
[0025] The power module mainly uses two HYM type power conversion chips to convert the 12V input power into 5V and 3.3V to power the entire circuit. Figure 4As shown in the figure, the power module design: the power supply voltage of the internal front-end amplifier and the core of the ADC chip in the system circuit is 5V, while its logic power supply and MCU power supply are 3.3V. The device obtains power through the power conversion module, which greatly saves the space of the circuit and has a high voltage output conversion efficiency. Then add 0.1uf capacitors at both ends to reduce noise and enhance the stability of the entire system.
[0026] like Figure 5 As shown in the figure, the storage module design: the storage module and the MCU use the SPI bus for communication, including enable, clock, MISO and MOSI. It can store the fault information of the device when the voltage fluctuates greatly, so that the fault situation can be better understood and repaired when clearing the fault later.
[0027] The LED and voice alarm module includes 8-way LED alarm circuit and voice alarm circuit; each LED alarm circuit is composed of a 1K resistor and a light-emitting diode connected in series, and the other end of the resistor is connected to the pin OUT of the MCU main control module, and the other end of the light-emitting diode is grounded GND; the voice alarm circuit mainly uses KT148A voice alarm chip, and the SPK1 and SPK2 pins of the voice alarm chip are connected in series with an 8Ω / 0.5W speaker LS1. Figure 6 and Figure 7 As shown, the LED alarm circuit design: In this device, 8 analog input signals are collected at the same time, so 8 LED lights are designed to display in real time which voltage input signal does not meet the standard to prevent the components from burning in the power supply stage. The voice alarm chip KT148A is added to the circuit to control the cost. Because the chip is a FLASH version, the program can be burned repeatedly to reduce losses. At the same time, users can change the sound by themselves and directly drive the 8Ω / 0.5W speaker with good sound quality. The chip adopts a one-line serial port control to save the port resources of the MCU. In the voice alarm circuit, when the 5th foot is short-circuited to the ground, the voice download can be entered.
[0028] like Figure 8 and Fig. 9As shown, it also includes a reset module connected to the MCU main control module. The reset module mainly uses a capacitor C25. The upper end of the capacitor C25 is connected to the reset pin RESET_N of the MCU main control module, and the lower end is grounded GND. It also includes a clock module connected to the MCU main control module. The clock module mainly uses an X49SM8MSD2SC crystal oscillator. The upper and lower ends of the crystal oscillator are respectively connected to the crystal oscillator input pin OSC_IN and output pin OSC_OUT of the MCU main control module. The above-mentioned reset and clock module designs: These two modules are used to reset the device and provide high-precision clock signals, respectively. As Figure 8 As shown in the figure, the reset operation depends on the RC reset. When the power is turned on, the C25 capacitor starts to charge, the capacitor is in a short-circuit state, and the voltage on the capacitor is low. At this time, the MCU reset pin is pulled low, and the MCU performs a reset, realizing the reset function when the power is turned on. Fig. 9 The clock Clcok circuit shown is an external crystal oscillator of the entire device, which is used to provide the device with a high-precision clock signal for communication and time recording operations.
[0029] The system also includes the following working principle: The working mode of the power self-test device is: first, the system is powered on and the entire device is started. When the A / D chip obtains the voltage analog signal from the upper level, it converts it into a digital signal and transmits it to the MCU through the SPI bus. After processing, the MCU determines whether the voltage meets the standard requirements of the lower level. If it meets the requirements, the LED will not light up. If it does not meet the requirements, the voice chip will output a voice to remind the user that the voltage output is abnormal. At the same time, the I / O port of the corresponding line is controlled to light up the LED light to warn the operator. After that, the MCU writes the fault information to the SD through the SPI bus so that the user can read the information and monitor the voltage status of the entire device.
[0030] The above description is only a description of the preferred embodiment of the utility model, and is not any limitation on the scope of the utility model. Any changes and modifications made by ordinary technicians in the field of the utility model based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A power self-test device based on domestic MCU, characterized in that: include: MCU main control module, using HYM32F103ARBT chip; The acquisition module uses an MS16E020 A / D chip and is connected to the MCU main control module via an SPI high-speed serial interface bus; A power module, connected to the MCU main control module; The storage module uses an SD card storage circuit and is connected to the MCU main control module; The LED and voice alarm module is connected to the MCU main control module.
2. A power self-test device based on a domestic MCU as claimed in claim 1, characterized in that: It also includes a reset module connected to the MCU main control module. The reset module mainly uses a capacitor C25. The upper end of the capacitor C25 is connected to the reset pin RESET_N of the MCU main control module, and the lower end is grounded GND.
3. A power self-test device based on a domestic MCU as claimed in claim 1, characterized in that: It also includes a clock module connected to the MCU main control module. The clock module mainly uses an X49SM8MSD2SC crystal oscillator. The upper and lower ends of the crystal oscillator are respectively connected to the crystal oscillator input pin OSC_IN and output pin OSC_OUT of the MCU main control module.
4. A power self-test device based on a domestic MCU as claimed in claim 1, characterized in that: The power module mainly uses two HYM type power conversion chips to convert the 12V input power into 5V and 3.3V to power the entire circuit.
5. A power self-test device based on a domestic MCU as described in any one of claims 1 to 4, characterized in that: The LED and voice alarm module includes an 8-way LED alarm circuit and a voice alarm circuit; Each LED alarm circuit is composed of a 1K resistor and a light emitting diode connected in series, and the other end of the resistor is connected to the pin OUT of the MCU main control module, and the other end of the light emitting diode is grounded GND; The voice alarm circuit mainly adopts a KT148A voice alarm chip, and an 8Ω / 0.5W speaker LS1 is connected in series at the SPK1 and SPK2 pins of the voice alarm chip.
