Added electronics control (really a few analog write statements)