Projects › Projects › how to control room lights via pc and microcontroller › link for serial
link for serial interfacing
atmega8 relay interfacing ckt
when you send output as logic low at PC0 the LED will not glow. when you send a logic high the relay switch and the LED will glow. apply same logic for you case instead of LED you can connect bulb/ fan/ tubelight, etc.