Go Down

### Topic: 24ac signal (Read 1 time)previous topic - next topic

##### Mar 22, 2013, 01:27 am
I have a appliance that is switched with a 24ac signal.  I want to use the arduino to count the number of times it turns on and off during a giving day.   I'm just not sure how to tie the 24ac signal to something arduino friendly?  Any help would be great
Matt

#### sonnyyu

#1
##### Mar 22, 2013, 02:35 am
AC VOLTAGE TRANSDUCER

It will tie the 24ac signal to something arduino friendly, however it is not very price friendly.

#### Nick Gammon

#2
##### Mar 22, 2013, 03:42 am
Does it have an indicator light you could slap a light detector on?

Failing that how about a bridge rectifier into an opto-isolator via a couple of current-limiting resistors?

There's a circuit on this page that shows detecting the zero point of a 230V AC signal. Now 24V is somewhat less than that so the resistors would be different but the concept is the same.
Please post technical questions on the forum, not by personal message. Thanks!

http://www.gammon.com.au/electronics

#### Nick Gammon

#3
##### Mar 22, 2013, 05:27 amLast Edit: Mar 22, 2013, 06:00 am by Nick Gammon Reason: 1
I just tried this circuit out on a 15V AC transformer I had lying around. This is going to be similar to your 24V AC device.

You could use a bridge rectifier (as I did: W02M) or 4 x diodes to rectify for the opto-isolator. The 2K resistance (in total) would reduce the current to around 12 mA which is about right for the device. That completely isolates your Arduino from the appliance. Then on the other side the opto-isolator turns on when the current flows, driving the output low. The capacitor is there to smooth out the AC signal so it just looks like an on/off situation, not on/off 50 or 60 times a second.

Note that the output (to Arduino) is low when the device is on, and high when the device is off.

You could probably eliminate three of the diodes because half-way rectification would be adequate in this case.
Please post technical questions on the forum, not by personal message. Thanks!

http://www.gammon.com.au/electronics

#### Nick Gammon

#4
##### Mar 22, 2013, 05:59 am
I might be wrong about the half-rectification. After all we are trying to discharge the capacitor, and if we only activate the opto-isolator 50% of the time, the average would be for it to stay (at least partly) charged.
Please post technical questions on the forum, not by personal message. Thanks!

http://www.gammon.com.au/electronics

#### sonnyyu

#5
##### Mar 22, 2013, 03:36 pmLast Edit: Mar 22, 2013, 05:56 pm by sonnyyu Reason: 1
Quote
You could probably eliminate three of the diodes because half-way rectification would be adequate in this case.

Yes we could, all we need add one electronic capacitor at output half-way rectification.

or use this

since we face 24V instead of 110V, cap could be droped.

second one use Optocoupler with AC Input.

#### dgerman

#6
##### Mar 22, 2013, 03:47 pm
Would something as simple as a single diode (makes 1/2 wave DC), a 10uf cap(turns it into lumpy DC) and a 78L05 regulator provides protection and makes very nice DC be appropriate ? (looking to minimal component and cost) Does this approach provide isolation?

#### sonnyyu

#7
##### Mar 22, 2013, 04:06 pmLast Edit: Mar 22, 2013, 04:09 pm by sonnyyu Reason: 1
I might be wrong about the half-rectification too.

Since u have one electronic capacitor connect with Arduino input. electronic capacitor at output half-way rectification might not necessary.

#### sonnyyu

#8
##### Mar 22, 2013, 04:21 pm

Would something as simple as a single diode (makes 1/2 wave DC), a 10uf cap(turns it into lumpy DC) and a 78L05 regulator provides protection and makes very nice DC be appropriate ? (looking to minimal component and cost) Does this approach provide isolation?

No

#9
##### Mar 22, 2013, 11:29 pm
Thanks for all the responses!  I was thinking of rectifying it, just wasn't sure what to do beyond that.
I will definitely play with that circuit

Go Up

Please enter a valid email to subscribe