I have an AC Dimmer Switch you'd normally put in a gang box and use to dim lights in your house. If I wanted to hook up this switch to an Arduino (and JUST an Arduino, NOT mains voltage), how would I check the state of the switch?
My understanding is that a dimmer switch trims the AC waveform at the leading or trailing edge using Zero Cross Detection. So would it be possible for me to use a DAC to generate a 60Hz waveform and trick the switch into trimming it @ 5V instead of mains? Is there an easy way to do this? How do LED light fixtures do it?