software and firmware for an Arduino/FPGA system