You can find more details Here.
This is the final wiring diagram: Http://www.electronics-sa.com/download/file.php?id=38
And here is all the code. Feel free to use and improve/modify it as much as you want. It's a Visual Studio 2010 solution.
Here is little video:
- Paul Newton likes this