I am doing a little project where I control a solenoid valve with a Raspberry Pi, connecting the Pi to a 3v relay with the solenoid connected to power through it. I am having trouble controlling the relay with the Pi, however, and I'd like some advice.
I am trying to use a 3.3v GPIO pin to activate a transistor (through a 1k resistor first), using the transistor to send a 5v pin power through a diode to the relay and back to ground, essentially https://imgur.com/fNh5e7n. This does not seem to be working. I am getting very weak power through the E terminal, but nowhere else.
Could anyone offer support? It would be greatly appreciated.