1
\$\begingroup\$

ZMPT101B

I am interested in the ZMPT101B circuit and there are a few things I cannot understand.

This circuit is designed to measure AC Main voltages between 50Hz and 80-250V and to be read from an MCU like Arduino. (This is the module that sells a lot on the web.)

  1. Why did we superimpose the signal from opamp 1 (U1.1) on 2.5V and then eliminate the DC component with capacitor C4? Couldn't we not overlap 2.5V? Was this really necessary?

  2. What is the purpose of capacitors C2 and C5? What could they be used for in this circuit?

  3. The ZMPT101B is a current transformer. So we can bring the voltage to the value we want with the R1 resistor. Then why did we try to get 10 to 100 times gain with 2 opamps. Couldn't we increase the R1 resistor and make 10 times gain with a single opamp? Or could we not make 100 times without changing the R1 resistor? Was 2 opamp circuits used just to avoid inverting?

  4. I cannot get 5V output in the simulation. 1.5V clipping. Therefore, I can get a maximum output of 3.5V. If I make pin 8 of the last opamp 6.5V instead of 5V, the output can go up to 5V. What is the reason for this?

  5. With resistor R12 we can reduce the output of the first opamp. This circuit is normally designed for voltages up to 250V, but theoretically even 1000V seems to be measurable. I can see this in the simulation. Will this cause a problem in practice?

  6. Wouldn't it be much simpler if instead of this opamp circuit, we set the R1 resistor according to the range we want (maybe using a potentiometer) and use a zener diode so that the output does not exceed 5V? What would be the disadvantage?

I did the simulation but I could not find the answer to my questions.

\$\endgroup\$
15
  • 1
    \$\begingroup\$ Why we cannot arbitrarily increase the burden resistor for a Current Transformer. And please note that despite you saying it is in your words, the transformer is not a CT. \$\endgroup\$
    – Andy aka
    Commented Nov 6, 2023 at 9:04
  • 1
    \$\begingroup\$ @bevren15 - Hi, (a) As you're new here, please see the site rules in the tour & help center as they differ from typical forums. (b) You must not keep expanding the question after receiving an answer. Doing so makes answers look wrong / incomplete as they no longer address the changed question. Search for the term "chameleon question" on Meta Stack Exchange. Therefore I have "rolled-back" your question to the state where it was answered. \$\endgroup\$
    – SamGibson
    Commented Nov 6, 2023 at 13:50
  • 1
    \$\begingroup\$ (cont'd) You seem to be having problems using the site as you asked too many points in one question, which can lead to some being answered & some not. That breaks the intended use of this site - one question per topic, ideally. While it may not be possible to stick to that when there are very closely related points within a question, it is up to you when asking to minimise the "breadth" (i.e. be specific) both to avoid the question possibly being closed as "needs focus" and so that it can be more easily recognised by other people in future as applying to their question too. \$\endgroup\$
    – SamGibson
    Commented Nov 6, 2023 at 13:50
  • 1
    \$\begingroup\$ (cont'd) Please reconsider how to write any new questions separately, one at a time (waiting for each new question to be completed before asking another one), without overlap. You can link to this question for context, but any new question must be self-contained and not rely on people reading this one too. Thanks. \$\endgroup\$
    – SamGibson
    Commented Nov 6, 2023 at 13:50
  • 1
    \$\begingroup\$ @bevren15 - Re: "I have asked 6 questions here." Actually I count 12 as some "questions" contained multiple points. "Do I have to open 6 different questions" You don't know that all 6 (or 12) questions will be needed. It depends on the answers to the first question. Any more than one question per post increases your risk of having problems. It depends on the connection between points and the total number. Remember, Stack Exchange is not a forum, it's a Q&A site and we want focused questions. Best is to ask a single question with a single point, whose answer you have carefully researched... \$\endgroup\$
    – SamGibson
    Commented Nov 6, 2023 at 15:36

4 Answers 4

2
\$\begingroup\$

I don't doubt that I've missed a few important points, but here are my thoughts:

  1. Why did we superimpose the signal from opamp 1 (U1.1) on 2.5V and then eliminate the DC component with capacitor C4? Couldn't we not overlap 2.5V?

If you trusted that the first amplification stage centered its output at exactly +2.5V, then you wouldn't need C4. If even you know that U1.1 output is centered close to +2.5V, but not exactly, any DC offset there will be multiplied by the gain of stage U1.2, which could be significant.

Anyway, gain control potentiometer R12 ruins any hope that the signal being fed to the following stage is centered about +2.5V. The signal on the wiper of R12 can be centered anywhere down to 0V, so the following stage must be AC coupled using C4. Also, see 3.

  1. What is the purpose of capacitors C2 and C5? What could they be used for in this circuit?

They are diminishing gain at high frequency, for two possible reasons. Firstly they help eliminate high frequency content (like noise, or short current spikes) that is of no interest to you. Secondly they help stabilise the op-amp, reducing any chance of oscillation or ringing. That probably isn't necessary in such a simple feedback setup, so I'm going with the first reason, noise rejection.

To be honest, such small capacitances aren't really helping with noise, I'd expect to see tens or even hundreds of nanofarads there, to get the cut-off frequency way down, if that really were their purpose. However, I don't know what this circuit was intended to measure, so I can't say for sure.

  1. Why did we try to get 10 to 100 times gain with 2 opamps? Couldn't we increase the R1 resistor and make 10 times gain with a single opamp?

Yes, but a larger burden resistor R1 would increase the voltage across R1, increasing the power dissipated in R1. Larger burden voltage may also cause the transformer core to saturate. Everything depends on the transformer's own characteristics and the amount of current you expect to see in its secondary winding. The burden resistance must be chosen to keep the transformer out of saturation, to keep power dissipation in the resistance itself within safe limits, and large enough to produce a measurable, useful voltage.

Using a single LM358 configured with a gain of 100 would have a couple of consequences:

  • Any input offset voltage of the LM358 would also undergo amplification by a factor of 100, which is problematic to control. Even a 1mV offset will appear as 0.1V DC error at the output. It would be possible to implement offset adjustment at the input, but that's an added complication. By using two stages, each with a gain of 10, and by removing DC offset from the first stage with C4, only the second stage offset is significant, which might result in only tens of millivolts of error, instead of hundreds.

  • The gain bandwidth product of the LM358 is 1MHz or so. A single stage with gain 100 would have a bandwidth of only 10kHz. That's only a problem if you are interested in frequency components above that. If this is just mains AC at 50Hz, then bandwidth is probably not a concern. By using two LM358 stages, each with a gain of 10, bandwidth increases to about 100kHz. That's probably way beyond what you'd need for most applications anyway.

  1. I cannot get 5V output in the simulation. 1.5V clipping.

The LM358 can get its output close to its negative supply potential, but that output is only guaranteed to get within 1.5V or so of the positive supply. In other words, with supplies of 0V and +5V, you can only expect perhaps 20mV to +3.5V at the output. That's a limitation of this particular op-amp, and you'll need to refer to the datasheet to know what your particular model of op-amp can or can't do at its output. That particular constraint is described on page of 7 of this LM358 datasheet, in section 6.5; see "Output", parameter "Voltage output swing from rail".

Similar constraints apply to the inputs too, which you can see on the same page, under "input voltage range". Of course, as you suggest, one way to obtain a higher possible output, and improve the range of acceptable input potentials, is to raise the op-amp's positive supply potential. Raising it to +6.5V would indeed render the op-amp capable of producing a 5V output.

It surprises me that the designer of this circuit choose to center the signals in and out of the op-amp at +2.5V, when it would make more sense to bias everything around half way between the actual input and output ranges that the LM358 can handle. That is \$\frac{3.5V}{2}= 1.75V\$.

  1. theoretically even 1000V seems to be measurable

The problem is isolation between the primary and secondary windings of the transformer. Maybe it's only rated for 250V, above which you risk arcing, and serious damage and danger to the secondary circuitry and human user. If the transformer is rated to guarantee isolation between primary and secondary windings up to 1000V difference, then you can measure current from a 1000V source on the primary side.

The chief danger lies in the difference between the transformer's primary side potential, and secondary side potential. If that potential difference exceeds the transformer's rated maximum (its isolation rating), then you shouldn't be surprised when everything catches fire.

  1. Wouldn't it be much simpler if instead of this opamp circuit, we set the R1 resistor according to the range we want (maybe using a potentiometer) and use a zener diode so that the output does not exceed 5V?

I explained that you need to choose R1 carefully, but sure, you could use elements like a zener diode or potentiometer to adjust and clamp the signal. The constraints on R1 (due to the transformer's own foibles, as well as R1 itself) may make this difficult or impossible to do. It may be impossible to obtain a measurable voltage using just a burden resistor.

Besides, connecting an expensive ADC/MCU semi-directly to a current transformer is not as reassuring (at least to me) as introducing a layer of protection/isolation in the form of a cheap op-amp stage.

An op-amp offers great flexibility and simplicity in terms of signal conditioning, but is certainly not mandatory. The two big benefits of op-amps, that spring to mind for this application:

  • The inability of an op-amp to output voltages outside the range of its own power supply potentials may be reason enough to use one, since it helps ensure the ADC won't ever see anything dangerous.

  • Filtering, scaling and offsetting are trivial to do using an op-amp.

\$\endgroup\$
9
  • \$\begingroup\$ I really appreciate your long explanation. It is my fault for not writing that this circuit is designed to measure AC Main voltages between 50Hz and 80-250V and to be read from an MCU like Arduino. Does the answer to question 2 change accordingly? Because those capacitors don't make sense to me either. I wondered if it was something like an integrator, but I couldn't get it. And again according to this information, is the 0.1V offset error you mentioned in item 1 of your 3rd answer still possible on an AC Main line? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 9:43
  • \$\begingroup\$ Again in your 3rd answer, you mentioned the saturation of the core of the transformer. This is a current transformer. So it transmits the current in a constant way. Does voltage really affect the saturation of this transformer? And since we are talking about the AC Main line entering, what do you think C1 could be doing? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 9:44
  • \$\begingroup\$ Also, what I wanted to ask in question 1 was this: If we did not overlay the signal on 2.5V, that is, if we did not make the voltage divider with resistors R3 and R2, would it not work? We are already doing this operation in the second opamp. If there is any offset in C4, it already resets. Why did we use R3 and R2? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 10:11
  • \$\begingroup\$ @bevren15 Not sure why C1. With or without it, the output's centered about the potential at the junction of R2/R3, 2.5V. R2/R3 needed to bias the input and output at 2.5V average, so that negative swings of the input don't get clipped by the op-amp unable to output less than zero, and the input is also within the acceptable range. \$\endgroup\$ Commented Nov 6, 2023 at 12:17
  • \$\begingroup\$ @bevren15 secondary current should have zero average, no long-term offset. Any offset appearing at the output of U1.1 will be due to op-amp input offset voltage, and will be cancelled by C4. Due to C4, any permanent offset at the output of U1.2 is due entirely to U1.2 input voltage offset, not from anything prior. \$\endgroup\$ Commented Nov 6, 2023 at 12:23
1
\$\begingroup\$
  1. If you DC couple (short C4) the second opamp will amplify the offset voltage (deviation from the midpoint voltage of 2.5V) of the first stage which is undesirable. Also, in this circuit adjusting R12 will change the DC voltage at the input to U1.2 (usually specified as U1B).

  2. C2 & C5 form low pass filters. The corner frequency is \$1/(2 \pi RC)\$.

  3. The idea of a current measuring device is to have minimal impedance (close to zero). If you raise the value of R1 the input impedance will increase which is undesirable for a current monitor. It is up to you to determine how much series resistance the monitoring circuit should have. Depending on frequency bandwidth required, the transformer will work best with a certain impedance range (value of R1).

    By placing a series resistor (R13) on the input this circuit, it measures voltage. In this case, you could play with the value of R1 to adjust the scaling, but this may affect the bandwidth of the circuit. If you make R1 too small, the winding resistances of the transformer will become significant and must be considered.

  4. You need to read the data sheet for the opamp. The LM358 output voltage swing is about (VCC - 1.4) to (VEE + 0.1) volts. Thus, what you're seeing in the simulation is expected. You may want to choose a modern opamp with a rail-to-rail output. The LM358 is cira 1976 which is considered ancient.

  5. It is unclear why this is rated for 1 kV. Perhaps it is a safety issue or the long term withstanding voltage. The voltage measuring capability is really determined by the voltage rating of the input resistor (R13). Be sure you select a suitable voltage rating for resistor R13.

  6. This is answered in Item 3.

\$\endgroup\$
2
  • \$\begingroup\$ In question 1 you answered why we used C4, but what I really want to know is why did we use R3 and R2? If we didn't use them, there would be no 2.5V offset and there would be no problem. Why was this necessary? For your 2nd answer, I forgot to add that this circuit is already made to measure 50Hz 80-220V AC Main voltage. Is a low pass filter really necessary in this case? Or could it have another purpose? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 10:16
  • \$\begingroup\$ For your 3rd answer, do you think the following is true? R13 limits the current here. This transformer reflects the current at the input. With resistance R1, we convert this current to the voltage we want. Therefore, what kind of problem can increasing R1 resistance create? For your 5th answer, this is a commercially available module. The transformer supports 1000V. If only the voltage of R13 limits this circuit, why don't they make R13 higher? In this way, they could sell it as a 1000V measurement instead of 250V with a small change. I wonder if there is another limit we cannot see? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 10:22
0
\$\begingroup\$

R2 and R3 are used to bias the inputs and outputs of U1.1 into their proper working range, which is 0 to 3.5 V. It might be better if they produced 1.5 to 2 volts rather than the 2.5 V they do, but 2.5 V will do if the signal stays small enough.

\$\endgroup\$
2
  • \$\begingroup\$ I can't vote for you because I'm a new user, but I understand this part now. Thank you for your clarification. Can you confirm if I have understood correctly? Since the incoming signal is AC, if we had not aligned this signal to 2.5V, it would have cut the negative polarity of the signal because it could not fall below 0V, and a half-rectified positive polarity signal would be reflected at the output. By centering the signal, we were able to amplify and reflect it to the output without any interruption in the signal. \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 12:12
  • \$\begingroup\$ @bevren15 basically yes. When you want a strictly 0 V - centred signal, then you have to shift the op-amp's working voltage to suit the signal, and use a +ve and -ve supply to the opamp. Shifting the signal is a good workaround if you need to match the signal to the opamp. \$\endgroup\$
    – Neil_UK
    Commented Nov 6, 2023 at 12:32
0
\$\begingroup\$

This is a response to a comment about my comment; too long for a comment.

@AnalogKid - You have created new question marks in my head :) You say that since these circuits are AC-coupled, the DC offset gain is 1. First of all, by looking at which elements did you understand that it is AC-coupled, how can I understand this?

All signals have an AC component, such as audio or the mains signal from the secondary of a current transformer, and a DC component, such as the 2.5 V DC bias applied to pins 3 and 5. C1 and C4 are coupling capacitors. Their function is to couple the mains signal through from one circuit section to the next, but not let the DC component on one side affect the bias and other circuit parameters on the other side. In you case, the DC component of the mains signal at the transformer secondary is 0 V, while the DC operating point of the amplifier is 2.5 V, set by F2 and R3.

Secondly, by looking at which elements did you understand that the DC offset gain is 1?

The impedance of a capacitor is inversely proportional to the frequency of the signal going through it. That is, the lower the frequency, the higher its impedance. At DC, the impedance of a capacitor is infinite; except for a very small leakage current, it is an open circuit. At DC, C1 is an open circuit, so the left side of R4 is not connected to anything. The same is true for C4 and R7. At DC, without a shunt leg to the feedback loops, both opamps are acting as a voltage follower, a non-inverting, unity-gain buffer.

The input offset voltage error of an opamp is a DC term. Think of it as a very small (approx. -5 mV to +5 mV for the LM358) battery between the two inputs. While each amplifier circuit has a gain of 2.4 at 50 Hz, they have a gain of 1 at DC. In this way, the mains signal is amplified but the offset error is not.

https://en.wikipedia.org/wiki/Buffer_amplifier#Op-amp_implementation

NOTE: R4-C1 and R7-C4 each form a high-pass filter with a corner frequency of 159 Hz. At 50 Hz, each amplifier circuit has a gain of 2.4, for an overall circuit gain of 5.71. Not 100.

\$\endgroup\$
1
  • \$\begingroup\$ You have made a very excellent point. Thank you for that. But now when I do the calculation, according to the formula 1/(2*pifC) C1 (1uF) has a reactance of 3.183k. Therefore, since it is in series with R4, it makes 13.183k. On the top side, C2 (100pF) makes 31.831M from the same formula. Since they are in parallel with R5 (100k), it makes 99.687k. Doesn't 99.687k/13.183k = 7,56 gain for one op-amp? \$\endgroup\$
    – bevren15
    Commented Nov 6, 2023 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.