0 Introduction
With the rapid development of digital information technology and network technology, various embedded systems have become the new focus of the market. Given that embedded systems are special computer systems with strict requirements on functions, reliability, cost, size and power consumption, reducing their system power consumption and improving the ability of built-in power supplies to work continuously has become an important research topic.
Similar to laptops, embedded systems are usually equipped with an integrated battery pack consisting of multiple batteries connected in series. When its main parameters no longer meet the requirements of the entire system after repeated charging and use, the entire battery pack must be replaced. Generally speaking, due to the slight differences in the electrical parameters of each battery in the battery pack, it is difficult to achieve balanced and sufficient discharge of each cell, which leads to the fact that during the charging process of the battery pack, the battery cell with too high voltage may trigger the battery pack overcharge protection early, and during the discharge process, the battery cell with too low voltage may first cause the battery pack overdischarge protection, thereby significantly reducing the overall capacity of the battery pack, so that the actual capacity of the entire battery pack is often limited by the battery with the worst performance in the battery pack.
There are currently two common solutions to the above problems:
① Research or select new batteries, minimize individual differences and increase the rated capacity of the battery as a whole, such as the development from the initial nickel-cadmium and nickel-metal hydride batteries to the current mainstream lithium batteries; ② Improve the utilization rate of battery cells, that is, use monitoring technology to detect the working condition of each battery cell. If some battery cells are discharged prematurely or have problems, they can be automatically detected and prompted. At this time, only individual replacements are required to ensure the normal operation of the system.
For ordinary users, it is difficult to directly get involved in the relevant fields of the former, while the latter method can be implemented more conveniently and easily. In this way, it is expected to better solve the above-mentioned problems, and at the same time avoid the phenomenon that the normal batteries in the battery pack are also scrapped when the battery pack is replaced as a whole, thereby improving the battery utilization rate. In addition, it can also solve the problem that the cost of special batteries is high and difficult to purchase, so as to effectively reduce the maintenance cost of the system.
1 Monitoring system working principle and circuit design
Combining a specific handheld/embedded super terminal system, this paper conducts a relatively detailed study on the monitoring mode of its built-in power supply.
Because it uses universal No. 5 rechargeable batteries, the second method can be used to solve the problem of battery use and replacement, and then the corresponding "battery management and replacement reminder" function is better implemented based on the LinuX operating system.
1.1 Working principle of monitoring system
The system is powered by 12 nickel-metal hydride batteries with a rated voltage of 1.2V connected in series, and is monitored one by one through 12 specially set monitoring points.
The analog voltage value at the monitoring point is input into the AD converter of the ARM chip S3C2410x through a multi-way switch and an auxiliary circuit, and then reads the voltage value of the corresponding monitoring point through the Linux (driver and GPIO end, and is passed to applications such as data processing and graphic display, thereby realizing power supply monitoring. The specific method is shown in Figure 1.
Figure 1 Power supply monitoring system circuit diagram
1.2 AD conversion and auxiliary circuit
The monitoring system uses the AD converter built into the S3C2410x to convert the analog voltage input into the data required by the application. The chip's built-in AD converter has 8 analog inputs and 10-bit digital outputs, a maximum conversion rate of 500ksps, a conversion clock of 2.5MHz, and an analog input range of 0-3.3V. The voltage range that this system needs to monitor is 0~14.
4V, in view of this situation, this system has designed a voltage divider circuit. In the application program, only the proportional formula is needed to calculate the actual voltage value of each monitoring point. In addition, considering the factors of monitoring accuracy and circuit power consumption, the total resistance of the voltage divider circuit is set to 4.5kΩ. In this way, the corresponding analog input voltage value range is 0.26-3.2V, so as to fully utilize the input bandwidth of the AD converter. At this time, the power consumption of the circuit is only 0.04608W.
1.3 Control Circuit
By using the GPIO port of S3C2410x to control the gating multi-way gate switch circuit, the monitoring system can randomly extract the voltage values of different monitoring points. The gating logic is implemented through decoding, as shown in Table 1.
Table 1 Strobe Logic
2.3.4 adc_close() function
The adc_close() function is used to close the peripheral. When monitoring is finished, the application will call this function to close the device file. Like the adc_open() function, it can also be NULL.
3 How to design Qt/Embedded applications and embed them in Qtopia
QT/Embedded provides a friendly interactive interface for embedded Linux. It is a complete self-contained C++GUI and embedded platform development tool based on LinuX. It is designed for high-end embedded graphics applications and has been popularized. Since the system used in this article needs to work in the form of manual click inspection and automatic undervoltage alarm, it is necessary to follow the corresponding rules and methods to design an efficient and beautiful graphical interface.
3.1 Writing Qt/Embedded Applications
The Qt Designer software generated when compiling Qt for Xll on the host machine is a very popular rapid application development tool for designing interfaces and compiling codes. In Qt Designer, you can add some window components such as input boxes and buttons to the appropriate positions of a blank form by dragging or clicking. At this time, the Designer tool will automatically write and maintain the code.
The basic steps of using Qt Designer for C++ programming are: first, create a form and add controls to it according to the needs of the application. Qt will save the created form as a .ui file. Use the uic tool provided by Qt to convert the file into .h and .cpp files. For control actions, you need to manually add different operation functions. Then use the progen tool to create a .pro project file for the application, and use the tmake tool to create a Makefile for the project. Finally, just run make to generate the executable file.
When writing the operation function, the system determines the voltage value of each battery cell by calculating the observed values of adjacent monitoring points. By querying the discharge end voltage lookup table of the selected battery cell, the remaining power of each battery cell is obtained. When the battery pack power drops to a certain threshold or the storage capacity of a battery cell is less than 3%, the application program alarms to notify the user to charge it or replace it individually in time according to the indicated battery number. In this way, the normal working indicators of the power supply can be guaranteed, and the utilization rate of all batteries can be improved.
3.2 Porting Applications to Qtopia
To publish your own application on the Qtopia platform, you need three files: an execution file, a launcher file, and an icon file.
The executable file is the executable file written and compiled as mentioned above. You need to save the executable file in the qtopia/bin directory. The icon file is a small PNG image of 48*48 size made for the application. It is generally stored in the qtopia/pics directory. At the same time, you also need to create an application launcher (.desktop) file and save it in the qtopia/apps/Applications directory. After copying the above files, re-run Qtopia, you can see the added application icon, click this icon to run the application.
4 Conclusion
Reducing system energy consumption requires reliable support from the embedded system hardware, and it is also inseparable from the reasonable management of hardware resources by the embedded operating system and application programs. The existing Linux provides some power management functions, but due to the flexibility of specific embedded system design, it is generally necessary to customize the application program according to specific needs to accurately monitor and prompt the power supply. Through the research and implementation of power monitoring technology in handheld terminal devices, it will help to complete the power monitoring and management of other types of embedded systems, and it is also expected to have certain reference and reference value for the establishment of similar systems.
Previous article:A UPS indicator that cannot be ignored in selecting power supply for computer room
Next article:Operation management of dispatching automation system
- 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
- Musk's "satellite dish" becomes a cat heater. Engineer: The cat is warm, but the Internet speed is so slow that it drives people crazy
- Does anyone have a good method for 4.2V disconnection monitoring?
- STM32 Project Outsourcing
- How to import CAD into AD?
- Can 5G Home Internet meet your broadband needs at home?
- Please help provide the code or download link for STM32 M0 to read and write AT24C256, thank you.
- Indoor positioning solution: UWB indoor positioning technology - Xindao Intelligent
- What are the most common wireless communication (data) transmission technologies?
- This week's review information, freshly arrived!
- CCS cannot build its own platform