I am looking to build a home security camera with a LED light attachment. Many people mention they use a IR Illuminator for the light source which often seem to be DC 12V. I am not sure how one would turn this on and off with a raspberry pi.
Driving Relays directly from RPi GPIO might be a little dangerous. Additional circuit is required. Take a look at link below, it might answer all your questions in that topic.