i was trying to do something similar a while back
http://arduino.cc/forum/index.php/topic,76821.0.html