Hi, I am using Arduino Nano.
I wired 12V power supply to VIN/GND pins. And trying to use 5V pin to power a relay module. Wiring this way, the relay module behaves strangely when powering the nano with 12V, the behavior is random, sometimes switches on for one second then relay loses power, or sometimes lasting longer before losing power again.
If I power the Nano and Relay with usb cable (while I was uploading the codes), the relay functions as expected.
Am I doing anything wrong with the VIN/GND wiring with 12V?