Circuit breaker using microcontroller project

AI Thread Summary
The project involves creating a circuit breaker using a microcontroller, with a current transformer (CT) and peak detector feeding into an ADC for overload protection. The system successfully trips at over 10A, but concerns arise regarding handling short circuits and inrush currents, specifically whether to implement a delay before tripping. Discussions highlight the importance of understanding I²t for energy let-through and the need for different trip times based on load types, as not all breakers can handle inrush currents. Additionally, the method of calculating RMS values versus instantaneous measurements is debated, with true RMS requiring more comprehensive waveform sampling. Overall, careful design considerations are necessary to ensure effective protection without damaging components like transformers.
TheRedDevil18
Messages
406
Reaction score
2
So I am trying to make a circuit breaker using a microcontroller. I managed to get as far as this

upload_2017-8-5_20-44-4.png


So I have the CT with a peak detector running to the adc. I then calculate the rms by dividing by root 2, which I then compare with a reference in this case 10A and it trips via the mosfet/relay. So, I tested it and it works fine with overloading above 10A.

I was wondering how to deal with short circuits and inrush currents ?, should I have a delay before tripping to allow for inrush current ?

I also tested a short circuit and found that it tripped in 25 ms, how would I know if that is enough to damage the transformer ?, would I have to calculate how hot the winding's get ?
 
Engineering news on Phys.org
TheRedDevil18 said:
I was wondering how to deal with short circuits and inrush currents ?, should I have a delay before tripping to allow for inrush current ?

Yes.

Look up a circuit breaker catalog. Breakers have 'time to trip' curves depending on the type load they are designed to protect.
Wires and motors don't need the fast protection that semiconductors do.

You need to grasp the concept of I2t , a measure of the let-through energy.

This is a not bad place to start: http://m.littelfuse.com/~/media/automotive/catalogs/littelfuse_fuseology.pdf
 
  • Like
Likes donpacino
I'd want to design this with as much fail-safe as I could. Consider making the relay normally open, so that the controller needs to actively keep it energized. And consider using pulses from the controller, so that if it got hung up, in either the high or low state, it would cut power.
 
To add to what jim said...
there are many types of breakers that work for different applications. There is no one breaker to rule them all.
Some will allow for inrush current, others will not.

TheRedDevil18 said:
I also tested a short circuit and found that it tripped in 25 ms, how would I know if that is enough to damage the transformer ?, would I have to calculate how hot the winding's get ?

That's pretty much it. If you can estimate the temperature coefficients around the winding you can get an idea of the heat rise based on the amount of energy discharged.
 
TheRedDevil18 said:
I was wondering how to deal with short circuits and inrush currents ?, should I have a delay before tripping to allow for inrush current ?

Since youre using a uController maybe youre able to detect 2nd harmonics, if you could detect this u know it is inrush current as inrush currents generate a lot of 2nd harmonics.
 
TheRedDevil18 said:
So I have the CT with a peak detector running to the adc. I then calculate the rms by dividing by root 2, which I then compare with a reference in this case 10A and it trips via the mosfet/relay. So, I tested it and it works fine with overloading above 10A.
Did you increase the current (in steps) from 0 to 10A and the CB tripped as soon as the current exceeded 10A?

The capacitor gets charged to the peak voltage detected by CT secondary and holds that voltage because it can't discharge through the diode.
Suppose you have 2A current and the capacitor charges up to the corresponding peak value. If the current now drops to 1A, the capacitor will still hold the voltage corresponding to 2A and will show only that value. This means, instead of showing the true value of current at a particular instant, the program will display the value of the maximum current flowed till that instant.

This won't be a problem if you don't want to display the value of the current and just want to trip the CB. If you want to auto-reclose the breaker (which is often (but not always) done in CBs) after it trips, this won't work.
Plus, no matter how much delay you add in your program, the breaker will trip if inrush current flows.
 
Last edited:
  • Like
Likes jim hardy
I tested a lot of circuit breakers. A nominal half cycle was fastest i could find.
Part of that is arc suppression, if there's significant current the arc doesn't extinguish until sinewave zero crossing.
Part is time for the mechanical parts to move. Their inertia does some averaging for you, mechanical analog computing if you will. One even had a flywheel to give inrush tolerance.

TheRedDevil18 said:
So I have the CT with a peak detector running to the adc. I then calculate the rms by dividing by root 2

So your decision to trip is based on an instantaneous measurement
not on a true RMS calculation which involves an integration over time ?

http://www.analog.com/en/analog-dialogue/raqs/raq-issue-54.html
this ic may be no longer available but the datasheet is informative as a tutorial.
http://www.analog.com/media/en/technical-documentation/data-sheets/AD636.pdfNice catch @cnh1995 !
 
  • Like
Likes cnh1995
jim hardy said:
So your decision to trip is based on an instantaneous measurement
not on a true RMS calculation which involves an integration over time ?

If I am to use true rms, then would I have to sample the whole waveform of one cycle ?, that would then increase the time that the circuit breaker can act

cnh1995 said:
Did you increase the current (in steps) from 0 to 10A and the CB tripped as soon as the current exceeded 10A?

I actually did try increasing and decreasing the current and the current did decrease. I also wondering why, but I am guessing maybe it discharged through the ADC resistance ?
 
TheRedDevil18 said:
. I also wondering why, but I am guessing maybe it discharged through the ADC resistance ?
It is possible, but the time constant would be very high compared to the time period of the input voltage. So if you decreased the current from 5A to say 3A, the capacitor will first slowly discharge and after some time, it will have the voltage corresponding to 3A, provided that you didn't further decrease the current meanwhile.
 

Similar threads

Back
Top