A solenoid is an electromechanical device that is made up of a coil wound around a movable iron material, also called an armature or plunger. When an electric current is passed through the coil a magnetic field is generated causing the armature to travel over a fixed range.