LowPowerLab Forum

Hardware support => General topics => Topic started by: Roger2016 on October 30, 2016, 04:37:12 PM

Title: Sensing AC signal from 24VAC thermostat transformer
Post by: Roger2016 on October 30, 2016, 04:37:12 PM
I want to log my furnace activity, to sense & log when the thermostats are active, when the circulater is running and when the burner is firing.  I run a wood stove and in short my goal is to try to determine how much oil I spend on heat vs hot water.  So basically I want to sense signals that are 24 Volts AC.  No doubt the Motino would not be happy to see that voltage on a pin.  What's the best way to turn that 24VAC signal into something the Motino can handle?

Thanks!
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 02, 2016, 08:25:57 PM
Here's how I sense 16VAC on the DoorbellMote:
When 16 VAC is flowing from the doorbell the H11AA1 emits a half wave AC signal through a photo transistor which you can pick up and invert and convert to DC using a PNP transistor + smoothing capacitor and read on a digital pin.
You can do the same for 24VAC.
See this blog post which describes the DoorBellmote  (https://lowpowerlab.com/2015/07/23/more-awesome-arduino-doorbell-control/) and also the initial theory of operation in this blog post (https://lowpowerlab.com/2015/04/13/doorbell-moteino/).

(https://lowpowerlab.com/wp-content/uploads/2015/07/bellmote_schematic.png)
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: TomWS on November 02, 2016, 10:45:26 PM
Odd rendition of a PNP transistor.  I suspect that the emitter and collector leads are reversed (although I suppose it could be operating in inverted mode but that configuration is rare and probably not necessary for this application...)

Tom
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: damonb on November 02, 2016, 10:58:35 PM
Symbol is NPN, so I think more likely it's NPN as emitter follower and the PNP label is wrong.

Come to think of it, the optocoupler would generate a stream of pulses at 60 Hz... Hence the emitter follower to charge the 10uF cap.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 03, 2016, 09:44:54 AM
Thanks for keeping me honest guys, it's a PNP for sure. The symbol was wrong. I took the shortcut to use an existing Eagle part instead of creating a new symbol.
Schematic above and blog post are updated.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Roger2016 on November 03, 2016, 10:14:54 AM
I can't seem to find that H11AA11 anywhere for sale.  Is there an alternate part#?
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: sparky on November 03, 2016, 10:55:08 AM
It appears DigiKey has the SMD option;
http://www.digikey.com/product-detail/es/vishay-semiconductor-opto-division/H11AA1-X007T/H11AA1-X007TCT-ND/4895860

Edit:  They do have an thru hole option also;
http://www.digikey.com/product-search/es?keywords=H11AA1-X006
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Roger2016 on November 03, 2016, 11:35:16 AM
I  was searching on    H11AA11 as stated in the post.  You found H11AA1 which looks correct.  Was the  H11AA11 a typo in Felix's post?

Thanks!
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 03, 2016, 11:42:22 AM
Whoops sorry again another typo, yes H11AA1.
Lately I've been using the LTV-814H instead, same thing, a little cheaper.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: sparky on November 03, 2016, 11:51:00 AM
Quote from: Felix on November 03, 2016, 11:42:22 AM
Whoops sorry again another typo

I think you just making sure were awake..  ;D
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 03, 2016, 12:30:26 PM
@sparky,
Ha, thanks for being nice and patient with me :)
I have my hands and brain in several different places most of the time, even when I (try to) post here.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Roger2016 on November 03, 2016, 01:58:52 PM
Thanks so much for the help!

How about if all I wanted to do is to light up a LED to indicate locally that a zone was activated, could I just add the proper value resister in series with a LED.  since it's AC the led would be blinking at 60 Hz, but should appear to be on solid, or is there more to it?

Thanks again 

Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 03, 2016, 02:38:38 PM
Quote from: Roger2016 on November 03, 2016, 01:58:52 PM
How about if all I wanted to do is to light up a LED to indicate locally that a zone was activated, could I just add the proper value resister in series with a LED.  since it's AC the led would be blinking at 60 Hz, but should appear to be on solid, or is there more to it?
The "RED LED" in the schematic above does just that.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: perky on November 03, 2016, 02:45:48 PM
This is a neat solution, although I would be tempted to put a reverse diode across the opto-isolator LED and drive it from both AC signals, that way you don't need a common ground reference between your AC and local ground.
Mark.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: Felix on November 03, 2016, 03:18:02 PM
@perky,
Not sure I'm fully following, the "GND" and "16VACSWITCHED" are the actual AC signals, the "GND" one functions as a ground for the circuit, the other AC signal is wired through a relay.
Title: Re: Sensing AC signal from 24VAC thermostat transformer
Post by: perky on November 03, 2016, 03:58:15 PM
Quote from: Felix on November 03, 2016, 03:18:02 PM
@perky,
Not sure I'm fully following, the "GND" and "16VACSWITCHED" are the actual AC signals, the "GND" one functions as a ground for the circuit, the other AC signal is wired through a relay.

Ah, OK. In which case the local ground reference is one of the AC arms which is fine (assuming this local ground can float). If you were using some other local ground like a power supply though it might be an issue.

I'd still put the protection diode across the opto-isolator LED though if using 24V, it's going to break down when reverse biased (there'll be potentially 34 volts across it).
Mark.