Solenoid is the generic term for a coil of wire used as an electromagnet. It also refers to any device that converts electrical energy to mechanical energy using a solenoid. The device creates a magnetic field from electric current and uses the magnetic field to create linear motion. Common applications of solenoids are to power a switch, like the starter in an automobile, or a valve, such as in a sprinkler system.
How a Solenoid Works
A solenoid is a coil of wire in a corkscrew shape wrapped around a piston, often made of iron. As in all electromagnets, a magnetic field is created when an electric current passes through the wire. Electromagnets have an advantage over permanent magnets in that they can be switched on and off by the application or removal of the electric current, which is what makes them useful as switches and valves and allows them to be entirely automated.
Like all magnets, the magnetic field of an activated solenoid has positive and negative poles that will attract or repel material sensitive to magnets. In a solenoid, the electromagnetic field causes the piston to either move backward or forward, which is how motion is created by a solenoid coil.