An electromagnet from inside a stereo speaker
About 200 years ago, people figured out another way to make magnets, so that you didn't need a lodestone. This way you could also make much stronger magnets, and you could turn the magnets on and off.
When you hook up a copper wire to a battery, electrons begin to flow through the wire, moving from atom to atom, from one end of the battery to the other, trying to even out the negative and positive charges at each end of the battery. This makes a circle of electrons just like the circle of electrons inside an iron atom, and, just like the iron atom, that's a magnet.
To make the iron atoms strong enough to be a useful magnet, you have to line up a lot of them all going the same way, and it's the same with an electromagnet - you have to make lots of copper wire circles all going the same way. If you wrap these coils around something made of iron, the coils will act like a lodestone and make that iron into a magnet. If you use thousands of coils of wire and a big piece of iron, you can make a very strong magnet that can pick up cars and huge machines.
But tiny electromagnets are also very useful, because you can turn them on and off by connecting or disconnecting the batteries. Alternating magnets power stereo speakers, hold fire doors open, and are inside all electric motors, like in a hair dryer or a washing machine.
More about magnets
Learn by Doing - Electromagnets
Learn by Doing - Magnets
The invention of the compass
More about Electricity
Bibliography and further reading about magnets and electricity: