Show off your own DIY single-chip multi-function charger

Publisher:HarmoniousCharmLatest update time:2011-01-19 Source: 中国音响DIYKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I saw someone discussing chargers a few days ago. Since I had nothing to do, I decided to show off my own DIY charger design!

This is the circuit diagram when it was first designed. Later, during the specific debugging process, it was found that the MOS tube and inductor in the BUCK generated very high heat. When I looked at the waveform, I found that the waveform that was supposed to be a square wave had become a triangle wave!

I spent a lot of time, checked a lot of information, and did experiments, and found that the MOS tube was not driven well. It was not enough to drive it with a single transistor (probably because my tube was fake and the input capacitance was too large). Later, I had to change to using a 667/647 complementary output circuit to drive it.

Sure enough, the waveform of the MOS tube driver was much better, but the heat was still severe, and the waveform of the inductor input was still very bad, and it was still hot. I looked for the reason again, and later thought that the inductor might be saturated (originally, it used a black ordinary magnetic core, and one circle had an inductance of 20UH), so I used 26-grade magnetic core to wrap 74 circles to reach 330UH, and finally it was not saturated! When the output current was more than 3 amperes, it still would not be saturated. Finally, the output wave formed a perfect square wave, and the output ripple was much smaller. The MOS tube generated very little heat, and the inductor was not hot!

I used AVR MEGA16 microcontroller, 16K FLASH/1K SRAM/512BIT EEPROM, and used four ADCs as current and voltage sampling for two charging channels. TIMER1 used A/B two-way output 28KHZ PWM waveform to control two BUCK circuits to control voltage and current.

Use 5V-30V DC power supply, 2 IRF9540 for BUCK, 330UH inductor is wound by toroidal core. According to my own calculation, 3A DC can be passed when the inductance drops to 70%, so the actual BUCK waveform is still very good (very neat square wave) when the current is large, and the loss of the BUCK part is very small. According to the input voltage, this BUCK can control a wide range of voltage and current.

The program is written by myself, and it can charge NiMH batteries, storage batteries, and lithium batteries. Through the serial port of MAX232, the charging time, charging current, charging voltage and other information can be observed in real time on the PC. When discharging, the final discharge ampere-hour can also be seen after calculation.

Keywords:MCU Reference address:Show off your own DIY single-chip multi-function charger

Previous article:1969MOS version AB class amplifier DIY
Next article:Fostex FE126 4-inch full-range chassis DIY detailed explanation

Recommended ReadingLatest update time:2024-11-16 15:58

AVR microcontroller main features
AVR  microcontroller  is an enhanced RISC (Reduced Instruction Set CPU) high-speed 8-bit microcontroller with built-in Flash developed by ATMEL in 1997. AVR microcontrollers can be widely used in various fields such as computer peripherals, industrial real-time control, instrumentation, communication equipment, and ho
[Microcontroller]
SPCE061A MCU collects pulse data
The pulse sensor used here is HK-2000B, which is an analog signal and can collect pulse waveforms. It is recommended to use a 500HZ timer for regular collection, because some ECG modules on the market are also 500HZ. Therefore, in a timer interrupt service program, two sets of data can be processed at the same time! !
[Microcontroller]
Ten levels of advancement in microcontroller design
First level: Here I am. Typically at this level, you can use C language to write simple logic controls, such as flashing LEDs, simple digital tube displays, and simple peripheral module driver experiments. Generally, people who are interested in microcontrollers and often practice hands-on can reach this point in abou
[Microcontroller]
MCS-51 MCU scanning matrix keyboard program
#include reg52.h #define uint unsigned int #define uchar unsigned char sbit DSCQ=P2^6; //bit defines the segment latch control terminal sbit WSCQ=P2^7; //bit definition bit latch control terminal uchar code table ={0x3f,0x06,0x5b,0x4f, //0,1,2,3 0x66,0x6d,0x7d,0x07, //4,5,6,7 0x7f,0x6f,0x77,0x7c, //8,9,a,
[Microcontroller]
Burning MCU under Linux system (transfer)
Some people ask how to develop microcontroller programs under Linux? We have learned development tools and burning tools under Windows. In fact, this is only the case in China. Most Chinese people use Windows systems. So we only come into contact with development tools under Windows. Abroad, many experts do not use Wi
[Microcontroller]
Microcontroller custom protocol FIFO efficient data sending method
This article introduces how to use a serial port with FIFO to reduce the number of receiving interruptions, and provides a frame packaging method through a custom communication protocol format. Then it introduces a special serial port data sending method that can avoid using the serial port to send interrupts. , impro
[Microcontroller]
Single chip microcomputer interface control true color LCD screen solution
    If you are using 8-bit/16-bit MCU, ARM and other microcontrollers, and want to control the corresponding LCD screen through a simple and easy-to-operate controller, then please choose the MCU interface control solution. This solution provides an 8-bit parallel data bus interface, low cost, mature technology, easy t
[Microcontroller]
Single chip microcomputer interface control true color LCD screen solution
Portable Remote Multi-channel Data Acquisition System Based on 51 Single Chip Microcomputer
introduction: In the process of industrial production and various scientific and technological research, various data often need to be collected and processed. The usual collection method is to install a data acquisition card in a PC or industrial computer, such as an A/D card, RS-422 card, or RS-485 card. The
[Microcontroller]
Portable Remote Multi-channel Data Acquisition System Based on 51 Single Chip Microcomputer
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号