Using Arduino with Relay

I have an omron my2n ac110/120 relay and an Arduino Uno. My requirement is to sense a system is running or not and then send that information over network. A 110 V AC can be drawn from the system to power on the relay. My doubt is the connection of that relay with the Arduino. Any suggestions are welcome. Thanks in advance.

The output of your relay is just a DPDTswitch, treat it like one. Connect one of the commons to ground and the NO of that pole to an input. In setup() in your code set the pinMode of the input to INPUT_PULLUP. When the relay is not energized the input will read (digitalRead(pin)) HIGH. If the relay is energized the input will read LOW.

image

The user system must be completely isolated from the Arduino side. Do not share grounds.

Some reading on using switches with Arduino. >> Inputs

1 Like

if observed relay has no free usable contacts, then it is possible to use reed contact to sense magnetic field of this relay or hall sensor

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.