I am a beginner in DIY electronics, and I am attempting to control a 12V Solenoid valve from a Pi B2 connected to a 12V Battery and WiringPi Pin 1. I am using a 1kOhm Resistor between the gpio pin and a 100V MOSFET (IRF510). My problem is that when I set wPi Pin 1 to output mode with value 1, nothing happens.
Below is a close up of the circuit I have so far:
And a more zoomed out view:
Here is how I believe this circuit can be represented in a diagram:
I have double checked my connections, and everything seems like it's seated well. Do I have the wiringPi pin numbers confused, or is my circuit somehow incorrect?