Finally got it working with the Arduino. Should be functional now.