Your diagram shows the solenoid power supply connected to "Vin".
For this sort of project, nothing should be connected to "Vin" or the "barrel jack".
Your diagram shows the solenoid power supply connected to "Vin".
For this sort of project, nothing should be connected to "Vin" or the "barrel jack".