I have been studying pure hardware inverters before, but this thing is getting more and more complicated, and the functions are not rich, so I came up with a method to implement SPWM with a single-chip microcomputer
The only microcontroller I had was the STC12C5410AD with PWM module, so I used it. Half a year ago, someone helped me select this small microcontroller with both PWM and AD. It is a rare gem for a small microcontroller inverter!
This microcontroller has a serial port download function. It does not require a dedicated programmer. You only need to use a RS232 level to TLL level converter (MAX232, which can be made by yourself, and the cost does not exceed 10 yuan) to connect the computer serial port and the microcontroller, which is convenient for friends to imitate.
The functions implemented this time are as follows:
1. SPWM wave output (two channels, two CD4011 with dead zone and reverse rear drive H bridge are required externally)
2. Closed-loop voltage regulation (DC feedback)
3. Output voltage detection (output voltage deviation is too large to alarm)
4. Output current detection (output current too large alarm)
5. Output short circuit protection (it is planned to adopt advanced tube voltage drop short circuit detection method. After detecting a short circuit, only a very narrow detection pulse is output in each power frequency cycle, and the output is restored immediately after the short circuit disappears)
6. Battery voltage detection (reminder and alarm for abnormal battery voltage or even shut down the inverter)
7.Serial communication function (convenient to connect to a computer to check the working status of the inverter)
8. External shutdown function (the MCU can be shut down using an external signal to improve expandability)
The program is written in C language, completely by myself! Now it is still lacking the improvement of serial communication function and the coefficients in the calculation formula of output current and voltage determined according to the hardware.
Other functions are valid in breadboard simulation test
Output SPWM wave
Assume the waveform when the load is short-circuited:
Test program on breadboard, the long line is the serial port
Now I have increased the SPWM frequency by 5 times to 20KHz, with 160 points per half cycle!
By the way, the startup bug and the protection circuit bug were fixed
The following waveform was tested on a breadboard using an RC filter (all the way in reverse):
The actual measured frequency is 23KHz. Here is a picture to prove it (a random cycle)
I stayed up until 2:30 last night and finally finished soldering the circuit using a universal board. The circuit diagram was just something I imagined during class...
This is the circuit diagram and the actual picture
The fourth last perfboard is used up, and the H-bridge of IRFP460 is being built:
Test desktop:
Previous article:The masterpiece of a beautiful power engineer: CNC single chip pure sine inverter
Next article:Power enthusiasts make: double silicon and single silicon hybrid inverter
- Popular Resources
- Popular amplifiers
- 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
- I'm having trouble with stepper motor segmentation. Can anyone help me?
- 74LS160 digital circuit digital electronic clock circuit design
- 【Showing goods】The first wave
- What is the Q value of a filter?
- If you had to give up your 750,000 yuan annual salary at Tencent or return to your hometown to become a civil servant, what would you choose?
- EEWORLD University Hall----Live Replay: TI AMIC110 Multi-protocol Communication Chip Industrial Application Optimization Solution
- 【Gravity:AS7341 Evaluation】+ Frequency Value Detection
- The homemade sensor test board (bone vibration) is finished and ready for production
- RK3288 baseboard + core board design process
- CCS import routine