Here's what I'm looking to do and I'm having a hard time wrapping my head around the electrical/wiring part of this:
I have a 1" PVC pipe. I want to put a valve inline with this pipe and with my Raspberry Pi 2 I want to be able to open and close this valve. I'm guessing the type of valve I'll want to use is something like this.
Obviously that takes 110 volts, so the power source wouldn't be the pi. I have 120 volts run to the same area which I imagine I would use to control the valve (for the power source).
How does the pi fit in this place? How exactly could I wire this up so that a signal from a GPIO could switch this valve on/off?