Solenoid and DC Motor Control