★ wanayoo — archive 1999 http://howstuffworks.com/electromagnet.htmNouvelle recherche | Portail wanayoo

How Stuff Works



How an Electromagnet Works
by Marshall Brain

Current in a wire affecting a compass The basic idea behind an electromagnet is extremely simple: by running electric current through a wire you can create a magnetic field. By using this simple principle you can create all sorts of things, including motors, solenoids, read/write heads for disk and tape drives (cassette tape players, VCRs, floppy and hard disks in your compter, etc.), speakers, and so on. In this edition of How Stuff Works you will learn how electromagnets work. You will also have a chance to try several experiments with an electromagnet that you create yourself.

Before talking about electromagnets, let's talk about normal "permanent" magnets like the ones you have on your refrigerator and that you played with as a kid. Since you have played with magnets you know that all magnets have 2 ends, normally marked North and South. You know that magnets attract things made of steel or iron. You also know about the fundamental law of all magnets: Opposites attract and likes repel. So if you have 2 bar magnets with their ends marked North and South, then the North end of one magnet will attract the South end of the other. On the other hand, the North end of one magnet will repel the North end of the other (and similarly South will repel South). An electromagnet is the same way, except it is "temporary" - the magnetic field only exists when electric current is flowing.

An electromagnet starts with a battery (or some other source of power) and a wire. What a battery produces is electrons. If you look at a battery, say at a normal D cell from a flashlight, you can see there are two ends marked plus (+) and minus (-). Electrons collect at the negative end of the battery, and, if you let them, they will gladly flow to the positive end. The way you "let them" flow is with a wire. If you attach a wire directly between the positive and negative terminals of a D cell, 3 things will happen:

  1. Electrons will flow from the negative side of the battery to the positive side as fast as they can.
  2. The battery will drain fairly quickly (in a matter of several minutes). For that reason it is generally not a good idea to connect the two terminals of a battery to one another directly. Normally you connect some kind of load in the middle of the wire so the electrons can do useful work. The load might be a motor, a light bulb, a radio or whatever.
  3. A small magnetic field is generated in the wire. It is this small magnetic field that is the basis of an electromagnet.

You probably knew about items 1 and 2 in this list, but item 3 might be a surprise to you. Yet this definitely happens in all wires carrying electricity. You can prove it to yourself with the following experiment. For the experiment you will need:

Current in a wire affecting a compass Put the compass on the table and, with the wire near the compass, connect the wire between the positive and negative ends of the battery for a few seconds. What you will notice is that the compass needle swings. Initally the compass will be pointing toward the earth's North pole (whatever direction that is for you), as shown in the figure on the right. When you connect the wire to the battery, the compass needle swings because the needle is itself a small magnet with a north and south end. Being small it is sensitive to small magnetic fields. Therefore the compass is affected by the magnetic field created in the wire by the flow of electrons.

The figure below shows the shape of the magnetic field around the wire. In this figure, imagine that you have cut the wire and are looking at it end-on. The green circle in the figure is the cross-section of wire itself. A circular magnetic field develops around the wire, as shown by the circular lines. The field weakens as you move away from the wire (so the lines are farther apart as they get farther from the wire). You can see that the field is perpendicular to the wire and the field has a direction that depends on which direction of the current flowing in the wire. The compass needle aligns itself with this field (perpendicular to the wire). If you flip the battery around and repeat the experiment, you will see that the compass needle aligns itself in the opposite direction.

Magnetic field of a wire

Because the magnetic field around a wire is circular and perpendicular to the wire, an easy way to amplify the wire's magnetic field is to coil the wire, as shown below:
One loop's magnetic field

For example, if you wrap your wire around a nail 10 times, connect the wire to the battery and bring one end of the nail near the compass, you will find that it has a much larger effect on the compass. In fact, the nail behaves just like a bar magnet. However, the magnet exists only when the current is flowing from the battery. What you have created is an electromagnet. You will find that this magnet is able to pick up small steel things like paper clips, staples and thumb tacks.
A simple electromagnet

Experiments to try


How Stuff Works Power Panel
Table of Contents
A complete list of all HSW articles

About Marshall Brain
Information about the creator of HSW

Search
Search for any word or concept in HSW

Citing HSW
Information about citing HSW in articles and papers

Question of the Day
Ask questions or browse hundreds in the archive

Books
A variety of books for people interested in how stuff works

HSW Newsletter
Sign up to receive the monthly HSW newsletter

Contacting HSW
Contact HSW directly with email

What's New
Review newsletters to chart HSW's development

Awards
Check out HSW's awards and reviews!

Disclaimer
The disclaimer required by the lawyer

Author Information
Learn how you can write for HSW

HSW Fan Buttons
Link to HSW with these snazzy fan buttons!
Suggestions
Leave a suggestion in the suggestion box


BYG Publishing How Stuff Works (http://www.howstuffworks.com) is a production of
BYG Publishing, Inc.
http://www.bygpub.com - questions@bygpub.com
P.O. Box 40492 - Raleigh, NC 27629

© 1998 BYG Publishing, Inc. All rights reserved.





Click Here!