Open Relay when USB connected

Hello,

I am finlasing PCB V2.
Wuld it be possible that the big relays activates when USB is powered instead of using a switch ?

Thx

Someone made this drawing. In your case Digital out(s) would be the 5v pin on the arduino.
But you must cut the 5v supply from pcb to nano, else the power will not turn off again, when you take out USB.
I think the D3 on pcb does the D1 job in this schematic.
Text beneath belongs to schematic:

You need a diode across the relay coil to handle back EMF or you may destroy the transistor. Ignore the LED in this picture

enter image description here