Reed switch current sense

microcontrollerreed

I'm working on a home project where a microcontroller records time when outdoor lights are switched on/off. Outdoor lights are 220V activated by built in PIR sensor. They're located outdoors 20-30m from the controller board. I was thinking to put a reed switch next to power lines so that when lights are switched on reed switch is shorted and microcontroller is interrupted.

I've checked other topics where people use current transformers but that seems over complicated to me as I don't need exact current value but rather just on/off state. My aim is to keep it simple and robust. Now questions:

  1. What is minimum distance between different reed switch/power line combos?
  2. There are some relays on the same board that control loads. Would relay coil affect reed switch? How should I protect reed from unintentional activation?
  3. What would happen to reed switch if it's activated by AC generated magnetic field?

Best Answer

1) That depends on the sensitivity of the reed switch and its proximity to the power line.

2a) Yes.

2b) Either locate the reed switch away from the relay coil or align its axis 90 degrees away from the relay coil's axis, or both.

3) It will chatter.

If you're looking for something simple and robust, you may want to consider a current switch; something like:

enter image description here