Building a HID motion sensor