I was wondering if I can control a DC 3-6v Gear Motor without any thing but my Raspberry Pi. I have provided an image of what I have done and it does not seem to work but when I plug the positive side in to the 5v on my breadboard, it works just fine. I am also running the code to work on the GPIO (BCM) 17 pin.
Here is the image of what : have done that does not work
this is the image of what works
Please help me, is there a way I can do this or do I need some kind of driver such as the L298N driver module?