基于USB协议的井下防爆计算机电池电量监测系统的设计
Design of Electric Quantity of Battery Monitoring System of Underground Explosion-proof Computer Based on USB Protocol
-
摘要: 针对现有井下防爆计算机不具备电池电量监测功能的问题,提出了一种基于USB协议的井下防爆计算机电池电量监测系统的设计方案。该系统选用带有AD转换的小型单片机完成电池电量采集和处理任务,采集的数据通过串口传输给USB转串口模块,上位机通过虚拟串口可得到电池电量的采样值。测试结果表明,该系统设计的指标符合负载工作时间,数据传输可靠性较高,AD转换的相对误差能够满足电池电量采集的要求。Abstract: In view of problem that current underground explosion-proof computer has no monitoring function for electric quantity of battery, a design scheme of electric quantity of battery monitoring system of underground explosion-proof computer based on USB protocol was proposed. In the system, small single-chip microcomputer with AD conversion is used to collect and process electric quantity of battery, the collected data is transmitted to module of USB to serial port,then sampling value of electric quantity of battery can be got by upper computer through virtual serial port. The test result showed that the indexes of the system accord with working time of load, data transmission has higher reliability and relative error of AD conversion can meet with demands of collection of electric quantity of battery.