[Mal'oo] has one of those laptop computers whose screen swivels to turn it into a tablet. But the thing is a few years old and didn’t come with an orientation sensor that changes the screen between landscape and desktop, but also knows which side is up. His solution was toadd a 12-axis sensor via the mini PCI express header.
The hardware comes in two pieces. The first is a mini-PCIe card to USB interface. This is handy if you want to add a Bluetooth dongle permanently to your computer. But he’s got other things in mind for it. After hacking the BIOS (which for some reason limits what you can plug into this slot) he moved onto the second part which is a USB 12-axis sensor. This picture shows the wires before they were soldered to the USB card. [Mal'oo] couldn’t just plug it in because the sensor wouldn’t have been oriented correctly in relation to the computer. The final product is quite response, as shown in the clip after the jump.

http://hackaday.com/2013/01/31/12-ax...der-tablet-pc/