Hello everyone,
I'm building a circuit to measure current. The main idea is to use a current transformer (CT) to step down the current and then measure it using three different op-amps with different gain levels, connected to the ADC channels of a microcontroller. The goal is to detect leakage current. So far, everything is working conceptually.
However, I have a concern regarding a specific edge case. Since the purpose of this circuit is to measure leakage current, when there is no leakage, I expect the ADC readings to be close to zero. But if the CT wires are accidentally disconnected, I will also read zero from the ADC. My question is:
How can I distinguish between these two scenarios (no leakage vs. disconnected CT)?
Is it possible to detect this difference purely in software, based on what the ADC sees, without adding extra hardware to the circuit?
I haven’t built the circuit in real hardware yet, so I’d like to analyze this aspect first before proceeding.
Also, I have a sample project that seems to handle this. I’m attaching pictures of it below. In particular, I think the U1-P30 pin might be used for this purpose. The CT is connected between SP16 and SP12.
Any ideas or suggestions are appreciated. Thanks in advance!
I'm building a circuit to measure current. The main idea is to use a current transformer (CT) to step down the current and then measure it using three different op-amps with different gain levels, connected to the ADC channels of a microcontroller. The goal is to detect leakage current. So far, everything is working conceptually.
However, I have a concern regarding a specific edge case. Since the purpose of this circuit is to measure leakage current, when there is no leakage, I expect the ADC readings to be close to zero. But if the CT wires are accidentally disconnected, I will also read zero from the ADC. My question is:
How can I distinguish between these two scenarios (no leakage vs. disconnected CT)?
Is it possible to detect this difference purely in software, based on what the ADC sees, without adding extra hardware to the circuit?
I haven’t built the circuit in real hardware yet, so I’d like to analyze this aspect first before proceeding.
Also, I have a sample project that seems to handle this. I’m attaching pictures of it below. In particular, I think the U1-P30 pin might be used for this purpose. The CT is connected between SP16 and SP12.
Any ideas or suggestions are appreciated. Thanks in advance!
Attachments
-
30.8 KB Views: 22
-
20.6 KB Views: 23