xmen_xwk
Full Member level 3

I need to control around 2A to 3A AC solenoid/coil with arduino. For that I got a 5V relay module. But after reading this article. I realized I would need 2 different power supply, one for arduino and one for relay. But doing that also doesn't guarantee of proper isolation. I was wondering how would I do proper isolation ?(Not 100% obviously but better)
Now second question

The above schematics shows, using NPN transistor we are controlling the relay. But with software it will work opposite, when Signal Pin will be LOW, the relay will be ON. And relay will be OFF when signal is LOW. I want to do it correctly if its not a problem ? So to do that, I want to replace VCC with signal pin and signal pin to GND. Will that be a problem with isolation ?
Thank you
Now second question

The above schematics shows, using NPN transistor we are controlling the relay. But with software it will work opposite, when Signal Pin will be LOW, the relay will be ON. And relay will be OFF when signal is LOW. I want to do it correctly if its not a problem ? So to do that, I want to replace VCC with signal pin and signal pin to GND. Will that be a problem with isolation ?
Thank you