Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

AC current detection

Status
Not open for further replies.

trennonix

New Member
Hello,

(please look at the picture attached before reading)

When the relay ticks, i want to know if there's an attached load or if that load is actually working.
In order to do so, i want to detect the presence of a current.
I don't want to use a current transformer because i have little experience with it and it will be connected to a digital pin on a micro.
So i thought of a "device in question" that will:

*hold a voltage on its pins between 2 to 5 V (something that could be easily amplified with a transistor to reach 5V for the micro to handle)
*without causing a great limit in the current flow
(like a diode in DC circuit, it will hold 0.7V on its pins)

This is were I need your help: how do i adapt the diode concept to an AC circuit? (AC @ 220V)

Thanks
 

Attachments

  • circuit.PNG
    circuit.PNG
    12.2 KB · Views: 1,800
I think you should rethink the current transformer idea.
R2 is optional if the transistor is too sensitive. (100 ohms)
R1 is a pull up resistor of 10k, or about any value.
T1 is any 60hz C.T.
The output is low if there is current flow.
 

Attachments

  • Image2.jpg
    Image2.jpg
    53.4 KB · Views: 1,484
Another option.

Ken
 

Attachments

  • Line Detector.gif
    Line Detector.gif
    15.7 KB · Views: 2,171
Hi trennonix,

why afraid using a current transformer?

It can easily be made using a toroidal coil as used in dimmers. Add four windings of flexible (insulated) wire for a secondary winding. (see attachment).

The power loss for the AC load depends on the maximum current the inductor can handle.

The circuit connected to the secondary winding delivers an output directly to the MCU.

The overall amplification factor is aproximately 1,000. If that doesn't suffice increase the value of R4. R7 is added to minimize pulse shaped charging peaks.

Note: Supply pins of ICs not included in schematic.

Boncuk
 

Attachments

  • CURRENT-SENSOR.gif
    CURRENT-SENSOR.gif
    15.1 KB · Views: 2,529
  • current-transformer.gif
    current-transformer.gif
    87.1 KB · Views: 1,771
Last edited:
Hi,

Current transformers are not hard to use, and you can make one by using
an old cheap wall wart.
If you still dont want that, then look for one of the Hall Effect current sensors
that are sold to sense current. They provide an isolated input for the ADC
too, and can sense both plus and minus currents for use with AC.
I think they come in 5 amp to 30 amp devices.
They run about 5 dollars each USD.
 
Here is the PCB design of the circuit I suggested.

The board is purely single sided and measures 1.8X1.4".

If you're interested leave a PM. I'll send you the Eagle files.

Boncuk
 

Attachments

  • CURR-DET-BRD.gif
    CURR-DET-BRD.gif
    26.9 KB · Views: 1,148
Here is the PCB design of the circuit I suggested.

The board is purely single sided and measures 1.8X1.4".

If you're interested leave a PM. I'll send you the Eagle files.

Boncuk

Hi there,

Surely you can design a circuit simpler than that right?
 
Hi there,

Surely you can design a circuit simpler than that right?

If there are "unknowns", e.g. the AC load current it's better to use amplifiers. Last not least the circuit output can be connected directly to an MCU without having to worry about insulation.

Boncuk
 
Thanks alot for all your replies
guess that a current transformer is the way to go,

Boncuk, what's the difference between your circuit and ronsimpsons?
as a newbie, it's very tempting for me to go with the other circuit because of the low parts count.
I know that low parts count isn't always a good thing so this is why i'm asking.
 
Ron Simpson's circuit will work well if the signal from the current transformer is strong enough. (turns ratio)

My circuit already reacts if only 0.1mV are present from the current transformer.

Boncuk
 
Last edited:
Here is another option that I've used before. They work great for both AC and DC. Isolated, 0-5V outputs, easy.

**broken link removed**
 
Here is another option that I've used before. They work great for both AC and DC. Isolated, 0-5V outputs, easy.

The best idea yet! :)

Accurate and low component count.

Here are schematic and PCB layout. PCB measures 0.66X0.69"

Boncuk
 

Attachments

  • CURRENT-SENSOR-I.gif
    CURRENT-SENSOR-I.gif
    13.5 KB · Views: 5,603
  • CURRENT-SENSOR-I-PCB.gif
    CURRENT-SENSOR-I-PCB.gif
    13.9 KB · Views: 1,135
Last edited:
Thanks alot for all your replies
guess that a current transformer is the way to go,

Boncuk, what's the difference between your circuit and ronsimpsons?
as a newbie, it's very tempting for me to go with the other circuit because of the low parts count.
I know that low parts count isn't always a good thing so this is why i'm asking.


You simply need to know , whether the connected load is working or not..... or if the relay is damaged (load will not get the supply and hence no current).... here you go....

Use a Hall effect current sensor (3 pin) which gives 0 to 5V DC output depend on the load current... This is very precision also...You can even know whether the load is under idle or over load (high current) or dead short in load side... ( you can immediately stop the supply to the load)

This output is perfectly isolated from the load line (no direct contact), feed this directly to controller ADC....n do what ever you wish to do .... rest is firmware gimmicks....

You can find such sensor in ALLEGRO....Hall effect sensor...

Pin configuration..: Vcc, Grnd, O/p......... it will cost you less than 1 $

Hope this will help you...
 
You simply need to know , whether the connected load is working or not..... or if the relay is damaged (load will not get the supply and hence no current).... here you go....

Use a Hall effect current sensor (3 pin) which gives 0 to 5V DC output depend on the load current... This is very precision also...You can even know whether the load is under idle or over load (high current) or dead short in load side... ( you can immediately stop the supply to the load)

This output is perfectly isolated from the load line (no direct contact), feed this directly to controller ADC....n do what ever you wish to do .... rest is firmware gimmicks....

You can find such sensor in ALLEGRO....Hall effect sensor...

Pin configuration..: Vcc, Grnd, O/p......... it will cost you less than 1 $

Hope this will help you...

All that has already been mentioned. :D

Don't echo what has been said.

Boncuk
 
Apparently this chip does wonders :O :p

However i don't know if it is available where i live (i'll just have to ask)
It just came to my attention that we didn't comment on KMoffet's sugestion; seems nice if the hall-effect chip is not available.
What do you think?
 
Apparently this chip does wonders :O :p

However i don't know if it is available where i live (i'll just have to ask)
It just came to my attention that we didn't comment on KMoffet's sugestion; seems nice if the hall-effect chip is not available.
What do you think?


You can find the same in FARNELL.... they have allegro parts. There are different packages available. For DC application, PCB mountable packages are available... For AC application, i recomend you to use the sensor which can be mounted in a metal ring. You can feed through the load cable through this metal ring. If current flows through the cable, there will be a magnetic flux around the cable which will get coupled with the metal ring...and the flux get closed through the sensor.... this is how it works..

**broken link removed**
Farnell / Electronic Component Distributors / Suppliers / Electronics, Electrical Parts, Electrical Components and Wholesale Electronics.

You can check the part availability , price per each, volume price... and available models from different mfr....

This is one of the company offer 1 MOQ...

Hope this help u....
 
There are several good ideas presented here.
Two of the ideas require cutting the household wiring and soldering to the wires. I don’t see you soldering #12 wire to an 8-soic. (see picture of ACS712)
I use the CTs because I have many, and I don’t have to touch 220VAC. I pull the wire from a breaker or switch, run it through the CT and put the wire back.
While I use real current transformers, I found a box full of ¾ inch toroid coils with many turns of very fine wire. (thank you used electronics store) It looks about like the last picture but with very fine wire. (500 turns)
As to the sensitive of the circuit, it has to do with the turn ration 100:1, the secondary inductance, and the load on the secondary of the CT. I just built one and tested it. What is your load current? I am test if a pump is on or off. If you want to measure 0.1 amps then you need some gain. (op-amp)
 

Attachments

  • Image1.jpg
    Image1.jpg
    22.1 KB · Views: 670
  • Image2.jpg
    Image2.jpg
    42.4 KB · Views: 681
  • image3.jpg
    image3.jpg
    89.2 KB · Views: 632
There are several good ideas presented here.
Two of the ideas require cutting the household wiring and soldering to the wires. I don’t see you soldering #12 wire to an 8-soic. (see picture of ACS712)
I use the CTs because I have many, and I don’t have to touch 220VAC. I pull the wire from a breaker or switch, run it through the CT and put the wire back.
While I use real current transformers, I found a box full of ¾ inch toroid coils with many turns of very fine wire. (thank you used electronics store) It looks about like the last picture but with very fine wire. (500 turns)
As to the sensitive of the circuit, it has to do with the turn ration 100:1, the secondary inductance, and the load on the secondary of the CT. I just built one and tested it. What is your load current? I am test if a pump is on or off. If you want to measure 0.1 amps then you need some gain. (op-amp)


That is the reason i have suggested allegro....It is very precision...please go through the spec...

And regarding soldering, dont he have a 15W ordinary soldering iron?
A1321 series dont need any hard work to get it soldered, its same like a BC547 transistor...smaller than it...

You will get the metal ring also in the component shop.... it will have a small gap (3mm).. insert the sensor into the gap and put single drop of anabond to fasten it. Thats it over...

rest of the things are in firmware....You can define what ever you want...

Set Under load current..
Set Over load current
Set Load ON/OFF...status..

what else you want from this tiny component...
 
OK, CTs and the Hall-effect/Allegro chips are nice, but what about KMoffet's circuit (first page) ?
How good is it? Do you recommend it?
 
OK, CTs and the Hall-effect/Allegro chips are nice, but what about KMoffet's circuit (first page) ?
How good is it? Do you recommend it?

What kind of load you are going to drive? KMoffet circuit has diode in series to the load....
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top