Design of circuit characteristics tester based on microcontroller

Summary

With the rapid development of science and technology in today's society, intelligence and convenience have become people's daily demands. Nowadays, amplifier circuits often malfunction during use, and circuit data need to be tested, but most tests are done manually, which affects work efficiency to a certain extent.

In order to make the measurement data safer and more convenient, and in view of the shortcomings of manual testing, this design makes a simple circuit characteristic testing system based on STC89C51. Technically, it uses STC89C51 microcontroller as the control core, which is composed of microcontroller central control module, ADC conversion module, display module, switch module, voltage stabilizing module, filter module and alarm module. The system mainly implements automatic testing functions for given amplification circuit parameters (input impedance, output impedance, amplification factor) and component faults, making up for the shortcomings of manual testing.

Keywords: STC89C51 microcontroller; circuit characteristics test; convenience

 

ABSTRACT

With the rapid development of science and technology in today's society, intelligence and convenience have become People's Daily demands. Now the amplifier circuit often fails in the use process, and needs to test the circuit data, but most of the test is manually, which affects the work efficiency to a certain extent.

In order to measure the data more secure and more convenient, aiming at the shortcomings of manual testing, this design has made a simple circuit characteristic tester system based on STC89C51.Technically, it uses STC89C51 MCU as the control core, which is composed of MCU central control module, ADC conversion module, display module, switch module, voltage regulator module, filter module and alarm module.The system mainly realizes the automatic measurement function of given amplifier circuit parameters (input impedance, output impedance, amplification) and component faults, which makes up for the shortage of manual testing.

Key wordsSTC89C51 microcontrollerCircuit characteristic testconvenience

Table of contents

Chapter 1 Preface................................................ ......... 1

  1.1 Research background................................................ ........ 1

  1.2 Development Prospects................................................ ........ 1

Chapter 2 Design Content Plan........................................ ........... 1

  2.1 Overall system design idea...................................... .......... 1

  2.2 Design plan................................................ ........ 2

Chapter 3 System Hardware Design................................................ ........... 2

  3.1 Microcontroller central control module........................................ ........... 3

3.1.1 Microcontroller pin diagram and pin definition...................................... ............ 3

3.1.2 Minimum system................................................ ........ 5

  3.2 Data conversion module................................................ .........6

3.2.1 ADC analog-to-digital conversion circuit schematic ........................................ .............7

3.2.2 ADC pin definition................................................ ............7

  3.3 Display module................................................ ........ 7

3.3.1 Electronic screen display module (LCD1602)................................ .............7

3.3.2 LCD1602 pin definition................................................ ............ 8

  3.4 Switch module................................................ ........ 8

  3.5 Filter module................................................ ........ 9

  3.6 Voltage stabilizing module................................................ ......... 9

  3.7Fault alarm module................................................ ........ 10

  3.8 Overall design................................................ ....... 11

Chapter 4 System Software Design........................................ ........ 12

  4.1 Development environment................................................ ....... 12

  4.2 System program flow chart................................................ .........13

    4.2.1 Display module flow chart................................................ ........ 13

    4.2.2 ADC0832 data reading flow chart........................................ .............14

    4.2.3 Overall work flow chart................................................ ........ 15

Chapter 5 System Debugging........................................ .........16

in conclusion................................................. ..... 17

references................................................ ...... 18

Acknowledgments........................................................ ..... 19

appendix................................................. ..... 20

Chapter 1 Preface

1.1 Research background and significance

With the development of the electronics industry, more and more audio electronic equipment are used in people's daily lives, and there are more and more frequent failures of audio equipment. In the rapid development of smart devices in the future, simple circuit characteristic testers are used to detect measured values ​​to find and solve problems faster.

Amplification circuits are widely used in various electronic devices. The most basic signal processing in electronic information systems is amplification, and analog circuits are mostly based on amplification circuits. In practical applications, if the amplifier circuit fails, it may directly affect the normal operation of the system. Discovering faults in amplifier circuits is of great significance not only to electronic technology experiments, but also to future electronic equipment maintenance work.

(1) Research on simple circuit characteristic testing helps to improve the shortcomings of traditional testing methods.

(2) It can broaden people's horizons and prompt people to look at circuit characteristic testing from a new perspective.

1.2 Development prospects

Amplification circuits are widely used in various electronic devices. The most basic signal processing in electronic information systems is amplification, and analog circuits are mostly based on amplification circuits. In practical applications, if the amplifier circuit fails, it may directly affect the normal operation of the system. Discovering faults in amplifier circuits is of great significance not only to electronic technology experiments, but also to future electronic equipment maintenance work. Compared with manual detection, the design of the simple circuit tester is not only flexible and controllable, with high reliability, but also can realize intelligent diagnosis, which has a very broad application prospect.

Chapter 2 Design Content Plan

2.1 Overall system design idea

The simple circuit characteristic tester system based on STC89C51 mainly processes the signal accordingly, then connects it to the amplifier circuit, then enters the microcontroller to pass internal instructions, and finally displays the measured data through the display. The specific system structure block diagram is shown in Figure 2.1.

Figure 2.1 Overall system structure block diagram

When in use, a square wave is generated by the microcontroller, and a filter circuit is used to convert the square wave into a sine wave, which is connected to the amplification circuit to be tested, and the collected data is sent to the central control module of the microcontroller. The electronic display module will display the measured data information, and the alarm module will alarm when the amplification circuit components fail to ensure that the amplification circuit is safer and more stable.

2.2 Design plan

The system hardware of this design mainly consists of seven parts: the switch circuit is responsible for turning on the power supply of the entire circuit, the filter circuit is responsible for converting the waveform into a usable waveform, and the A/D conversion module is responsible for converting the collected analog quantities into appropriate digital quantities. The control module, on the one hand, controls the conversion of signals, and on the other hand, sends the collected data to the display. The display module is responsible for displaying the measured real-time data. The alarm module issues an alarm when the amplification circuit components fail. The voltage stabilizing module is responsible for stabilizing The output voltage.

As the central control device of the entire system, the single-chip microcomputer mainly includes the hardware part and the software part. The hardware part is composed of input and output devices, 89C52 chips, peripheral circuits, and the minimum system; the software part is the programming language that controls the operation of the entire system.

Chapter 3 System Hardware Design

The system hardware of this design includes the microcontroller central control module, ADC conversion module, display module, switch module, voltage stabilizing module, filter module and alarm module, as well as resistors, capacitors, switches, transistors, etc. on the circuit board.

Guess you like

Origin blog.csdn.net/weixin_45905610/article/details/130278241#comments_27774959