Circuit breaker using microcontroller project

In summary: I did not mention that in the summary. I was just talking about how the circuit breaker works. In summary, the circuit breaker trip based on an instantaneous measurement of voltage.
  • #1
TheRedDevil18
408
1
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
  • #2
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
  • #3
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.
 
  • #4
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.
 
  • #5
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.
 
  • #6
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
  • #7
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
  • #8
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 ?
 
  • #9
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.
 

1. What is a circuit breaker and how does it work?

A circuit breaker is an electrical switch that automatically interrupts the flow of electricity in a circuit in the event of an overload or short circuit. It works by detecting an abnormal amount of current passing through the circuit and quickly opening the circuit to prevent damage to the electrical system.

2. How does a microcontroller play a role in a circuit breaker project?

A microcontroller is the brain of the circuit breaker project, responsible for monitoring the current flow and controlling the opening and closing of the circuit. It also allows for more advanced features such as remote control and programmable settings.

3. What are the advantages of using a circuit breaker with a microcontroller compared to a traditional circuit breaker?

Using a microcontroller in a circuit breaker project allows for more precise and customizable control over the circuit. It also allows for additional safety features, such as detecting and preventing arc faults, and remote monitoring and control capabilities.

4. Can a circuit breaker with a microcontroller be used for both residential and commercial purposes?

Yes, a circuit breaker with a microcontroller can be used for both residential and commercial purposes. However, it is important to ensure that the circuit breaker meets the necessary safety and regulatory standards for the specific application.

5. Is a circuit breaker with a microcontroller more expensive than a traditional circuit breaker?

The cost of a circuit breaker with a microcontroller may vary depending on the features and capabilities included. In general, it may be more expensive than a traditional circuit breaker, but the added features and improved control can provide long-term cost savings and improved safety.

Similar threads

  • Electrical Engineering
Replies
23
Views
3K
  • Electrical Engineering
2
Replies
42
Views
3K
  • Electrical Engineering
Replies
5
Views
5K
  • Electrical Engineering
Replies
3
Views
2K
  • Electrical Engineering
2
Replies
38
Views
5K
Replies
7
Views
2K
  • Electrical Engineering
Replies
1
Views
822
Replies
3
Views
1K
Replies
19
Views
2K
Replies
10
Views
3K
Back
Top