The challenge is that we are trying to measure a difference in a floating circuit. There is no ground there, so a difference amplifier is what is typically prescribed. Difference amplifier needs a negative supply. But since the transformer secondary is isolated, then maybe it would be ok to ground part of it to the measurement circui in order to eliminate the need for a difference amp. I'm not sure I'm being clear. I will play with it some more later tonight. I am not at my PC now.You seem to get it correct (Which you had earlier too) but that adds another negative power as well. trying to cut cost here.
I'm not sure what's going on here but U3 isn't doing anything with its output tied like that, and I think you're back to measuring 3+ volts directly due to your ground point and ideal transformer.Thanks Appreciate that effort to help me here.
Meanwhile i managed to make it this far.
View attachment 135899
Look at the difference in the waveform between the circuit I posted in post #47, and the circuit you posted in #49. In post #47 a 350mV AC signal is transformed into a 3.5V rectified signal. In post #49, a 3.5V AC signal is transformed into a 3.5V rectified signal.Well i looked up U3 and added a resistor to gnd from the Non-inverting input to gnd.
There's no need to give up. In post #47 I provided what I believe to be a perfectly workable solution. I plan in fact to implement that very circuit on my own spot welder when I get back around to making REV2 of that project.If this isn't the one then i guess i'll just leave my design as is and move on.
Isn't that how the 'Precision full wave voltage rectifier' designed to work as per the LT article.The main design of the circuit was to get the same output voltage as the ac signal.In post #49, a 3.5V AC signal is transformed into a 3.5V rectified signal.
The OCV voltage, how is the previous design equal to a OCV.You're once again, effectively measuring "open circuit voltage."
Yes, The LT article describes a circuit that takes a 3.5VAC signal and turns it into a 3.5V rectified signal.Isn't that how the 'Precision full wave voltage rectifier' designed to work as per the LT article.The main design of the circuit was to get the same output voltage as the ac signal.
![]()
I was using that as a reference in the design and the third opamp U3 was something i was just following your advise.
I really feel like I'm not explaining this very well and I'm sorry for that.The OCV voltage, how is the previous design equal to a OCV.
Yes your explanation does make a lot of sense, really makes a lot of sense. yes its obviously in millivolts that the measure should go into the opA and i can't believe i've been doing the same mistake over and over again.this means I only measure across the shunt. And this gives me the millivolts signal that I need.
Sorry if i made you loose your time over this but your a good teacher.I hope all that makes sense. I am not the best at explaining things.
Thank you for the kind words. Glad we are on the same page now.Yes your explanation does make a lot of sense, really makes a lot of sense. yes its obviously in millivolts that the measure should go into the opA and i can't believe i've been doing the same mistake over and over again.
Sorry if i made you loose your time over this but your a good teacher.![]()
Yes, that is fine. That's actually how it is already. The little ground triangles indicate that ground. Meaning, any time you see a ground triangle, it is connected to all other ground triangles. We use the triangles to simplify the drawing. This is the exact same circuit, with wires drawn instead of ground triangles:would it be ok to have a common gnd at the non-inverting pin of U1, the voltage is zero at gnd. Does give the same result. Don't want to assume like i did earlier. If this circuit would be confirmed then i can get back to Eagle and design it.
View attachment 135980


That is quite confusing for the young players. It had me confused as well. So i'll get the pcb designed then.The only reason why we grounded the transformer primary winding is because LTSpice will generate an error for any ungrounded circuits. That's stupid, and irritating. A bad thing about LTSpice. In real life there is no need or reason to ground the transformer primary.
good point to note, shall have that added as well.If the welder doesn't actually put out 3500A exactly maximum (more or less) then you might need to adjust R3. if the shunt value isn't actually 0.0001 ohms then you need to adjust R3
Ideally you would dial it in for 5V at max amps, not 3.5
Would be easier to do that if R3 was a pot.
Not really, the arduino is powered by a 5v power source. Why would you need 10v ?Would be best if the op amps power supply was more than 5V.
5V is what came from the original circuit from LTSpice website, and we just stayed with that value.
it should be about 10V or so (max 22V)
I assume you are using something higher than 5V for the arduino, so maybe just use that.
if not; if all you have is 5V then that's probably still fine, just don't expect to get 5V out of an opamp who's supply is only 5V. They only go within a limit less than supply voltage.
if only 5V is available then maybe scale in the arduino for max @ 4V.

Only if you wanted to get a full 5V output from the opamp. Not really necessary, if you only get 4v or 4.5v then you can scale that easily in arduino.the arduino is powered by a 5v power source. Why would you need 10v ?