Thanks for your interest, [url=http://www.theengineeringprojects.com/2012/11/relay-interfacing-with-microcontroller.html]Relay interfacing with microcontroller[/url] is not the easy job as it's look. You may need to check this whole tutorial and if you need to understand more about anything which is explained in the tutorial please asked we are here to help you.
Tutorial: [url=http://www.theengineeringprojects.com/2012/11/relay-interfacing-with-microcontroller.html]Relay Interfacing With Microcontroller using ULN2003A[/url]