Heres one solution, note the schematic on this page.

http://www.sparkfun.com/products/8745