By Lipi Gupta
Updated Mar 24, 2022
A solenoid is a tightly wound coil of wire that generates a magnetic field when electric current flows through it. By arranging the turns in a cylindrical shape, the field lines align along the axis, turning the coil into a powerful, controllable electromagnet.
Begin by selecting a non‑conductive core—such as a plastic dowel or a metal rod with a rubber coating—to keep the turns evenly spaced. Use insulated enameled copper wire that matches the intended current load; thinner gauge for low‑power circuits, thicker for higher currents. Wrap the wire tightly and uniformly around the core, leaving long free ends for connections. The goal is to create as many turns as needed while maintaining consistent spacing to avoid shorting adjacent turns.
After reaching the desired number of loops, gently remove the core. Trim the excess wire and keep the two free ends long enough to connect to a power source or a signal source such as an audio jack.
Choosing the right gauge is crucial: a wire that is too thin may overheat under high current, while a wire that is too thick wastes material and makes winding difficult. Match the wire’s resistance and heat tolerance to the intended application.
In air, the magnetic field inside a solenoid is described by the simple formula:
B = μ N I
where B is the magnetic flux density, μ is the permeability of free space, N is the number of turns per unit length, and I is the current. By increasing the number of turns or the current, the field strength rises proportionally.
Adding a ferromagnetic core—such as a steel rod—can amplify the field dramatically, because the core’s permeability far exceeds that of air. This is why solenoids are widely used in relays, valves, and magnetic sensors.
Speakers rely on a solenoid (the voice coil) and a permanent magnet to convert electrical audio signals into mechanical vibrations. When the audio signal flows through the coil, the changing current alters the magnetic field, which interacts with the magnet and forces a diaphragm to vibrate, producing sound waves.
To construct a basic speaker, you’ll need:
Secure the solenoid to the base of the cup, place the magnet inside the coil, and connect the coil ends to the AUX cable’s tip. When you play music, the coil’s magnetic field oscillates, causing the magnet—and any attached diaphragm—to vibrate, thus generating audible sound.
For a compact project, use 36‑gauge enameled copper wire and wrap it around a 1‑inch diameter core to form roughly 100–200 turns. Leave long tails to connect to the AUX cable; if the wire is still coated, gently sand the ends to expose the conductor.
Attach the mini solenoid to the bottom of a plastic cup and position a small neodymium magnet at the center. The cup’s interior serves as a natural resonator, amplifying the vibrations. With 1–3 disk magnets, the speaker’s output will be noticeably louder than with a single magnet.
Connect the coil ends to the AUX cable, plug the cable into a phone or computer, and test the sound. Experiment with more turns or stronger magnets to explore how the speaker’s performance changes.