Moved arduino processing file

Moved code out of controller file