Ring modulator sketch for Arduino