Interfacing with custom hardware through Arduino