I'm trying to control an LED(5 mm LED) from the relay using raspberry pi 2 board. I have an 8 channel 5V relay. I also have a 9V dc battery for the LED. I'm a little confused with the connections regarding the relay because i don't want to damage my Pi.
So one side of the relay will be the raspberry pi and the other side will be 9V battery and the led?
I have attached an image file showing the connections. Is it alright?