I have a relay module with external power pins (Vin, Gnd).
I use breadboard powersupply module for relay and Arduino Nano (so same Vin and Gnd).
Relay module is switched ON, if the Input pin (In1 or In2) is connected to ground.
If i use the blink sketch with correct PIN number to control relay, it won't turn ON, if the PIN state is LOW.
If i connect input to GND with wire, then relay switches ON.
Relay In1 input current is 4 mA.
Is there any possibility to drive this relay module directly with Arduino?
Or should i use transistor do drain In1 to GND?
Figured it out:
TL;DR: breadboard output voltage was to low (4.12V) for Arduino.
For uploading new code i disconnected breadboard power-supply module.
Uploaded new code and and powered circuit over usb and everything started to work.
If i disconnected USB cable and powered circuit again with this breadboard power-supply, then relays turn on but never switch off.
So i powered Arduino directly from bread-board power module USB and everything started to work.