Hello 0x00sec! It has been a while. Today I will be porting my last article from Null-Byte onto 0x00sec. After that, I will write new articles from scratch. What these will be about? You decide! Have fun reading!
before we can design cool circuits like an EMP or signal scrambler, we still need to cover some theory. Today we will talk about electromagnetism and electromagnetic induction. These 2 laws in electric science can be found in almost everything: from every electric generator, electric motor, and transformer out there, to every form of wireless communication, your phone charger, and even your computer’s power supply, all depend on either electromagnetism or induction. In most cases, both of them!
Today, I want to cover how these 2 fundamental laws of electric science work exactly, up to the atomic level, because we will need this in a lot of our circuits.
Author Assigned Level: Newbie
Community Assigned Level:
Electricity is a wonderful and powerful force, and as such must be handled with care! Please be aware that my experiments are exactly what they are called: experiments. They are not guaranteed to work or are free from danger. By attempting anything in this article, you acknowledge that you take full responsibility for your actions. When working with electricity, ALWAYS make sure that you are not working on live wires!
The basics of Magnetism
Before we can move to electromagnetism, we need to know the basics of magnetism first. I suppose you all know what a magnet is, so I will skip that. Instead, I will cover how a magnet works.
As you all knew from elementary school, a magnet is something that either attracts, or repels a metal or another magnet. This is caused by the 2 points of maximum attraction on the magnet, called poles. There are 2 poles on a magnet, the north and the south pole.
The reason these are called north and south is because the north pole of a magnet is attracted to the earth’s magnetic north pole, and a magnet’s south pole is attracted to the earth’s magnetic south pole. This is how a compass works: a compass needle is simply a magnet that aligns itself with the earth’s magnetic field.
Let’s have a look at a magnetic field. N is the north pole, S is the south pole. The black lines with the arrows represent attractive (or repulsive) force. These “lines” are called the magnetic field.
As you can see, most of the attraction is at the ends of the poles, and there is 0 attraction in the middle of the magnet. Take note that the attractive force “moves” from north to south!
Now, let’s put 2 magnets next to each other with the opposite poles next to each other, and let’s see what happens to the magnetic field:
As you can see, the magnetic force moves from the left magnet’s north pole to the right magnet’s south pole, which means the two magnets attract each other. With this knowledge, we can say that the following statement is true:
Opposite poles attract each other.
Now, let’s do the same, but instead we’ll put the magnet’s north poles next to each other. Let’s see what happens to the magnetic field:
As you can see, the arrows of the magnetic field point in a different direction. This causes repulsion. With this knowledge, we can say that the following statement is true:
Same poles repel each other.
I think we’ve seen enough of normal magnets for now. If you have any problems understanding how magnetism works, don’t be affraid to ask for help in the comments!
Anyway, let’s move on to electromagnetism!
Electromagnetism is pretty simple. Basically, it means that we create a magnetic field using electricity. The basic law of electromagnetism goes like this:
Every conductor that carries an electrical current produces a magnetic field around it.
This can be easily represented using this picture. I is the (conventional) current flow from + to -, and B is the magnetic field.
Take note that the magnetic field “B” has no polarity. The magnetic field is too weak to have a solid polarity.
Note: This magnetic field technically does have a polarity (at the + and - side of the battery), but we simply chose to ignore it and place a circular magnetic field around an uncoiled conductor.
We do have a way to increase the strength of an electromagnetic field, though: by winding wires in loops together. This is called a coil. Here is an example of a coil, connected to a battery.
As you can see, the side of the coil that is connected to the positive terminal of the battery (remember, a long vertical line = positive, short vertical line = negative) is the north pole, and the side connected to the negative end of the battery is the south pole. This means that:
+ = N
- = S
With this knowledge, we can construct our own electromagnet.
Constructing an Electromagnet
Here we are at last: time to construct our very first device! We just learned the basics of electromagnetism, and now we’ll be making our own electromagnet! But what is an electromagnet?
An electromagnet is a magnet that runs of electricity (you don’t say). It’s basic construction is a coil wound around a soft iron core (in our case, it will be a regular nail). The coil is then connected to a DC (or AC in some cases) power source, which then magnetizes the core as long as there is a current flowing through the coil. The advantage of this method is that you can decide when the magnet is active. The electromagnet is used extensively in industry, to move metal scrap or other things. Here is an example:
We are going to construct a less powerful version of this, but it will still work using the same principles. Our electromagnet will be a lot similar to a classic bar magnet. Here you can see how likely they are (the upper is our electromagnet, the lower is a classic bar magnet).
The reason our electromagnet has no polarity indicated, is because the polarity will differ on how you plug the battery on the coil. (remember, + is north pole, - is south pole). Anyway, let’s get down to construction! Here’s what you’ll need:
- A spare 1.5V AAA battery.
- A nail (or any other circular soft iron object) of about 10cm long.
- A piece of wire (30-45cm long).
- Paper clips (to attract with our electromagnet).
Before we start, some safety tips:
Do NOT use the electromagnet for longer than 30 seconds! We are causing a short circuit here (the length of the wire is too short to have any decent resistance), which causes the battery to heat up pretty quickly. To prevent exciting fires and explosions in your hand, you should let the battery cool down after powering the electromagnet for 30 seconds!
Make sure you use an alkaline battery! Like I mentioned above, we are creating a short circuit. And Ni-MH batteries (rechargeable ones) aren’t as robust to short circuits as classic alkaline batteries. So make sure to only use alkaline batteries for your own safety!
Now, here is what you need to do:
Step 1: Wind the wire around the iron core.
The first step would be to wind our piece of wire around the iron core, in my case a nail, so that we will get a coil around it like shown in the image above. The winding doesn’t have to be neat, but keep the following in mind:
- Keep winding in the same direction (don’t overlap)!
- Make sure that you leave the ends of the nail empty!
- Make sure you leave 2 ends sticking out from the coil!
Here is how my electromagnet looks like:
If yours looks like this, it should work fine.
Step 2: Strip the ends of the coil and connect to the battery
Now we’ll power up the electromagnet. First of all, strip the ends of the wire (like shown in the picture above) so that the battery can connect. Next up, hold both poles of the battery against the stripped ends of the coil. When you hold one of the empty ends of the coil next to a paperclip, you’ll noticed it attracts!
Congratulations: you’ve just successfully constructed the “hello world” of the electrical engineers! The side of the nail to which the + of the battery is pointed, is the north pole of the electromagnet, and vice versa. You can check this with a compass.
“So I Powered the Electromagnet a Few Times and My Nail Has Become a Magnet… Phoenix, What Have You Done?!”
Have no worries, this is completely normal. It’s a process called “magnetization”.
What this basically means is that the nail “remembers” the electromagnetic field created by our electric current, and thus becomes magnetic itself. This is how classic bar magnets are made: they are exposed to a strong magnetic field, and thus become magnets themselves.
Since the magnetic force our nail has been exposed to is still considerably small, the effects of magnetization should decay in about half an hour. If you’re not willing to wait, you can try something called “demagnetization”.
To achieve demagnetization, simply plug the battery back in, but reverse the polarities. This way, the nail will be exposed to a new magnetic field with opposite polarities, and thus it will reduce the effect of the previous magnetic field. If timed correctly, you can even completely mitigate the magnetization!
Alright, we’ve spoken enough about magnetism, let’s get to electromagnetic induction!
The discovery of electromagnetic induction
We already know that we can create a magnetic force out of electricity. But what the famous scientist Michael Faraday wondered in 1831 was: “If it is possible to get a magnetic force out of an electric current, is it also possible to get an electric current out of a magnetic force?”. To test this theory, Faraday built a device named “Faraday’s iron ring of induction”.
Faraday’s iron ring of induction consisted of a battery (left), a “primary” coil winded around the iron ring on the left side, a “secondary” coil winded around the iron ring on the right side, and a galvanometer (a galvanometer is a special measurement instrument that can read both positive and negative values).
When Faraday connected the battery to the primary coil, he noticed that his galvanometer would suddenly shoot up in the positive range, and then go back to the value of 0. When he disconnected the battery, he would notice that his galvanometer jumped again, but into the negative value! Faraday had discovered that it was possible to get electricity out of a magnetic force!
Faraday continued with his experiments, and he noticed that if he slipped a bar magnet in and out of a coil quickly, his galvanometer would oscillate between positive and negative. Faraday had just discovered a new type of electricity: alternating current.
Even today, the only way to generate AC (the electricity that drives our homes and industry) is through electromagnetic induction.
Faraday continued, and produced the very first electric generator in history using his discoveries called “Faraday’s disk”. Until then, it was only possible to get electricity out of cells (batteries). Faraday’s disk was the first device capable of converting kinetic energy directly into electric energy, and is the grandfather of all AC and DC generators in existence today!
What is electromagnetic induction?
Now that I’ve talked a little about how Michael Faraday discovered electromagnetic induction, I think it is time to talk about the phenomenon specifically. I won’t get into the mathematical side because even I don’t completely understand it, so I’ll just cover what it is, when it occurs, and some practical examples. Here is the definition of electromagnetic induction:
When there is a change in the magnetic flux, a current is induced in the object affected by the magnetic field.
But what is magnetic flux? In a simple way, it is the name we use to indicate the impact of a magnetic field on an object, in this case, it would be the secondary coil on Faraday’s ring of induction.
Magnetic flux is the product of the strength/direction of the magnetic field, and the place of the object within the magnetic field. To get induction, we need to make a change in one of them. We need to either increase/decrease the strength of the magnetic field, or we must make the object within the magnetic field move.
Induction through a changing magnetic field.
In Faraday’s iron ring of induction, there is electromagnetic induction because the magnetic field on the primary coil changes. Remember that magnetic flux is the product of the strength of the magnetic field and the place of the object within the magnetic field, so if we get a change in one of those, we get a change in magnetic flux, and thus we get electromagnetic induction!
When Faraday closed the switch to the primary coil, the magnetic flux on the secondary coil changed, because there suddenly was a magnetic field created by the current in the primary coil. This induced an electric current on the secondary coil.
After a while, there would be no change in magnetic flux anymore, so the induction would cease.
When Faraday opened the switch again, the magnetic field would suddenly disappear. So there was a change in magnetic flux, and thus we got induction! However, since this was the opposite of what happened during the first induction (which caused a positive “spike”), we get a negative spike this time.
Induction through changing magnetic fields is widely used. For example: radio, Bluetooth, Wi-Fi, and pretty much any other wireless form of communication! The transmitter produces a changing magnetic field with a modulated message in it (we’ll learn what modulation means later), and the receiver detects that changing magnetic field through electromagnetic induction. I’ll write an article later about the fundamental technologies of wireless communication, so stay tuned!
Another widely used application of induction through changing magnetic fields is the transformer. I’ll also explain how the transformer works later, but know that it relies on electromagnetic induction to work. And without the transformer, the power grid as we know it today wouldn’t exist!
Induction through movement
As we know already, we need a change in magnetic flux to get induction, and there are 2 ways of accomplishing this: either get a change in magnetic field strength, or create movement!
Now in this case of induction, we can either move the object, or move the magnet itself. Both will cause a change in magnetic flux.
As you can see, if we move the south pole in the coil, we get a negative current (remember that S is equal to -), and if we move it out, we get a positive current.
Induction through movement is used in all generators on earth. A magnet is rotated, which induces a current in the coils of the generator, generating AC.
Here in this gif, you can see how a 3-phase alternator works, the workhorse of the power generating industry.
As you can see, when the N and S poles align with the 2 coils of phase A, phase A reaches it’s amplitude. The same goes for phases B and C.
#What causes induction?
Now you all might be asking: “What exactly causes induction”?
To keep things simple: when a magnetic field passes by a conductive material, the electrons “break loose” from their core and start flowing in an organized manner. This is electrical current. However, after a while, the electrons will “fix” themselves and get back into place: the current stops.
That is it everyone, I hope you enjoyed the long read. If you have any questions or problems, feel free to PM me or comment down below! I’ll reply as soon as I can!
Now, before I finish, I’d like to point out how important induction is, because we hackers can learn from Faraday’s way of thinking. Without induction, we wouldn’t have:
- The modern electricity grid.
- Wi-Fi, Bluetooth, radio, and all other forms of wireless communication.
Michael Faraday asked himself a simple question: “is the opposite of electromagnetism true?”. This simple question gave us modern technology, and it is a question that many hackers would ask themselves as well. This proves that hackers were there before computers and the internet were even a thing. Hacking is a mindset.
So what’s next?
I request one thing from the 0x00ers this time. I have many subjects that I can write about now that I am finished with very basic electricity. I’ll let 0x00sec vote what comes next! I will explain what each option includes!
An introduction to LOGO!: the LOGO! is a micro-PLC made by Siemens that is simple to program and is yet pretty extensive in it’s use while also being affordable (for a PLC that is ). I want to give 0x00sec an introduction on how to wire it, program it, and it’s uses. I also intend to write LOGO! programming challenges.
Three-phase power: Many people have heard this term before, but don’t really know what it is. The modern power grid works on three-phase power, aswell as the asynchronous induction motor, which is the workhorse of the industry. I intend to write about the details of power generation, transmission, and all about the asynchronous induction motor.
More about electric components: This is basically a continuation of the articles you’re used to have from me. I will talk about how various components work and design simple circuits with them.
Try to explain the working of various devices: Not many people know how various devices in their homes function. Be it their lights, their vacuum cleaners, or microwaves. Hopefully by explaining as far as I can how various devices work, you can save money by repairing them themselves, etc.
Improvized weaponry: I don’t think this one needs explanation.
I will try to write about all of these, but I will give priority to the subject(s) with the most votes!
- An introduction to LOGO!
- Three-phase power
- More about electric components (capacitor, inductor, transformer…)
- Try to explain the workings of various devices (microphone, speaker, microwave…)
- Improvized weaponry (EMP, taser…).
I will see you next time, 0x00ers!