EmonTH - detect extractor on/off

No doubt there's a simple way of doing this...

I have an emonTH in the loft and a mains extractor fan which I'd like to monitor (on/off).

The fan run-on is controlled by a humidistat located before the emonTH, so I really just want to know if the adjacent mains cable is live or not, and report that as binary input to emonCMS.

The CT sensor approach used with emonTX doesn't seem appropriate - it's a low power fan so I might need to split the mains cable and loop the live through multiple times etc..

thanks!

fluppie007's picture

Re: EmonTH - detect extractor on/off

http://www.harizanov.com and look for Detecting AC.

Schism's picture

Re: EmonTH - detect extractor on/off

Excellent, thanks. I really like the idea of just sticking a coil of wire on a resistor... very clever

Bra1n's picture

Re: EmonTH - detect extractor on/off

I think you need to look a little closer it's a small neon and an LDR, built one myself, works well.

cybergibbons's picture

Re: EmonTH - detect extractor on/off

There's two solutions on the the harizanov.com site - one is an LDR and neon (which involves tapping into the wiring), the other one is a coil and resistor into the ADC. The coil is less developed but could work.
I'd be interested in seeing if there are any refined non-contact voltage detectors available. It would be handy for sensing things like valve position in a heating system without touching the wiring.

charliemic's picture

Re: EmonTH - detect extractor on/off

Another option is to use an airflow switch, but you would have to be able to install in the duct. Current monitoring better if you can make it work.

Schism's picture

Re: EmonTH - detect extractor on/off

As I wired the loft myself, I'm not afraid to break into the wire if I have to, but a non-contact method would be preferred, so there's no issue with curious fingers getting fried. 

This topic seems to confirm the concept... I'll report back once I've given it a try.

carticy's picture

Re: EmonTH - detect extractor on/off

Hi Schism,

 

I was in the same situation than you and I decide to solve it with an easy, safety and cheaper solution :

Buy a power supply for mobile telephone. means 220V input (use in parallel of the fan input)  and USB output will give you a stabilized 5V  (directly understandable by the emonTx digital input, when the fan will be supply)

the circuit is already protect against all possible damage, reverse polarity, thermal dissipation or transient , so really safety, and cost 5€.

good luck.

Schism's picture

Re: EmonTH - detect extractor on/off

Thanks, that's also a great idea. It would be easy to wire in a single socket (although it would need to be clearly labelled in case anyone later tried to plug a hoover or kettle and blew the lighting circuit!)

Schism's picture

Re: EmonTH - detect extractor on/off

OK, I just put a dozen turns of wire around a lamp cable, into the emonTH analogue pin, and used a very weak pull-down (2x10M resistors to ground).

Easily detects when the mains line is energised:

ON :  507
ON :  507
ON :  508
ON :  509
ON :  509
ON :  510
ON :  509
OFF:  28
OFF:  28
OFF:  29
OFF:  26
OFF:  28
OFF:  29
ON :  510
ON :  509
ON :  509
ON :  506
OFF:  29
OFF:  28
OFF:  30
OFF:  29
OFF:  34

Bra1n's picture

Re: EmonTH - detect extractor on/off

I missed the coil/resistor method so humble apologies but I'm glad you corrected me as I have a situation that could use that solution, thanks.

Schism's picture

Re: EmonTH - detect extractor on/off

The only unfortunate thing is that it's using the only analog pin out on my emonTH, which I think will interfere with D18B20 operations.

I need to experiment and see if a longer coil of wire will increase the 'on' value enough for IRQ0...

Schism's picture

Re: EmonTH - detect extractor on/off

 I've almost managed to get this working on IRQ0, despite the maximum reading I get on the analogue pin being ~500. Unfortunately it misses a transition every few times, which is ultimately no good.

I've tried different lengths / coils of wire, but I don't understand the physical principle. Is there a way to adjust the threshold on the digital pin? (Google not encouraging)... or any other ideas?

pb66's picture

Re: EmonTH - detect extractor on/off

Robert Wall's picture

Re: EmonTH - detect extractor on/off

Schism: Is this http://harizanov.com/2013/08/non-contact-ac-detection/ what you don't understand?  It appears to be relying on stray capacitance between the live conductor and the pickup wire. The 1 MΩ resistor is actually reducing the sensitivity, but it's probably necessary to lower the probability of false detection.

To make it more sensitive, the easiest way is to put the "aerial" in close proximity to the live conductor, and put as much length as possible parallel to it, so as to increase the capacitance.

Schism's picture

Re: EmonTH - detect extractor on/off

That's the one, Robert. Thanks for the advice - I've got 20MΩ as a pull down, about as weak as it gets!

I'll try a longer cable and tape it on parallel to the mains and let you know the result.

thanks,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.