I want to drive an optocoupler from a 28V AC source that will output a signal to an Mega8 microcontroller so I can read if the source is off or on.
I am assuming the 28VAC will be noisy as it direct from a transformer and driver relays that are switching 120vac, hence the optocoupler.
My intital thoughts are use a full wave rectifier to convert to DC, then a small resistor to drop the current for the optocoupler. I assume this is going to be wasteful with the resistor radiating a couple watts or so.
Is there a more elegant solution to my issue?
Thanks for the help,
-Dave