Arduino firmware for Dagny