Author Topic: need help to compute Irms of this topology  (Read 1739 times)

0 Members and 1 Guest are viewing this topic.

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
need help to compute Irms of this topology
« on: June 02, 2023, 02:26:59 pm »
Hi Folks

I would like to compute rms current flowing into R1 according duty ratio that drive the Mosfet.

the goal is to modulate power given to a heater in such a way my EV still charge without making my contract gives up .
I'm living in France , so mains rms is 230V , my contrat is for 30A , and these two loads are two much burden together for that figure.
So I imagined that simple buck with a large inductance to allow CCM. I don't want to be a bad guy for EMC.

I tried to wrote "something" with duty as input and current as output for an equation (I believed it was close to a PFC one)...
and I failled!

if any of you have an idea....

thanks
 

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: us
Re: need help to compute Irms of this topology
« Reply #1 on: June 02, 2023, 04:02:57 pm »
Since you've gotten no responses- I will try.  First let's nail down the problem-

If I understand correctly- you have a circuit in your garage that can deliver 230V at 30A and you want to power a heater and an EV Charger.  The total is more than 30 amps so you want to decrease the heater output when you're charging to stay under the total of 30 amps.

In your SPICE model, it looks like you're rectifying and filtering the line input to make "DC" and then applying a PWM to drive your "Heater"- the 30 ohm resistor shown in the circuit. 

What you're after finally is a closed form solution (equation) for Irms vs duty cycle of the FET drive to the low side of your load.  You've included inductors to smooth out the transitions for EMI.

Is this correct?

First- let's eliminate the inductors- they may be required but they make analysis harder at the beginning.

Second- Calculate the RMS of a pulsed waveforms- go back to RMS definition - square root of sum of squares over a period- square roof (Ipk^2 x Duty + 0 * (1-duty)).  This give you just I sqr(D)


Example is you have 10 amps peak through your load (this would be a Vin of 300VDC divided by your 30 ohms) and drove the FET at 10% Duty Irms would be 3.16 amps.  At 50% duty, you'd have 7.07 amps, at 1%, you'd have 1 amp.

I hope this helps- thank me with the thank button if so.

 
The following users thanked this post: iso14000

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21687
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: need help to compute Irms of this topology
« Reply #2 on: June 02, 2023, 04:59:55 pm »
Rectifying mains is somewhat cutting off your nose to spite your face: the power factor is typically around 0.5.  Power factor is bad because it's only drawing current on the peaks, which about doubles the RMS current draw at any given setting (actually a bit worse at light load, and a bit better at heavy load; it depends).

I presume you want to maximize capacity under the constraints (given Irms input).

If you had a PFC front-end, that would be fine, but that's a lot more complexity.

Note that phase control (TRIAC stuff) and pulse skipping (integral cycle control) also have poor power factor.  Cycle control is a funny case, because the power factor is 1 during a cycle, but considering many cycles, it has the same on-off behavior as any other switching scheme (PF = sqrt(D) or something like that).

The other way is to PWM the AC directly, which is also complicated but for slightly different reasons.

For ease of use, I might suggest getting a VARIAC and... put a servo on it or something?  Next best thing maybe: get a switching supply of adequate total capacity, and PWM the output from that.

Not sure offhand if there's a high PF, continuous heater controller out there already.

Tim
« Last Edit: June 02, 2023, 05:02:39 pm by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8173
  • Country: fi
Re: need help to compute Irms of this topology
« Reply #3 on: June 02, 2023, 05:05:40 pm »
How is your contract being monitored? Does it involve actual monitoring or is it just the main fuse size? Here it's just the fuse, so you can utilize the fact that the gG type fuse does not blow below 1.25*In or so, and even at 1.5*In it takes ages (tens of minutes, hours) to blow. Therefore, a simple on/off relay switching once every 5 minutes or so would do the job without wearing out too quickly.
 

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: us
Re: need help to compute Irms of this topology
« Reply #4 on: June 02, 2023, 05:16:48 pm »
Tim- I figured we'd get to this DC business soon enough- this is clearly not the right approach but I tend to play these balls where I find them.  It does make for easy analysis.

I was going to leave it as a exercise to the student to derive the RMS given a Triac driven by a PWM.

Regards
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #5 on: June 02, 2023, 07:06:00 pm »
Hi

thanks for your answers and advices.
needless to say that I'm not native in English.

okay, so
@Tim, you probably missed that the cap after the bridge is very low, near the one we can found on a regular PFC topology. so we aren't in the double alternance rectification case.
funilly I found with the actual topology (absolutly theorical) a PF very close to 1 (thx LTspice!) , and final ripple seen by AC line is reduced (thanks to the laaaarge inductance input)

I absolutly don't want to chopper the AC by a TRIAC.... it is not the good way to proceed and it is simply forbiden.

I won’t try for real this topology, but I got stuck on this calculation and wondered if, by accident, some of you have ever calculated such a thing

@Siwastaja
my contract is monitored by a connected energy meter from my elec supplier... it allows overloads for a few ms just the time to have the "load shedding" activated

« Last Edit: June 02, 2023, 07:10:20 pm by iso14000 »
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #6 on: June 02, 2023, 07:19:01 pm »
@John : yes correct (and thx)

so you are saying that finally....... to compute the Irms seen by the load .... I can simply ignore the inductance ?
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #7 on: June 02, 2023, 09:07:47 pm »
sorry John, you cannot remove inductor, by simulation there is a large difference for the same duty .... :(
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21687
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: need help to compute Irms of this topology
« Reply #8 on: June 02, 2023, 09:17:12 pm »
Oh dear, it is 470n, yes, that makes things a bit better. ;D

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #9 on: June 02, 2023, 09:30:40 pm »
you won't believe me...
... I performed several simulation to find a clue about the law I dig for...
... and guess what... it is linear  :-DD

amazing!
 

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: us
Re: need help to compute Irms of this topology
« Reply #10 on: June 02, 2023, 11:40:04 pm »
ISO- I never thought the inductors wouldn't affect the result.  I just thought we could start without and iterate.  This does create an outer bound.  I guess I'm not too surprised that its linear either with the inductors in place- buck converters generally follow this rule.  We would have gotten to the same result as we went back and forth.

One thing that might simplify things is a control system like the following.  Put a current transformer over the main input and measure it.  Control the heater based on how close this gets to 30 amps, cut back the heater output based on the total current.  All analog and pretty simple.  I would use the Triac type of control probably with a zero crossing opto (MOC2011), etc.  Could do it without any micros or computation.

Have fun- nice problem.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5907
  • Country: es
Re: need help to compute Irms of this topology
« Reply #11 on: June 03, 2023, 01:49:34 am »
Can't EVs adjust their load from the system software?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Faringdon

  • Super Contributor
  • ***
  • Posts: 1995
  • Country: gb
Re: need help to compute Irms of this topology
« Reply #12 on: June 03, 2023, 10:45:42 am »
...so you want to reduce  current to your heater, so the combined power draw of your electric car, and the heater, is less then 30A.

...So really, do symetrical mains phase cutting with triac.....it will give good harmonics because it is  symetrical....cuts on the leading and lagging edge.

If you are going to do a switcher though.......just remember you are getting an overall sinusoidal input current (when filtered)......so you know what the peak current will be......so do your buck or bridge, or whatever....do the design for it at the case of mains peak......the rest will follow in  good order, as long as your topology makes imains follow vmains.

Easiest way for you is to  do a full bridge, with the resistor in the bridge, and just duty cycle it at HF, with only small capacitance after the bridge (like you are doing)...then your power througput will be according to the duty cycle....OR TRY THE SyMETRICAL TRIAC METHOD I PREVIOUSLY DESCRIBED. (woops sorry about capitals).

Do you want me to send you a ltspice sim of the bridge and the sym triac?
« Last Edit: June 03, 2023, 10:48:50 am by Faringdon »
'Perfection' is the enemy of 'perfectly satisfactory'
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #13 on: June 04, 2023, 10:33:47 pm »
the EV charger cannot be modulated.
I don't want to use a triac : not EMC friendly

I always have fun and learn from another people's spice , yes publish it here.

So to get back on the math, based on the average voltage value of an inductor overall a _full_ cycle in CCM (I mean, the sinus envelope) =0
 I derive the average voltage across the resistor.
If , as I guess, there is a coefficient K between average current in resistance and rms current, then indeed, the power is linear with D.C.

I don't give up trying to find an algebra for Irms ... but until know I don't catch it.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8173
  • Country: fi
Re: need help to compute Irms of this topology
« Reply #14 on: June 05, 2023, 05:59:18 am »
I don't want to use a triac : not EMC friendly

There is nothing EMC unfriendly about triac, they are used everywhere no problem.

Your problem is apparently that you have to cut power off quickly per the ridiculously strict requirements ("few ms") from the power company.

I don't see what you think you are gaining by rectifying and working on the DC domain; it's only going to make things worse, much worse, by worsening power factor because of inherently small conduction angle. You could do active PFC (or, if the power company really applies a fixed current threshold and not some kind of RMS measurement over a full cycle, even constant-current type anti-PFC circuit just for this case) of course...

I think what you should really do is re-evaluate the exact conditions given by the power company, I don't buy the "few ms" story as is. You need to define the problem very exactly in engineering terms before you can find the right solution to it.
 

Offline f4eru

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: 00
    • Chargehanger
Re: need help to compute Irms of this topology
« Reply #15 on: June 05, 2023, 08:04:11 pm »
I don't think this few ms is true. Probably moer in the 500ms-1s range.

Any load with a motor draws large amounts of power when starting.

Those cutoff curves are normalized and mandatory.
see an example : https://www.domomat.com/401003-disjoncteur-de-branchement-erdf-fiche-technique-legrand-domomat.pdf


One simple way to do load shedding on the resistive heater is to divide it down:
take a 3 phase heater resistor, and use binary division by combining:
1xR
2xR //
-> 2 bits, 4 combinations

If you use 2 of those 3-phase resistor sets in your tank :
2xR series
1xR
2xR //
-> 3 bits, 8 combinations. PF always good, no need for PWM, EMC is good also.
you can go farther down low power by serializing even more with switches.
« Last Edit: June 05, 2023, 08:06:57 pm by f4eru »
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #16 on: June 06, 2023, 12:09:14 pm »
HI all

I should have wrote "hundreds of ms"... of course , sorry.

dimming such a load with a triac will make abrupt conduction , leading with EMC issue, and power factor degradation. it is simply forbidden .
I can't either change the water heater resistance.

but finally , I simply described the context for the topology I purposed, let's imagine it is a exam °-D

my real challenge is math. because I found this topology almost "by accident" and after simulation it reveals a good power factor.
who can give me a clue of how to derive Irms seen by the resistance? I'm stuck
 

Offline f4eru

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: 00
    • Chargehanger
Re: need help to compute Irms of this topology
« Reply #17 on: June 06, 2023, 04:06:17 pm »
Nope, triac regulations are not forbidden.
There are extensive exemptions in EMC rules for allowing them.

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #18 on: June 06, 2023, 04:34:23 pm »
mmm.... in full wave yes ... and for low power lighting yes...
and did you solve the little math?
 

Offline Faringdon

  • Super Contributor
  • ***
  • Posts: 1995
  • Country: gb
Re: need help to compute Irms of this topology
« Reply #19 on: June 07, 2023, 07:41:47 pm »
In your schem, you have the inductor in line with the resistor...so the zigzag switching  current goes through the resistive heater , which is probably a big coil structure...with lots of wiring to it........and will cause a radiated EMC problem....this is why you should have a capacitor in parallel with the resistor, and then go from there....but you need the bridge topology that i spoke of before......basically, you end up with a class D amplifier type topology......but instead of a speaker coil..you have your heater....give me a shout if you want me to send you the ltspice sims?

With a bridge topology you have power strokes all the time...whereas with your topolgy, you have an on stroke for power...and then you freewheel the current, and no current comes in from the mains during the freewheel...so you are limited in power...whereas with the bridge you get a power stroke all the time.
« Last Edit: June 07, 2023, 07:43:53 pm by Faringdon »
'Perfection' is the enemy of 'perfectly satisfactory'
 

Offline iso14000Topic starter

  • Contributor
  • Posts: 26
  • Country: fr
Re: need help to compute Irms of this topology
« Reply #20 on: June 08, 2023, 07:57:15 am »
and for the math... do you gotta clue?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf