I bet there is some open source code kicking around that just needs some adjustments to port to arduino