张三叔

2019 Question C: Line Load and Fault Detection Device +828006A

 
Overview

1. Topic analysis

5SxMT3lFhbcqZ8pMFiJyI4msGpoJy5VovFCpm9PA.png

 

1. Measurement of resistance, capacitance and inductance component parameters

 

WVBqsbbavrYwmUKDeIgXdQLcm4At6SSLseGnPmnK.png

 

 

       The DDS signal comes from the high-speed AD-DA circuit board made in the laboratory. DDS is used to apply a sinusoidal excitation signal to it. The voltage signal waveform on both sides of the standard resistor is transmitted through the high-speed ADC to the microcontroller STM32F407 for communication using SPI. The microcontroller obtains the actual sum through the fft algorithm. The imaginary part, since the real and imaginary parts of resistance, capacitance, and inductance are different, can be used to determine what component it is, and then calculate its value based on the real and imaginary parts.

 

 

2. Judgment of load structure

 

uC6lqawYUChK3JaAjwpTXW8AZsJJZ5WdqvSrdJoW.png

       

First, DDS generates a sine wave of 0-100khz in steps of 10khz, and uses a high-speed ADC to synchronously sample two points of the standard resistor. The MCU uses the FFT algorithm to calculate the voltage of the two points of the standard resistor, calculates the gain of the output compared to the input, and obtains the amplitude-frequency characteristics. The load structure is finally determined by analyzing the amplitude-frequency characteristics .

There are 14 types of structure including mixed connection. Our group can only test 10 types. The remaining 4 types are too special and difficult to distinguish.

 

 

3. Short circuit and open circuit judgment

 

Oacpfw8wJiv1n1UYq4wUVYCv7SNn75w9dA8BdZ6J.png

 

      The wire required by the question is a network cable, and its resistance is linearly related to its length. Therefore, a current source can be used to express the length of the wire as a voltage difference. However, because its resistance value is very small, a current source with a small current cannot meet the requirement, and the current source itself Affected by temperature drift, measuring the voltage at both ends of the wire alone will be very unstable. Therefore, we added a standard coil, compared its voltage with the voltage at both ends of the wire to be measured, and then fitted the short-circuit distance and voltage value. function, the corresponding short-circuit point position can be obtained.

      The circuit break judgment is relatively simple, just directly judge whether the voltage difference across AB is close to 0V.

 

 

2. Hardware design ideas

Overall flow chart:

 

cW6ggBjjPSWiOzMLGFrQBijJyLIvnvymx9AIrmaN.png

 

 

1. Current source

We adopted the 500mA Electronic Load solution in the routine Voltage_to_Current in TINA-TI to meet the large current of 500mA required by the problem, so that the wire resistance of a few ohms can be converted into a voltage of hundreds of milliamps, which is convenient for ADC measurement.

hVaSQWBqOeJCsfbggid5Ptfa8Pw7RSAdUBCM5FfX.png

 

 

2. Relays and analog switches

      The signal frequency is not high, so the relay does not need to be a high-speed relay, just use an ordinary relay. We use the HRAH-S six-pin relay, which has a simple structure and is easy to control.

Fdxnpe1fBez34fyxCUUOb2o9rOKUri34xTOYQeQ1.png

 

The analog switch uses CD4053, the voltage difference at both ends of the standard coil is connected to ax-bx, the voltage difference at both ends of the wire to be tested is connected to ay-by, and the common output is ao-bo.

ZqQrOpiVhx8yKKv3YSSYdbkMglkaEWMgJn5vNOux.png43QzBSO7WNBIcGGIZUxm1izNj0OzPYzZpNdJYgkx.png

 

 

3. Amplifier

      Since the voltage difference generated by the current source through the internal resistance of the network cable is small, and the output of the front-end analog switch is a differential signal, we choose the INA128 low-power precision instrumentation amplifier to amplify the voltage difference by 5 times, as close as possible to the minimum range of the ADS8691.

      The gain resistor selection is shown in the following table:

Dk4uFn0CMIioWfgwul6AWTLaTva38pEIc1RiOcty.png37V1dND0ErZ4AHlUdqUlnTPjn0gg5Lu7nNuIqUoL.png

Since noise needs to be added to the performance part of the problem, a 104 capacitor can be pulled down after R8R9 to form a passive low-pass filter.

 

 

4. DC ADC

    Since the problem requires adding noise, we chose the ADS8691 with its own internal low-pass filter. This device is powered by a 5V analog single power supply, but supports ±12.288V, ±6.144V, ±10.24V, ±5.12V and ± 2.56V actual bipolar input range and 0V to 12.288V, 0V to 10.24V, 0V to
6.144V and 0V to 5.12V unipolar input ranges. The gain and offset error of each input range can be adjusted within a specific value range to ensure high DC accuracy.

    Through the amplifier in the front stage, the DC voltage is amplified to a level close to the most accurate minimum range of 0V to 5.12V.

puQBuZ7mEaRFyK5PBR2dyZsNaIWvozPjPgNGU8aN.png

uN4imWAUgpCR6PRvuTPrmDPGSv4rIbOFA6pE5O61.png

 

 

5. High speed ADDA

It is used to provide the sinusoidal signals required for measuring components and structures, and to collect the signals at both ends of the standard resistor. Considering that two channels of signals need to be collected, we choose dual-channel ADDA chips, and the main control is controlled by FPGA EP4CE6E22C8.

 

The ADC chip uses ADS5553 dual-channel, 14-bit, 65MSPS, and the front-end input signal is through a fully differential amplifier.

eQ98eioO1i6glg5gC9ilzBe609QAirefcCTljFIT.png

 

Once the signal is captured at the input, the input samples are sequentially converted through a series of small resolutions and the outputs are combined into a digital correction logic module. Both the rising and falling edges of the clock are used to propagate samples through the pipeline every half clock cycle. This process results in a data delay of 16.5 clock cycles, after which the output data is provided as 14-bit parallel words encoded in binary 2's complement format.

zVfsXvcWh913W1RwqRwdWrE2Kbqru8NDXQfVxHjt.png

 

Timing diagram:goRRroiMCTsZb8Pjv4tiHY5RGnNCRmBR0Z3E0eH2.png

 

The pre-stage differential amplifier can be selected according to the input signal frequency corresponding to the requirements:

GFq8MQAeH5QTLuAPzLB0IPpuo0YZQJaHZKJhAUJ4.png

 

Each of the two ADCs provides data of 14 in two's complement format (D13 to D0, D13 is the MSB and D0 is the LSB), the data ready signal (CLKOUT) and the over range indicator (OVR) are equal to 1 when When the output reaches the full-scale limit. Additionally, output enable controls (pins 48 and 52) are provided to tri-state the outputs.

 

The reference circuit comes from the ADS5553 datasheet.oWuhCub8TfZySTaRsvFN0HHPaAzs28vDryxChLcR.png

Chip manual Dual 14 Bit, 65 MSPS ADC datasheet (ti.com.cn)

 

 

 

The DAC chip uses DAC5672, 14-Bit 275 MSPS

pGLcncSUiePSztLXx0NVGZTDF3kN0tkM4EhtB7BV.png

 

Has two operating modes selected by MODE pin.

Kdfa6Ta1vcmfXRjVk8trCsvIfeWbRydNRW3PRFDZ.png

 

 

For circuit design, please refer to the datasheet of DAC5672:

MWeypmrHfFggA50bihueTBFPjqDHExepVNSHioZ0.png

 

SN8FfppN90RiH1446bGuUy5TxVKUSyOJOteQbd4r.png

Chip manual: Dual 14 Bit 275 MSPS DAC datasheet (Rev. D) (ti.com.cn)

 

Issues you need to pay attention to when designing circuits and drivers:

1. It is necessary to design a power supply with stable power supply. Because of the large power, the FPGA of our board becomes a little hot after being used for a long time.

2. ADC input impedance matching and DAC output impedance matching.

3. When the sampling frequency of the ADC is low, the output data is always the default value. Because the input port of the ADC is connected to a capacitor, the signal can only pass when the frequency is relatively high.

4. The output voltage of a fully differential operational amplifier should theoretically be symmetrical to CMA or CMB, but the actual maximum output voltage is close to CMA and CMB.

Let’s do a simulation first to see the situation.

 

chy7XGtYvISZxYF5u0ngSH0glUvxnJieEemLY48t.png

The relationship between the output voltage and input voltage of a fully differential op amp


You can see the voltage measured by the ADC

High-level input voltage 2.4V
Low-level input voltage 0.8V

Reference voltage 


REFSEL Reference voltage selection port
Reference select. 1 → EXT. REF; 0 → INT. When REF
is pulled low, the default output is positive voltage.

internal reference voltage

Reference bottom voltage, VREFM 1.01V
Reference top voltage, VREFP 2.16V

 

Use singTap to sample the waveform of the input signal. Initially, the frequency of the input signal is relatively low.

The sampling frequency is relatively high, and the data stored in the 2K memory is incomplete, so the actual waveform cannot be seen.

XFHGl1N7IxjZi9tqLAmQswsqf6w2jLBcZBA91Chi.png

 

 

 

 

3. Software design ideas

aoguarsbfMfV0IPns1HMl46argI85u2VfUjNiCQz.png

 

 

 

The main function repeatedly judges the situation with a cycle of 1s, and short circuit has the highest priority.

ULzcMGwrZ13ZRCe4d5BL1Dcg0CyXkQkBrSP2nHun.png

 

 

Measure the distance function and determine the voltage range at the same time to determine whether it is a short circuit. If not, return 0 to determine other states.

wp9i1T9qpm8NvDL9Cig1V7tM6e0Ql0Gc6whdpYmv.png

 

 

To determine the structure function, perform fft on the waveform measured by the ADC and then determine the structure type.

float z_standard[2],z_standard_module;//real part + imaginary part of standard impedance

float RX,CX;//Resistance value and parasitic parallel capacitance of the resistor

CjuROBA2EhONdaKdmEM5bLVi9sypG5S3PhUviiqV.png

8IJIkTz8TtfogaztaEEgLy5DvxWpMBEysiqB19vO.png

 

 

FPGA DAC driver module refreshes address, reads data from ROM, and outputs data

Eq48yXMwnJ6FAonentjUEekZ9LzvOBGjGen2uPFh.png

 

Set the output frequency of DDS

pZHjflD3moY6BsrkX6TZJVxZDKQwUUiyaKSsZlkT.png

 

 

4. Physical functional testing

 

L6rvaiGH9tzPs3kVKPxNHfpfPupUNB7C0aCoXC8h.jpeg

 

 

Measuring short circuit point: 35cm, error within 1cm

ZoBQc1QtwqQN6vE7xDtK4O5wreTXrEUpxF3T4PhO.jpeg

E4XJwnwKK6qQ6AllLFH4eeMjCP11qR8DhTvk022Zp.jpeg

 

The frequency sweep signal is provided by FPGA:

Uuj4QkrBEeT0BhOmJ0C8wOVNckVn01RFzXAxC3Lu.jpeg

 

See the video for the detailed test, which meets the basic requirements and functional parts of the question and complies with the description of the question. No manual intervention is required. The device can automatically detect load changes, fault alarms and short-circuit fault point location in real time. The position of the short circuit fault point is shown to be stable.

59katCuVBhBmhHcmuHTJUBcgVNdPEx2jcDu2BOXc.png

 

Test video:

Basic part: Line load and fault detection device test video

Playing part: Line load and fault detection device playing part

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-08 15:14:35

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

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号