New to electronics but having fun.
I am trying to turn on/off a water pump with my Raspberry Pi via 3.3V GPIO pin with a BJT 2N5401 Transistor.
I am having success when I attach the Ground pin to the Base of the transistor and the 3.3V GPIO pin to the Emitter. However this seems backwards to me, shouldn't the GPIO pin attach to the Base and the GND be on the Emitter as shown in my second diagram attached.
My circuit diagrams below.
Thanks for having a look!
A little extra about my comment "I think the Pi is not liking the current". In the working setup I am experiencing a little flicker on my Pi which I think means there is a current related issue.