Here's a very simple way to do this; http://www.best-microcontroller-proj...n-Circuit.html

I havent tried this myself yet, though.

Regards,

Anand Dhuru