IR control of solenoid and stepper