I want to use a relay switch with the GPIO on my raspberry pi 2 (40 pins).
I found the link below on google and it mostly makes sense, what I'd like to know is why do I need to use a transistor to activate the relay switch? why can I not just wire it up directly?
http://www.susa.net/wordpress/2012/06/raspberry-pi-relay-using-gpio/
please keep in mind I am a novice with electronics.
Thank you :o)