CN116047155A - Electronic detonator current and voltage detection method - Google Patents
Electronic detonator current and voltage detection method Download PDFInfo
- Publication number
- CN116047155A CN116047155A CN202211481317.2A CN202211481317A CN116047155A CN 116047155 A CN116047155 A CN 116047155A CN 202211481317 A CN202211481317 A CN 202211481317A CN 116047155 A CN116047155 A CN 116047155A
- Authority
- CN
- China
- Prior art keywords
- voltage
- current
- operational amplifier
- circuit
- sampling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R15/00—Details of measuring arrangements of the types provided for in groups G01R17/00 - G01R29/00, G01R33/00 - G01R33/26 or G01R35/00
- G01R15/04—Voltage dividers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子雷管控制技术领域,尤其涉及一种电子雷管电流电压检测方法。The invention relates to the technical field of electronic detonator control, in particular to a method for detecting the current and voltage of an electronic detonator.
背景技术Background technique
目前,电子雷管是采用数字控制芯片对起爆过程进行精确控制的新型雷管,其优势为:技术成熟,性能更优,易于管控。其精确多段式的延时设置,为大规模的精确爆破提供可行条件,在电子雷管的具体使用过程中,需要使用起爆卡检测雷管状态是否正常和保证使用过程中的可靠性和安全性。At present, the electronic detonator is a new type of detonator that uses a digital control chip to precisely control the detonation process. Its advantages are: mature technology, better performance, and easy control. Its precise multi-stage delay setting provides feasible conditions for large-scale precise blasting. In the specific use of electronic detonators, it is necessary to use the detonator card to detect whether the detonator is in normal state and to ensure the reliability and safety during use.
现有的电子雷管电流和电压检测方法中,电流检测的范围有限,微小电流情况下的检测准确性不佳。In the existing electronic detonator current and voltage detection methods, the range of current detection is limited, and the detection accuracy in the case of small currents is not good.
发明内容Contents of the invention
本发明的主要目的在于提供一种针对二总线双电阻电路的一种可靠、高效的电子雷管电流电压检测方法,解决电子雷管使用的安全性问题,提升电子雷管电流和电压检测的准确性。The main purpose of the present invention is to provide a reliable and efficient electronic detonator current and voltage detection method for two-bus dual-resistance circuits, to solve the safety problem of electronic detonator use, and to improve the accuracy of electronic detonator current and voltage detection.
为实现上述目的,本发明提出一种电子雷管电流电压检测方法,应用于电流电压检测电路,所述电流电压检测电路包括:依次串联的电阻分压电路、多级运放放大电路,以及与串联电路连接的单片机,所述电阻分压电路与所述采样电阻连接,所述方法包括以下步骤:In order to achieve the above object, the present invention proposes a method for detecting current and voltage of an electronic detonator, which is applied to a current and voltage detection circuit. A single-chip microcomputer connected to the circuit, the resistance voltage divider circuit is connected with the sampling resistance, and the method comprises the following steps:
在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态;After the single-chip microcomputer receives the control bus voltage command, the AB pole bus is powered on through the motor driver;
通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况。Sampling the voltage values on the two buses through a single-chip microcomputer combined with a resistor divider circuit and a multi-stage operational amplifier circuit, and obtaining the voltage difference through calculation to obtain the voltage on the AB pole. When detecting the current, by detecting the low The voltage value on the level bus is calculated to obtain the corresponding current situation.
其中,所述多级运放放大电路包括:依次串联的一级运放放大电路、二级运放放大电路,所述一级运放放大电路与所述电阻分压电路串联连接,所述通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况的步骤包括:Wherein, the multi-stage op-amp amplifier circuit includes: a first-stage op-amp amplifier circuit and a second-stage op-amp amplifier circuit connected in series in sequence, the first-stage op-amp amplifier circuit is connected in series with the resistor divider circuit, and the through The single-chip microcomputer combines the resistance divider circuit and the multi-stage op-amp amplifier circuit to sample the voltage values on the two buses, and obtain the voltage difference through calculation to obtain the voltage situation on the AB pole. When detecting the current, by detecting the low voltage The voltage value on the flat bus, the steps to obtain the corresponding current situation through calculation include:
在单片机接收到获取电流指令时,通过单片机根据当前通电状态,判断AB极的电平高低情况,确定低电平总线;When the single-chip microcomputer receives the command to obtain the current, the single-chip microcomputer judges the level of the AB pole according to the current power-on state, and determines the low-level bus;
获取低电平总线上二级运放放大电路的采样电压;Obtain the sampling voltage of the second-stage op-amp amplifier circuit on the low-level bus;
判断所述二级运放放大电路的采样电压是否达到满量程条件;Judging whether the sampling voltage of the two-stage op-amp amplifier circuit reaches the full-scale condition;
若是,则获取所述一级运放放大电路的采样电压,并判断所述一级运放放大电路的采样电压是否达到满量程条件;If so, then obtain the sampling voltage of the first-level operational amplifier circuit, and judge whether the sampling voltage of the first-level operational amplifier circuit reaches the full-scale condition;
若是,则获取所述电阻分压电路的采样电压;If so, then obtain the sampling voltage of the resistance voltage divider circuit;
根据所述电阻分压电路的采样电压计算得到电压参数;Calculate the voltage parameter according to the sampling voltage of the resistance voltage divider circuit;
根据所述电压参数计算得到电流值。The current value is calculated according to the voltage parameter.
其中,所述通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况的步骤还包括:Wherein, the voltage values on the two buses are sampled by the single-chip microcomputer combined with the resistance voltage divider circuit and the multi-stage op-amp amplifier circuit, and the voltage difference is obtained through calculation to obtain the voltage situation on the AB pole, when the current is detected , by detecting the voltage value on the low-level bus, the step of obtaining the corresponding current situation through calculation also includes:
在单片机接收到获取电压指令时,通过单片机获取AB极上所述电阻分压电路的采样电压,得到AB极采样电压值;When the single-chip microcomputer receives the acquisition voltage command, the sampling voltage of the resistance voltage divider circuit on the AB pole is obtained by the single-chip microcomputer, and the sampling voltage value of the AB pole is obtained;
通过判断AB极采样电压值的大小,计算得到两者的电压差值,并结合计算得到的电压差值得到AB极上的电压情况。By judging the sampled voltage value of the AB pole, the voltage difference between the two is calculated, and the voltage on the AB pole is obtained by combining the calculated voltage difference.
其中,所述在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态的步骤之前还包括:Wherein, after the single-chip microcomputer receives the control bus voltage command, before the step of making the AB pole bus in the power-on state through the motor driver, it also includes:
将起爆卡外接串口设备,连接到电脑端,在电脑上打开串口调试工具,选择端口号和串口波特率,保证通信正常。Connect the detonation card to an external serial port device, connect it to the computer, open the serial port debugging tool on the computer, select the port number and serial port baud rate, and ensure that the communication is normal.
其中,所述在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态的步骤包括:Wherein, after the single-chip microcomputer receives the control bus voltage command, the step of making the AB pole bus in the power-on state through the motor driver includes:
在单片机接收到控制总线电压指令后,通过控制电机驱动器的ENABLE脚对所述AB极的OUT+和OUT-输出脚进行开关控制,使AB极总线上处于通电状态;通过控制电机驱动器的PHASE引脚,控制电流通过电机驱动器H桥的方向,实现AB极高低电平的切换。After the MCU receives the control bus voltage command, it switches and controls the OUT+ and OUT- output pins of the AB pole by controlling the ENABLE pin of the motor driver, so that the AB pole bus is in a power-on state; by controlling the PHASE pin of the motor driver , to control the direction of the current passing through the H-bridge of the motor driver to realize the switching of AB extremely high and low level.
其中,所述方法还包括:Wherein, the method also includes:
在所述串口调试工具上的接收框内查看返回数据包,将截取数据内容通过IEEE754二进制浮点数算术标准进行转换获取真实结果。View the returned data packet in the receiving box on the serial port debugging tool, convert the intercepted data content through the IEEE754 binary floating-point number arithmetic standard to obtain the real result.
其中,所述电阻分压电路包括两个分压电阻,所述方法还包括:Wherein, the resistance voltage divider circuit includes two voltage divider resistors, and the method also includes:
通过调整两个分压电阻阻值的比例,让AB极的采样电压在采样范围内。By adjusting the ratio of the resistance values of the two voltage divider resistors, the sampling voltage of the AB pole is within the sampling range.
其中,所述一级运放放大电路采用的是同向比例放大电路,所述方法还包括:Wherein, the one-stage operational amplifier amplifier circuit adopts a proportional amplifier circuit in the same direction, and the method also includes:
通过调整所述一级运放放大电路中的两个运放电阻的阻值比例,得到运放的放大倍数,将微伏到毫伏级的电压放大后的采样电压达到采样范围。By adjusting the resistance ratio of the two op-amp resistors in the first-stage op-amp amplifier circuit, the amplification factor of the op-amp is obtained, and the sampling voltage after amplifying the voltage from microvolts to millivolts reaches the sampling range.
其中,所述AB极总线是起爆卡为电子雷管供电和通信的总线,所述二级运放放大电路与所述一级运放放大电路的运算放大器设置不同的放大倍数。Wherein, the AB pole bus is the bus used by the detonating card to supply power and communicate with the electronic detonator, and the operational amplifier of the second-stage op-amp amplifier circuit and the first-stage op-amp amplifier circuit have different amplification factors.
其中,所述电阻分压电路的电阻分压倍数:β1=12;一级运放放大电路的一级放大倍数:β2=7.8;二级运放放大电路的二级放大倍数:β3=31。Wherein, the resistance voltage division multiple of the resistance voltage divider circuit: β1=12; the primary amplification multiple of the primary op-amp amplifier circuit: β2=7.8; the secondary amplification multiple of the secondary operational amplifier amplifier circuit: β3=31.
本发明的技术效果:Technical effect of the present invention:
该方案通过设计了针对二总线双电阻电路的一种可靠、高效的电流电压检测方法,该关键技术为使用一层分压电路和多级运放电路对电压数据进行分层级放大,通过单片机的ADC采集采样电压并通过计算,获取AB极母线上电流和电压的数据,解决了电子雷管使用的安全性问题,提升了电子雷管电流和电压检测的准确性。This scheme designed a reliable and efficient current and voltage detection method for two-bus dual-resistance circuits. The key technology is to use a layer of voltage divider circuit and multi-stage operational amplifier circuit to amplify the voltage data hierarchically. The advanced ADC collects the sampling voltage and obtains the current and voltage data on the AB pole bus through calculation, which solves the safety problem of the use of electronic detonators and improves the accuracy of current and voltage detection of electronic detonators.
附图说明Description of drawings
图1为本发明电子雷管电流电压检测方法的流程示意图;Fig. 1 is the schematic flow sheet of electronic detonator current and voltage detection method of the present invention;
图2为本发明电流电压检测电路的结构示意图;Fig. 2 is the structural representation of current and voltage detection circuit of the present invention;
图3为本发明方案涉及的AB极驱动电路示意图;3 is a schematic diagram of the AB pole drive circuit involved in the solution of the present invention;
图4为本发明对A极测试的电流电压检测电路示意图;Fig. 4 is the current and voltage detection circuit schematic diagram of the present invention to A pole test;
图5为本发明对B极测试的电流电压检测电路示意图;Fig. 5 is a schematic diagram of the current and voltage detection circuit of the B pole test in the present invention;
图6为本发明起爆卡的电流检测流程图;Fig. 6 is the current detection flowchart of detonating card of the present invention;
图7为本发明起爆卡的电压检测流程图。Fig. 7 is a flow chart of the voltage detection of the detonation card of the present invention.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参照图1,本发明提出一种电子雷管电流电压检测方法,用于对二总线AB极的采样电阻的电流和电压进行采样,结合图3及图4所示,本发明电子雷管电流电压检测方法包括:With reference to Fig. 1, the present invention proposes a kind of electronic detonator current and voltage detection method, is used for sampling the current and the voltage of the sampling resistance of two bus AB poles, in conjunction with Fig. 3 and shown in Fig. 4, electronic detonator current and voltage detection method of the present invention include:
步骤S10,在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态;Step S10, after the single-chip microcomputer receives the control bus voltage command, the AB pole bus is powered on through the motor driver;
步骤S20,通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况。Step S20: Sampling the voltage values on the two buses through a single-chip microcomputer combined with a resistor divider circuit and a multi-stage operational amplifier circuit, and obtaining the voltage difference through calculation to obtain the voltage on the AB pole. When detecting the current, By detecting the voltage value on the low-level bus, the corresponding current situation is obtained through calculation.
结合图2-7所示,该方法涉及的电流电压检测电路包括:依次串联的电阻分压电路、多级运放放大电路,以及与串联电路连接的单片机,所述电阻分压电路与所述采样电阻连接;其中:As shown in Figures 2-7, the current and voltage detection circuit involved in this method includes: a resistor divider circuit connected in series, a multi-stage operational amplifier amplifier circuit, and a single-chip microcomputer connected to the series circuit, the resistor divider circuit and the Sampling resistor connection; where:
所述二总线AB极是起爆卡为电子雷管供电和通信的总线的AB极;The AB poles of the two buses are the AB poles of the bus for the electronic detonator to be powered and communicated by the detonating card;
所述电阻分压电路,用于对流经采样电阻的电压进行分压;The resistor voltage divider circuit is used to divide the voltage flowing through the sampling resistor;
所述多级运放放大电路,用于对采样电阻的电压进行分级放大;The multi-stage operational amplifier circuit is used to amplify the voltage of the sampling resistor in stages;
通过对所述采样电阻的电压进行分压和放大,使其采样电压在单片机采样范围内;By dividing and amplifying the voltage of the sampling resistor, the sampling voltage thereof is within the sampling range of the single-chip microcomputer;
所述单片机,用于对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况。The single-chip microcomputer is used to sample the voltage values on the two buses, and obtain the voltage difference through calculation to obtain the voltage situation on the AB pole. When detecting the current, by detecting the voltage value on the low-level bus, by calculating Get the corresponding current situation.
其中,所述多级运放放大电路包括:依次串联的一级运放放大电路、二级运放放大电路。Wherein, the multi-stage op-amp amplifier circuit includes: a first-stage op-amp amplifier circuit and a second-stage op-amp amplifier circuit sequentially connected in series.
其中,所述二总线AB极连接作为驱动元件的电机驱动器,AB极驱动电路如图2所示。Wherein, the AB poles of the two buses are connected to a motor driver as a driving element, and the AB pole driving circuit is shown in FIG. 2 .
通过控制所述电机驱动器的ENABLE脚对所述AB极的OUT+和OUT-输出脚进行开关控制;通过控制电机驱动器的PHASE引脚,控制电流通过电机驱动器H桥的方向,实现AB极高低电平的切换。By controlling the ENABLE pin of the motor driver, the OUT+ and OUT- output pins of the AB pole are switched and controlled; by controlling the PHASE pin of the motor driver, the direction of the current passing through the H-bridge of the motor driver is controlled to achieve high and low levels of AB switch.
其中,所述电阻分压电路包括两个分压电阻,通过调整两个分压电阻阻值的比例,让AB极的采样电压在采样范围内。Wherein, the resistor voltage divider circuit includes two voltage divider resistors, and by adjusting the ratio of the resistance values of the two voltage divider resistors, the sampling voltage of the AB pole is within the sampling range.
其中,所述一级运放放大电路采用的是同向比例放大电路,包括运算放大器和两个运放电阻,所述运算放大器的输出端通过其中一个运放电阻连接二级运放放大电路,所述运算放大器的输入端的其中一运放脚连接所述电阻分压电路的其中一个分压电阻,所述运算放大器的输入端的另一运放脚连接另一运放电阻;通过调整两个运放电阻的阻值比例,得到运放的放大倍数,将微伏到毫伏级的电压放大后的采样电压达到采样范围。Wherein, the one-stage op-amp amplifier circuit adopts a non-directional proportional amplifier circuit, including an operational amplifier and two op-amp resistors, and the output terminal of the operational amplifier is connected to the second-stage op-amp amplifier circuit through one of the op-amp resistors, One of the op-amp pins of the input end of the operational amplifier is connected to one of the voltage-dividing resistors of the resistor divider circuit, and the other op-amp pin of the input end of the operational amplifier is connected to another op-amp resistor; The ratio of the resistance value of the discharge resistor is used to obtain the amplification factor of the operational amplifier, and the sampling voltage after amplifying the voltage from microvolts to millivolts reaches the sampling range.
其中,所述二级运放放大电路的结构与所述一级运放放大电路的结构相同,一级运放放大电路输出的电压作为二级运放放大电路的输入电压,经过二级运放放大电路的运算放大器的放大,得到放大后的采样电压。Wherein, the structure of the two-stage operational amplifier amplifier circuit is the same as that of the first-stage operational amplifier amplifier circuit, and the output voltage of the first-stage operational amplifier amplifier circuit is used as the input voltage of the second-stage operational amplifier amplifier circuit. The operational amplifier of the amplifying circuit is amplified to obtain the amplified sampling voltage.
其中,所述二级运放放大电路与所述一级运放放大电路的运算放大器设置不同的放大倍数。Wherein, the operational amplifiers of the second-stage operational amplifier circuit and the first-stage operational amplifier circuit have different amplification factors.
其中,所述电阻分压电路的电阻分压倍数:β1=12;一级运放放大电路的一级放大倍数:β2=7.8;二级运放放大电路的二级放大倍数:β3=31。Wherein, the resistance voltage division multiple of the resistance voltage divider circuit: β1=12; the primary amplification multiple of the primary op-amp amplifier circuit: β2=7.8; the secondary amplification multiple of the secondary operational amplifier amplifier circuit: β3=31.
其中,所述多级运放放大电路包括:依次串联的一级运放放大电路、二级运放放大电路,所述一级运放放大电路与所述电阻分压电路串联连接,所述通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况的步骤包括:Wherein, the multi-stage op-amp amplifier circuit includes: a first-stage op-amp amplifier circuit and a second-stage op-amp amplifier circuit connected in series in sequence, the first-stage op-amp amplifier circuit is connected in series with the resistor divider circuit, and the through The single-chip microcomputer combines the resistance divider circuit and the multi-stage op-amp amplifier circuit to sample the voltage values on the two buses, and obtain the voltage difference through calculation to obtain the voltage situation on the AB pole. When detecting the current, by detecting the low voltage The voltage value on the flat bus, the steps to obtain the corresponding current situation through calculation include:
在单片机接收到获取电流指令时,通过单片机根据当前通电状态,判断AB极的电平高低情况,确定低电平总线;When the single-chip microcomputer receives the command to obtain the current, the single-chip microcomputer judges the level of the AB pole according to the current power-on state, and determines the low-level bus;
获取低电平总线上二级运放放大电路的采样电压;Obtain the sampling voltage of the second-stage op-amp amplifier circuit on the low-level bus;
判断所述二级运放放大电路的采样电压是否达到满量程条件;Judging whether the sampling voltage of the two-stage op-amp amplifier circuit reaches the full-scale condition;
若是,则获取所述一级运放放大电路的采样电压,并判断所述一级运放放大电路的采样电压是否达到满量程条件;If so, then obtain the sampling voltage of the first-level operational amplifier circuit, and judge whether the sampling voltage of the first-level operational amplifier circuit reaches the full-scale condition;
若是,则获取所述电阻分压电路的采样电压;If so, then obtain the sampling voltage of the resistance voltage divider circuit;
根据所述电阻分压电路的采样电压计算得到电压参数;Calculate the voltage parameter according to the sampling voltage of the resistance voltage divider circuit;
根据所述电压参数计算得到电流值。The current value is calculated according to the voltage parameter.
其中,所述通过单片机并结合电阻分压电路和多级运放放大电路,对两条总线上的电压值进行采样,并通过计算获取电压差,得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况的步骤还包括:Wherein, the voltage values on the two buses are sampled by the single-chip microcomputer combined with the resistance voltage divider circuit and the multi-stage op-amp amplifier circuit, and the voltage difference is obtained through calculation to obtain the voltage situation on the AB pole, when the current is detected , by detecting the voltage value on the low-level bus, the step of obtaining the corresponding current situation through calculation also includes:
在单片机接收到获取电压指令时,通过单片机获取AB极上所述电阻分压电路的采样电压,得到AB极采样电压值;When the single-chip microcomputer receives the acquisition voltage command, the sampling voltage of the resistance voltage divider circuit on the AB pole is obtained by the single-chip microcomputer, and the sampling voltage value of the AB pole is obtained;
通过判断AB极采样电压值的大小,计算得到两者的电压差值,并结合计算得到的电压差值得到AB极上的电压情况。By judging the sampled voltage value of the AB pole, the voltage difference between the two is calculated, and the voltage on the AB pole is obtained by combining the calculated voltage difference.
其中,所述在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态的步骤之前还包括:Wherein, after the single-chip microcomputer receives the control bus voltage command, before the step of making the AB pole bus in the power-on state through the motor driver, it also includes:
将起爆卡外接串口设备,连接到电脑端,在电脑上打开串口调试工具,选择端口号和串口波特率,保证通信正常。Connect the detonation card to an external serial port device, connect it to the computer, open the serial port debugging tool on the computer, select the port number and serial port baud rate, and ensure that the communication is normal.
其中,所述在单片机接收到控制总线电压指令后,通过电机驱动器使AB极总线上处于通电状态的步骤包括:Wherein, after the single-chip microcomputer receives the control bus voltage command, the step of making the AB pole bus in the power-on state through the motor driver includes:
在单片机接收到控制总线电压指令后,通过控制电机驱动器的ENABLE脚对所述AB极的OUT+和OUT-输出脚进行开关控制,使AB极总线上处于通电状态;通过控制电机驱动器的PHASE引脚,控制电流通过电机驱动器H桥的方向,实现AB极高低电平的切换。After the MCU receives the control bus voltage command, it switches and controls the OUT+ and OUT- output pins of the AB pole by controlling the ENABLE pin of the motor driver, so that the AB pole bus is in a power-on state; by controlling the PHASE pin of the motor driver , to control the direction of the current passing through the H-bridge of the motor driver to realize the switching of AB extremely high and low level.
其中,所述方法还包括:Wherein, the method also includes:
在所述串口调试工具上的接收框内查看返回数据包,将截取数据内容通过IEEE754二进制浮点数算术标准进行转换获取真实结果。View the returned data packet in the receiving box on the serial port debugging tool, convert the intercepted data content through the IEEE754 binary floating-point number arithmetic standard to obtain the real result.
其中,所述电阻分压电路包括两个分压电阻,所述方法还包括:Wherein, the resistance voltage divider circuit includes two voltage divider resistors, and the method also includes:
通过调整两个分压电阻阻值的比例,让AB极的采样电压在采样范围内。By adjusting the ratio of the resistance values of the two voltage divider resistors, the sampling voltage of the AB pole is within the sampling range.
其中,所述一级运放放大电路采用的是同向比例放大电路,所述方法还包括:Wherein, the one-stage operational amplifier amplifier circuit adopts a proportional amplifier circuit in the same direction, and the method also includes:
通过调整所述一级运放放大电路中的两个运放电阻的阻值比例,得到运放的放大倍数,将微伏到毫伏级的电压放大后的采样电压达到采样范围。By adjusting the resistance ratio of the two op-amp resistors in the first-stage op-amp amplifier circuit, the amplification factor of the op-amp is obtained, and the sampling voltage after amplifying the voltage from microvolts to millivolts reaches the sampling range.
以下对本发明方案进行详细阐述:The scheme of the present invention is described in detail below:
为了解决电子雷管使用的安全性问题,本发明设计了针对二总线双电阻电路的一种可靠、高效的电流和电压检测电路,该关键技术为使用一层分压电路和两级运放电路对电压数据进行分层级放大,通过单片机的ADC采集采样电压并通过计算,获取AB极母线上电流和电压的数据。In order to solve the safety problem of the use of electronic detonators, the present invention designs a reliable and efficient current and voltage detection circuit for two-bus two-resistance circuits. The voltage data is amplified hierarchically, and the sampling voltage is collected and calculated by the ADC of the single-chip microcomputer to obtain the current and voltage data on the AB pole bus.
具体地,电流和电压检测电路主要为硬件放大部分和软件采样分析部分。Specifically, the current and voltage detection circuit is mainly a hardware amplification part and a software sampling analysis part.
硬件放大部分:采用一层电阻分压电路和二层运放放大电路串联的方式,通过AB极上采样电阻的电流和电压进行采样,在大电压情况下进行分压,在小电压情况下进行放大,使其采样电压在单片机采样范围内。在电流检测上,能对1uA-600mA大范围内的电流值进行准确采样。Hardware amplification part: use a layer of resistor divider circuit and a second layer of op amp amplifier circuit in series, sample the current and voltage of the sampling resistor on the AB pole, divide the voltage under the condition of large voltage, and perform the voltage division under the condition of small voltage Amplify so that its sampling voltage is within the sampling range of the microcontroller. In terms of current detection, it can accurately sample the current value in a wide range of 1uA-600mA.
软件采样分析部分:电流电压在经过采样电阻后会进入到采样电路中,在检测电压时,在同一时间下AB极的电压值是相反的,当A极为高电平时(电源供电的电压),B极为低电平(0V),通过单片机对两条总线上的电压值进行采样,并通过计算获取电压差,来得到AB极上的电压情况,在检测电流时,通过检测低电平总线上的电压值,通过计算得到相应电流情况。Software sampling and analysis part: the current and voltage will enter the sampling circuit after passing through the sampling resistor. When detecting the voltage, the voltage value of the AB pole is opposite at the same time. When A is extremely high (the voltage of the power supply), B is extremely low level (0V). The voltage values on the two buses are sampled by the microcontroller, and the voltage difference is obtained by calculation to obtain the voltage on the AB pole. When detecting the current, by detecting the voltage on the low-level bus The voltage value is calculated to obtain the corresponding current situation.
放大电路的多层设计是针对AB极总线上微小电流情况设计,通常情况下使用二级运放电路,在微伏级别的电压情况下,通过运放放大获得采样电压,通过单片机ADC采样并计算得到电压数据并判断是否接近满量程;下一级是一级放大电路,二级放大电路采样结果接近满量程时,采用一级放大电路,该层采样电路能够对毫伏级别的电压放大到采样范围,通过ADC采样能够获取较为准确的结果;下一级是电阻分压电路,针对采样电压较大时,经过电阻分压,由单片机ADC采样分压后的采样电压值,并对采样值进行计算获得相应的电压值。The multi-layer design of the amplifying circuit is designed for the tiny current on the AB pole bus. Usually, a two-stage operational amplifier circuit is used. In the case of microvolt level voltage, the sampling voltage is obtained through the amplification of the operational amplifier, and is sampled and calculated by the single-chip ADC. Get the voltage data and judge whether it is close to the full scale; the next level is the first-level amplifier circuit. When the sampling result of the second-level amplifier circuit is close to the full-scale range, the first-level amplifier circuit is used. This layer of sampling circuit can amplify the voltage at the millivolt level to sample range, and more accurate results can be obtained through ADC sampling; the next stage is a resistor divider circuit. When the sampling voltage is large, after resistor divider, the single-chip ADC samples the sampled voltage value after the voltage divider, and performs sampling on the sampled value. Calculate the corresponding voltage value.
如图2及图3所示的原理框图中,各部分主要功能简述:In the functional block diagram shown in Figure 2 and Figure 3, the main functions of each part are briefly described:
AB极驱动电路:AB pole drive circuit:
1)使用DRV8801PWPR电机驱动器(U2)作为AB极的驱动元件;1) Use DRV8801PWPR motor driver (U2) as the driving element of AB pole;
2)根据原理框图2中U2的ENABLE脚,控制该引脚实现对OUT+和OUT-输出脚的开关控制;2) According to the ENABLE pin of U2 in the principle block diagram 2, control this pin to realize the switch control of the OUT+ and OUT- output pins;
3)通过控制驱动器PHASE引脚,控制电流通过驱动器H桥的方向,实现AB极高低电平的切换。3) By controlling the PHASE pin of the driver, the direction of the current passing through the H bridge of the driver is controlled to realize the switching of AB extremely high and low level.
二总线AB极和采样电阻:Two bus AB poles and sampling resistors:
1)二总线AB极为起爆卡为电子雷管供电和通信的总线;1) The second bus, AB, and the detonating card are the bus for power supply and communication of the electronic detonator;
2)采样电阻(R14、R15)为获取总线上电压和电流的采样点;2) Sampling resistors (R14, R15) are sampling points for obtaining voltage and current on the bus;
具体计算公式如下:The specific calculation formula is as follows:
电压系数:Voltage coefficient:
3.3(LDO电压)/4096(ADC采集精度)* 12 (电阻分压倍数);3.3 (LDO voltage)/4096 (ADC acquisition accuracy) * 12 (resistor voltage divider multiple);
电流系数:Current coefficient:
3.3(LDO电压)/4096(ADC采集精度)/7.8(运放的放大倍数)/10 (采样电阻阻值)*1000000(安培转微安);3.3 (LDO voltage)/4096 (ADC acquisition accuracy)/7.8 (magnification of the operational amplifier)/10 (sampling resistor resistance)*1000000 (ampere to microampere);
AB极测试原理如下:The principle of AB pole test is as follows:
如图3及图5所示,以A极测试为例(B极测试可以参照4及图6所示)。As shown in Figure 3 and Figure 5, take the A-pole test as an example (the B-pole test can refer to 4 and Figure 6).
1)串联的三层采样电路,包括电阻分压电路(R25、R31)、一级运放放大电路(U3、R28、R32)、二级运放放大电路(U4、R30、R33);1) A three-layer sampling circuit connected in series, including a resistor divider circuit (R25, R31), a primary operational amplifier circuit (U3, R28, R32), and a secondary operational amplifier circuit (U4, R30, R33);
2)电阻分压电路由R25、R31构成,A极为输入电压,R25将分压较大电压,输出电压为串联电路中R31的电压,通过调整两个电阻阻值的比例,让其采样电压(TP14)在采样范围内;2) The resistance voltage divider circuit is composed of R25 and R31, A is the input voltage, R25 will divide the larger voltage, and the output voltage is the voltage of R31 in the series circuit. By adjusting the ratio of the resistance of the two resistors, let it sample the voltage ( TP14) within the sampling range;
3)一级运放放大电路采用的是同向比例放大电路,根据运算放大器虚短和虚断的特性,得到运放3、4脚上的电压相同,3脚电压即为输入电压,R28和R32的电流相同,根据这个特性,调整R28和R32电阻的阻值比例,得到运放的放大倍数,能够将微伏到毫伏级的电压放大后的采样电压(TP15),达到采样范围;3) The first-level op amp amplifier circuit adopts the same direction proportional amplifier circuit. According to the characteristics of virtual short and virtual break of the operational amplifier, the voltage on
4)二级运放放大电路的原理相同,将一级运放放大电路输出的电压作为二级运放放大电路的输入电压,进过放大器的放大,得到放大后的采样电压(TP16);4) The principle of the two-stage op-amp amplifier circuit is the same, the output voltage of the first-stage op-amp amplifier circuit is used as the input voltage of the second-stage op-amp amplifier circuit, and then amplified by the amplifier to obtain the amplified sampling voltage (TP16);
5)两级放大器设置不同的放大倍数,保证量程范围;5) The two-stage amplifier sets different magnifications to ensure the range;
电阻分压倍数:β1=(R25+R31)/R31=12;Resistor voltage divider multiple: β1=(R25+R31)/R31=12;
一级放大倍数:β2=(R28+R32)/R32=7.8;Primary magnification: β2=(R28+R32)/R32=7.8;
二级放大倍数:β3=(R30+R33)/R33=31。Secondary magnification: β3=(R30+R33)/R33=31.
本发明的实现流程简述:Brief description of the realization process of the present invention:
如图5及图6所示,起爆卡的电流和电压检测方法包括:As shown in Figure 5 and Figure 6, the current and voltage detection methods of the detonation card include:
步骤一:起爆卡外接串口设备,连接到电脑端,电脑上打开串口调试工具,选择端口号和串口波特率,保证通信正常;Step 1: Connect the detonation card to an external serial port device, connect it to the computer, open the serial port debugging tool on the computer, select the port number and serial port baud rate, and ensure the normal communication;
步骤二:在串口调试工具上发送“控制总线电压”指令,单片机接收到该指令控制原理框图1中U2的ENABLE引脚,使OUT+和OUT-通电,使AB极总线上处于通电状态;Step 2: Send the "control bus voltage" command on the serial port debugging tool, and the single-chip microcomputer receives the command and controls the ENABLE pin of U2 in the schematic diagram 1, so that OUT+ and OUT- are powered on, and the AB pole bus is in the power-on state;
步骤三:在串口调试工具上发送“获取电流”指令,单片机获取二级运放的采样值(TP16),并判断结果是否满量程,如果接近满量程,获取一级运放的采样值(TP15),如果还是接近满量程,获取电阻分压处的采样值(TP14),最后结合计算得到的电压参数计算得到电流值;Step 3: Send the "get current" command on the serial port debugging tool, the single-chip microcomputer obtains the sampling value of the second-level operational amplifier (TP16), and judges whether the result is full-scale, and if it is close to full-scale, obtains the sampling value of the first-level operational amplifier (TP15 ), if it is still close to the full scale, obtain the sampled value (TP14) at the resistor divider, and finally calculate the current value by combining the calculated voltage parameters;
步骤四:在串口调试工具上发送“获取电压”指令,单片机分别获取AB极上电阻分压处(TP14)的采样值,通过判断AB极采样值的大小,计算得到两者差值,并结合计算得到的电压参数计算得到电压值;Step 4: Send the "get voltage" command on the serial port debugging tool, and the single-chip microcomputer respectively obtains the sampled value of the resistance voltage divider (TP14) on the AB pole, and calculates the difference between the two by judging the size of the sampled value of the AB pole, and combines The calculated voltage parameter calculates the voltage value;
步骤五:在串口调试工具上接收框内查看返回数据包,截取数据内容通过IEEE754二进制浮点数算术标准进行转换获取真实结果。Step 5: View the returned data packet in the receiving box on the serial port debugging tool, intercept the data content and convert it through the IEEE754 binary floating-point arithmetic standard to obtain the real result.
本发明的技术效果:该方案通过设计了针对二总线双电阻电路的一种可靠、高效的电流电压检测电路,该关键技术为使用一层分压电路和多级运放电路对电压数据进行分层级放大,通过单片机的ADC采集采样电压并通过计算,获取AB极母线上电流和电压的数据,解决了电子雷管使用的安全性问题,提升了电子雷管电流和电压检测的准确性。Technical effects of the present invention: the scheme designs a reliable and efficient current and voltage detection circuit for two-bus dual-resistor circuits. Hierarchical amplification, the sampling voltage is collected by the ADC of the single-chip microcomputer and the current and voltage data on the AB pole bus are obtained through calculation, which solves the safety problem of the use of electronic detonators and improves the accuracy of current and voltage detection of electronic detonators.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211481317.2A CN116047155A (en) | 2022-11-24 | 2022-11-24 | Electronic detonator current and voltage detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211481317.2A CN116047155A (en) | 2022-11-24 | 2022-11-24 | Electronic detonator current and voltage detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116047155A true CN116047155A (en) | 2023-05-02 |
Family
ID=86126189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211481317.2A Pending CN116047155A (en) | 2022-11-24 | 2022-11-24 | Electronic detonator current and voltage detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116047155A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929268A (en) * | 2012-10-16 | 2013-02-13 | 福建慧翰微电子有限公司 | Self checking implementation method of vehicle-mounted remote monitoring terminal |
CN205232200U (en) * | 2015-12-31 | 2016-05-11 | 绵阳绵仪电子科技有限公司 | Multrirange signal pickup assembly |
CN106679517A (en) * | 2017-01-04 | 2017-05-17 | 北京煋邦数码科技有限公司 | Method for receiving electronic detonator control chip signals and detecting current of electronic detonator |
CN112767642A (en) * | 2020-12-14 | 2021-05-07 | 深圳市豪恩安全科技有限公司 | Double-light-source photoelectric smoke detector detection method, device and system |
CN113064029A (en) * | 2021-03-17 | 2021-07-02 | 南京传积兴自动化科技有限公司 | High-voltage direct-current insulation monitoring system and monitoring method |
CN216308789U (en) * | 2021-11-17 | 2022-04-15 | 北京桦芯国创科技有限责任公司 | Monitoring device for electronic detonator and electronic equipment |
CN216956145U (en) * | 2021-11-02 | 2022-07-12 | 河北爱其科技有限公司 | Meter pen device of wireless multimeter and wireless multimeter |
CN114967531A (en) * | 2022-04-21 | 2022-08-30 | 上海芯飏科技有限公司 | Networking electronic detonator feedback detection method and system |
CN115046439A (en) * | 2022-06-15 | 2022-09-13 | 美唐科技(江苏)有限公司 | Electronic detonator bus current acquisition system |
CN219201759U (en) * | 2022-11-24 | 2023-06-16 | 深圳寅辰科技有限公司 | Current-voltage detection circuit |
-
2022
- 2022-11-24 CN CN202211481317.2A patent/CN116047155A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929268A (en) * | 2012-10-16 | 2013-02-13 | 福建慧翰微电子有限公司 | Self checking implementation method of vehicle-mounted remote monitoring terminal |
CN205232200U (en) * | 2015-12-31 | 2016-05-11 | 绵阳绵仪电子科技有限公司 | Multrirange signal pickup assembly |
CN106679517A (en) * | 2017-01-04 | 2017-05-17 | 北京煋邦数码科技有限公司 | Method for receiving electronic detonator control chip signals and detecting current of electronic detonator |
CN112767642A (en) * | 2020-12-14 | 2021-05-07 | 深圳市豪恩安全科技有限公司 | Double-light-source photoelectric smoke detector detection method, device and system |
CN113064029A (en) * | 2021-03-17 | 2021-07-02 | 南京传积兴自动化科技有限公司 | High-voltage direct-current insulation monitoring system and monitoring method |
CN216956145U (en) * | 2021-11-02 | 2022-07-12 | 河北爱其科技有限公司 | Meter pen device of wireless multimeter and wireless multimeter |
CN216308789U (en) * | 2021-11-17 | 2022-04-15 | 北京桦芯国创科技有限责任公司 | Monitoring device for electronic detonator and electronic equipment |
CN114967531A (en) * | 2022-04-21 | 2022-08-30 | 上海芯飏科技有限公司 | Networking electronic detonator feedback detection method and system |
CN115046439A (en) * | 2022-06-15 | 2022-09-13 | 美唐科技(江苏)有限公司 | Electronic detonator bus current acquisition system |
CN219201759U (en) * | 2022-11-24 | 2023-06-16 | 深圳寅辰科技有限公司 | Current-voltage detection circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN207992398U (en) | A kind of relay parameter test device | |
CN210720695U (en) | Open-circuit fault information extraction circuit and fault diagnosis system of T-type three-level inverter | |
CN108663622B (en) | Battery pack voltage measuring circuit and voltage measuring system | |
CN1080477C (en) | Circuit for detecting overcharging and overdischarging | |
US11796578B2 (en) | Insulation detection circuit for voltage balance | |
CN108398644A (en) | A kind of power battery of pure electric automobile Insulation Inspection System and method | |
CN108896823A (en) | A kind of method of charging resistor detection | |
CN219201759U (en) | Current-voltage detection circuit | |
CN116047155A (en) | Electronic detonator current and voltage detection method | |
CN105137268A (en) | Sampling circuit for residual current transformer | |
CN115097187A (en) | Boost circuit lossless current sampling method suitable for large current input | |
CN109347059A (en) | A kind of hardware over-current protection method and system for bidirectional current output | |
CN117148079A (en) | Insulation detection circuit and detection method | |
CN111474399A (en) | High-voltage side large-current precise sampling conversion circuit | |
CN203133181U (en) | Device for measuring the internal resistance of accumulator battery | |
CN207007937U (en) | A kind of detection circuit of multi-section serial battery voltage | |
CN115656637A (en) | A low-cost photovoltaic panel-to-ground insulation resistance detection circuit and detection method | |
CN115663755A (en) | AB pole short circuit protection method for two buses | |
CN220490926U (en) | Circuits and systems for real-time calculation of power consumption | |
CN220137274U (en) | Insulation resistance testing device and testing equipment | |
CN217981619U (en) | High precision current sampling circuit | |
CN213585725U (en) | Diode switch circuit based on microcurrent | |
CN108845186A (en) | The detection circuit and detection method of ground resistance | |
CN215340056U (en) | Insulation detection circuit | |
CN222167112U (en) | Current detection circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240131 Address after: Floor 23, Building A, Bantian International Center, No. 5, Huancheng South Road, Ma'antang Community, Bantian Street, Longgang District, Shenzhen, Guangdong 518000 Applicant after: SHENZHEN K-FREE WIRELESS INFORMATION TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 518000 104, Block T2-A, High tech Industrial Village, No. 022, Gaoxin South 7th Road, High tech District Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Applicant before: Shenzhen Yinchen Technology Co.,Ltd. Country or region before: China |
|
TA01 | Transfer of patent application right |