This paper proposes a design scheme of DC electronic load based on STC12C5A60S. The DC electronic load is designed with high-speed, low-power, and super anti-interference STC12C5A60S microcontroller as the control core. It includes control circuit ( MCU ), main circuit, sampling circuit, display circuit, etc., which can detect various parameters such as current value and voltage value of the measured circuit, and can be displayed intuitively on the LCD. The system controls the working state of the circuit by a self-locking switch, switches the working state between constant voltage, constant current, and constant resistance circuits by manually adjusting the switch, and the corresponding working state is indicated by the LED light. The system has a voltage regulation range of 1V-30V, a current regulation range of 100mA-3.5A, and an error of 0-5% within the range required by the topic, meeting the requirements of the topic and expanding the range of constant voltage and constant current. It is controlled by a single-chip microcomputer, and the constant voltage value or constant current value is controlled within a certain range by pressing buttons. Overload protection is set, and overload is displayed by lighting the light.
1. Scheme design and demonstration
1.1 Overall solution design
DC electronic load based on manual adjustment of microcontroller control.
This scheme uses two self-locking switches to control the working state of the circuit, switching between constant voltage, cross current and constant resistance. The value of constant voltage, constant current, etc. is controlled by the stc12c5a60s microcontroller through the D/A chip. The stc12c5a60s is a new generation of 8051 microcontroller with high speed, low power consumption and super anti-interference. The instruction code is fully compatible with the traditional 8051, but the speed is 8-12 times faster, and 8-way high-speed 10-bit A/D conversion. The high-power NMOS tube IRF540 is used. The on-resistance of the tube is small enough and the source-drain resistance is strong enough. The software and hardware junction method is convenient and concise to realize the conversion between different modules, and the basic functions such as constant voltage and constant current are well completed, and additional functions such as constant resistance are completed.
The single chip microcomputer collects the voltage and current values, detects the circuit overload, controls the relay to work, realizes the circuit overload protection and alarms.
1.2 Module Solution
1.2.1 Constant pressure design scheme
Solution 1: Use transistors to achieve voltage amplification and comparison. The base and emitter are equivalent to the negative and positive input terminals of the comparator respectively. The base itself will receive a portion of the current, and there will also be a current Ibe that affects the voltage of the emitter. Such a circuit can achieve a constant voltage function, but the error is relatively large, and there is also a large power loss.
Solution 2: Directly use the operational amplifier OP07 chip to realize voltage amplification and comparison. The circuit looks simple and easy to understand. The circuit can realize the constant voltage function module with relatively small error. Comprehensive consideration to choose solution 2 1.2.2 Constant current design solution
Solution 1: Use the same type of transistors and use the relatively stable Ube of the transistors as a reference. This constant current mode is simple and easy, and the current value can be freely controlled. The product cost is low. Different types of tubes have different Ube values, and even the same type has certain individual differences. At the same time, under different working currents, this voltage will also fluctuate, which is not a precise constant current requirement.
Solution 2: Use an operational amplifier as feedback, that is, select the OP07 chip to realize the amplification and comparison of the constant current function module. Its circuit has sufficient accuracy and adjustability, and the original components are generally easy to build and debug.
After comprehensive consideration, choose option 2.
1.2.3 Display Module
Solution 1: Use digital tube display. Digital tubes can be used for display, which have the characteristics of simple wiring, low cost, simple and flexible configuration, easy programming, low requirements for the external environment, and easy maintenance. Digital tubes can be used to display voltage and current, but digital tubes can only display simple numbers, occupy more resources, have less actual information, and are not easy to display a large amount of information.
Solution 2: Use a 2.4-inch TFT screen with a font library as the display module. The hardware connection method is simple, and the display content is rich and vivid. A friendly human-computer interaction interface can be designed, which is easy for human-computer communication.
Considering the system, display content and system practicality, we adopt solution 2. 2. Circuit design
2.1 Constant voltage circuit
TEXT and GND are test points. The circuit as a whole is a negative feedback: when TEXT is higher than the set value, the op amp outputs a high voltage, Q1 conductivity increases, the load impedance decreases, and the voltage is divided by the internal resistance of the power supply, TEXT decreases until V+=V-; when TEXT is lower than the set value, the op amp outputs a low voltage, Q1 conductivity decreases, the voltage divided by the load and the internal resistance of the power supply increases, and TEXT increases until V+=V-.
2.2 Constant current circuit diagram
TEXT and GND are test points, and V+=V- in OP07. When V+>V-, the op amp outputs a high voltage, the conductivity of Q1 increases, the current increases, and V- increases, reaching V+=V-. When V+ 2.3 Constant resistance circuit diagram When the sliding rheostat is set to 50%, the resistance voltage V+=1/2Vin=V-, the current I=Vin/4, R=Vin/I=4 ohms, and the power supply voltage changes in direct proportion to the current. It can be implemented with a single-chip microcomputer, R=VText/I, and is implemented by the constant current principle. (If long-term testing is required, it is best to connect the MOSS tube to a large heat sink) 3. Software Design In the software design, the voltage and current acquisition data are sent to the C8051F360 microcontroller after A/D conversion, compared with the set value, and then controlled as required, and the voltage, current and resistance parameters are displayed at the same time. The main program flow is shown in Figure 5. Figure 5 System program flow chart 4. Test data and result analysis 4.1 Constant voltage test data 4.2 Constant current test data Result analysis: The data shows that the measured current values are stable around the set values. After calculation, the relative error is less than 3%. This shows that the system works normally in constant current mode. The measured voltage values are stable around the set values. After calculation, the relative error is less than 3%. This shows that the system works normally in constant current mode. The measured resistance values are all stable around the set values. After calculation, the relative error is less than 3%, which shows that the system works normally in constant current mode. 4. Summary This question proposes a design scheme of DC electronic load based on STC12C5A60S. The DC electronic load designed in this scheme is mainly controlled by the high-speed, low-power, and super anti-interference STC12C5A60S microcontroller. The working state of the circuit is controlled by a self-locking switch, and the working state between constant voltage, constant current, and constant resistance circuits is switched by manually adjusting the switch. The system's voltage regulation range is 1V-30V, the current regulation range is 100mA-3.5A, and the error of 0-5% is within the range required by the question, achieving the control of constant voltage or constant current within a certain range. Overload protection is set, and overload is displayed by lighting up the light. It has been verified that this scheme has practical application value.
Previous article:Application of DC Support Capacitors in Inverter Systems
Next article:Design Concept and Application of Real-time Bus Module in SoC System
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Problems with using SPI communication between two microcontrollers
- EEWORLD University Hall----TI DLP? Technology Innovation and New Applications in Automobiles
- EEWORLD University ---- TPS65086100: User Programming of Multi-Rail Power Management IC
- LSM6DSOX iNEMO 6DoF Inertial Measurement Unit (IMU) Related Information
- Design of the tri-state logic pen
- Analysis of the Causes of TMS320C6000 Boot Failure
- EEWORLD University Hall----Live Replay: ST60 Contactless Connector and Application Exploration
- Difference between auto register static const volatile in C language
- How does a microcontroller collect analog signals through an ADC module?
- MM32W Wireless MCU Series Product Application Notes - Smart Colorful Remote Control Light Solution