As you may remember from
grade school a magnet can attract metals that are iron (ferrite) or have
iron in them. Magnets also have "poles" or ends that are defined as North and South. As you also may remember like poles repel or push each other away, and dissimilar poles attract. So, for example, if you had two bar magnets and tried to push their north poles together they would push away from each other, but if you brought gemsmotor.com/12v-24v-dc-gear-motor the south pole of one bar magnet near the north pole of another bar magnet they would attract and stick together. Magnets have field lines that are invisible (but can be seen with iron filings and paper over the magnet), but exert a force nevertheless. These lines of magnetic force can impart electricity into wire (or a coil of wire) when that wire is passed through it.
Magnetism and Electricity
You may also remember that an electromagnet can be created
by wrapping wire around a nail and then running electricity through
that wire. We all remember picking up thumbtacks, paperclips, or nails with an electromagnet made with wire, nail, and battery. I'm sure you also remember that the nail stopped being a magnet as soon as the electricity was shut off.
So there is definitely a connection between magnetism and electricity.
How Electricity is Produced via Motion
What isn't as widely known is that when a wire is passed into a magnetic field
electricity is produced. How much electricity depends on the
size of the magnets and the force causing the coils of wire to spin
near those magnets. By the way, the number of cycles per second (Hertz)
matches the number of rotations per second of the machine generating
electricity. e.g. household current in the United States flows at 60Hz
so the machine generating the power spins at 60 revolutions per second1.
the production of electricity is via mechanical2 means then magnetism plays a vital role.
Any time a wire is passed through a magnetic field an electrical charge
is produced in the wire. The orientation of the magnetic field and the
direction the wire is passed through that field determines the
direction of current flow. This is how generators, alternators, and dynamos
work. By creating electricity from the rotation of coils of wire
through a magnetic field. Of course this means the wire-coil is somehow
mounted such that it can rotate 360°. Alternatively, the magnets or
magnetic field, can be the rotating member with the wire coils arranged
around those magnets. Either way, as long as the coils are passing
through a magnetic field electricity is "imparted" to the wires or
1 This is no longer necessarily true, but at one
time it was critical that a generator spin at exactly 60 RPM. These
days electronics can set the Hertz.
2 Ignores the piezoelectric effect.