I think this is a fairly generate request.
You need some form of digital controller board, such as http://www.kadtronix.com/digio.htm
Once we know what you're using, then it might be possible to help you further.
Will
Currently you need to be logged in to leave a message.