Is it possible to detect AC Switch ON/OFF using Arduino ?

Hello,

I don't want to use octo coupler, hall sensor or any other sensor,
I want to try to build a small circuit consist of a coil and Analog input of the arduino

Just to detect if the AC switch is ON or OFF (only 1 AC wire), I don't need to measure
the voltage or the current.

Anyone has idea on how to implement that ?

Thanks

Whether or not anything is connected to the switch?

aarg:
Whether or not anything is connected to the switch?

In my case an AC wire is connected to the Switch, and I need to detect when it is on or off,
since it is 220V AC my ATtiny85 in my setup won't like that very much if I connected GND and Input pin to detect switch turning on, haha.

So I seen a few solutions of non contact ways of detecting current flow, but nothing with an Arduino
or ATtiny in my case

Hi,
I am working in a project same as your are and I am planning to use something like this attached link. I just want to find out if it is ON/OFF.https://www.ebay.com/itm/SCT-013-030-015-Non-invasive-AC-Current-Sensor-Split-Core-Current-Transformer/202039651550?ssPageName=STRK%3AMEBIDX%3AIT&var=502036005191&_trksid=p2055119.m1438.l2649

So I seen a few solutions of non contact ways of detecting current flow, but nothing with an Arduino
or ATtiny in my case

I don't think you understand how hall effect sensors work. They are NOT connected to the house wiring at all, as they would pop just as fast as your Attiny.

Just to clarify, are you after the switch *position * or whether there's voltage applied to whatever the switch operates?

dougp:
Just to clarify, are you after the switch *position * or whether there's voltage applied to whatever the switch operates?

Switch position this is the goal.

Can you post an image of the switch?

dougp:
Can you post an image of the switch?

Sure, Oval Rocker Switch - 2 Pins

tinman13kup:
I don't think you understand how hall effect sensors work. They are NOT connected to the house wiring at all, as they would pop just as fast as your Attiny.

I understand that completely, not sure why you thought I wasn't

Have that switch also power an AC relay.
Monitor the contacts of the relay with the Arduino.

.

larryd:
Have that switch also power an AC relay.
Monitor the contacts of the relay with the Arduino.

.

I heard that before, sorry but I'm not sure how it is been done, can you explain ?

Or just use a DPST rocker switch.

tinman13kup:
Or just use a DPST rocker switch.

Yes

Should read DPST Switch

larryd:
Yes

Should read DPST Switch

Thanks it seems like this is the most simple solution.

so it is 2 switches that operates at the same time but separated, so once is AC load,
the other would be connected to input pin in the arduino ?

Brilliant :slight_smile:

nitbeat:
Thanks it seems like this is the most simple solution.

so it is 2 switches that operates at the same time but separated, so once is AC load,
the other would be connected to input pin in the arduino ?

One switch that has 2 separate sets of contacts (isolated from each other).
Called a DPST switch.

larryd:
One switch that has 2 separate sets of contacts (isolated from each other).
Called a DPST switch.

Thanks

careful with the DPST switch. having AC being switched next to the DC signal to the arduino may cause interference. I had something similar happen when switching 24vac with a small relay from the arduino causing the arduino to freeze.

vulture2600:
careful with the DPST switch. having AC being switched next to the DC signal to the arduino may cause interference. I had something similar happen when switching 24vac with a small relay from the arduino causing the arduino to freeze.

mm I'm planing to connect 220V AC line next to the Arduino Input, what do you suggest ?
how can I avoid interference ?