Friday 14 August 2015

Third in TechTalk Series Sparks Data Science Discussion

Karthik Shyams under led the third in the new Tech Talk series offered by Johns Hopkins Engineering for Professionals. These interactive seminars are geared toward students and faculty in the Computer Science,Cybersecurity, and Information Systems Engineering programs, but are also open to the public via live stream.
In this latest TechTalk, entitled Hadoop: A Perfect Platform for Big Data and Data Science, Shyamsunder explored the expanding fields of big data and data science. Google, Facebook, and LinkedIn, as Shyamsunder demonstrated, have changed the way products are being developed by basing their success on large-scale data collection and analysis.
Shyamsunder suggested that Hadoop has emerged as a perfect platform for processing big data since many of the tools and technologies needed for data science are built within Java.
Karthik Shyamsunder has been an instructor with Johns Hopkins Engineering for Professionals since 1999, receiving an Excellence in Teaching award. He earned his MS in computer science from Johns Hopkins University and has worked in the software industry for more than twenty-two years. He currently serves as principal technologist at VeriSign. In 2010, he was inducted into the Oracle/Java One hall of fame and has twice been awarded Oracle’s Rock Star award.
More than fifty people attended this TechTalk both in-person and online. For more information, you can review the complete slide deck or watch the recording on our YouTube channel.
To watch previous TechTalks, we invite you to visit the TechTalk playlist on our YouTube Channel. You can also subscribe to the TechTalk mailing list to receive notifications about upcoming TechTalks.

Wednesday 5 August 2015

Simple Electric Motor!

Introduction

What do windshield wipers, CD players, DVD recorders, blenders, ice makers, laptops, and walking toys have in common? They all contain electric motors. In fact, you can walk through your house and find many electric motors hidden in electrical devices, appliances, and toys in every room. The electric motors are not always obvious in devices, and you might need to do some background research about how the devices work to discover where their motors are hidden. Electric motors are an important, and even vital, part of our world today. But, you may have wondered, just how do those electric motors work? Have you ever played with magnets? If so, you are well on your way to understanding how simple electric motors work. Magnets produce a magnetic field with a north pole and a south pole. If you try to push the north poles of two magnets together, they will not want to come together. Instead, they will repel each other. The same thing happens if you try to push two south poles together. If, however, you bring the north pole of one magnet close to the south pole of another, they will attract each other and stick together. In summary, like poles (north-north or south-south) repel, opposite poles (north-south) attract. The stronger the magnets, the more forceful the attraction / repulsion is between them. As you've probably seen, magnets are typically black, so there is no visible way to tell which end is north and which is south. You can detect the existence of a magnetic field and identify the north/south pole with a compass (which is basically a bar magnet mounted so that it can rotate), as shown in Figure 1, below.
Figure showing how to detect the existence of a magnetic field with a compass 
Figure 1. The top part of this diagram shows how the needle of a compass aligns in the presence of a bar magnet, revealing the poles of the magnet. A compass needle is basically a small bar magnet, as shown in the lower diagram. As opposite poles attract, the north pole of the needle will be attracted to the south pole of the magnet. A permanent magnet (further explained below) is represented in this diagram. This method to find the poles of a magnet can also be used to detect the presence and direction of a magnetic field around a temporary magnet (also further explained below).

An electric motor uses the attracting and repelling properties of magnets to create motion. An electric motor contains two magnets; in this science project, you will use a permanent magnet (also called a fixed or static magnet) and a temporary magnet. The temporary magnet is also called an electromagnet. A permanent magnet is surrounded by a magnetic field (a north pole and a south pole) all the time (hence the term "permanent"), but the electromagnet creates a magnetic field (a north pole and a south pole) only when electric current is flowing through a wire (hence the term "temporary"). The strength of the electromagnet's magnetic field can be amplified by increasing the current through the wire, or by forming the wire into multiple loops. Such loops of electrical wire are often called a coil

To make an electric motor, the electromagnet (the temporary magnet) is placed on an axle so it can spin freely. It is then positioned within the magnetic field of a permanent magnet. This is when things get interesting! When a current is passed through the electromagnet, the resulting temporary magnetic field (made up of a north pole and a south pole) interacts with the permanent magnetic field (made up of a north pole and a south pole) to create attractive and repelling forces. These forces push the electromagnet, which freely spins on its axle, and an electric motor is born. The strength of the permanent magnet and the electromagnet will play a role in the strength of the repelling or attracting forces, and thus, in the speed at which the motor is spinning.

You can actually predict in which direction the coil will be pushed (or in which direction the motor will spin) with Fleming's left-hand rule for motors. Hold your left hand out, as shown in Figure 2 below, with the thumb, pointer, and middle fingers at right angles to each other and imagine arrows at the end of these three fingers. Your pointer finger represents the direction of the magnetic field of the permanent magnet (from north pole, pointing toward your palm, to south pole, pointing away from your finger). Your middle finger represents the direction of the electric current in the wire (which flows trough the wire from the positive terminal of the battery to the negative terminal of the battery). The direction of the force or push on the wire is predicted by the direction in which your thumb is pointing.
Drawing illustrating Fleming's left-hand rule for motors. 
Figure 2. This diagram shows Fleming's left-hand rule for motors: the thumb represents the direction of the force (or push) on the wire, the pointer finger represents the direction of the magnetic field, and middle finger represents the direction of the electric current. Note that all fingers are at right angles to each other.

Can you apply this rule to the current in the short piece of wire shown in Figure 3, below? Hold your left hand with your middle finger pointing to the right (the direction of the current), your pointer finger pointing at a right angle to the middle finger (direction of the magnetic field, represented by the black dotted arrows in Figure 3), and your thumb at a right angle with respect to your middle and pointer fingers. Is your thumb pointing up? It should be, as in this configuration, where the wire will be pushed upward.
Figure showing the direction a current carrying wire will be pushed when placed in a permanent magnetic field based on Fleming's left-hand rule for motors 
Figure 3. Diagram showing the direction in which a current-carrying wire (electromagnet) will be pushed when placed in a permanent magnetic field, based on Fleming's left-hand rule for motors. The direction of the permanent magnetic field—from north pole to south pole—is represented by black dotted arrows in this diagram.
Knowing how a current-carrying wire moves, what would happen if the wire was bent into a loop? Figure 4, below, will help you find out. You can (in your imagination) break the loop up into individual segments of straight wire, analyze those using Fleming's left-hand rule, and use this to determine which way the loop will move. Figure 4 shows the loop broken up into a wire close to the south pole and one close to the north pole. Using Fleming's left-hand rule shows that the segment closer to the south pole is pushed up, and the segment closer to the north pole is pushed down. In other words, the two sides of the loop are pushed in opposite directions, right? When the wire loop is placed on an axle, these pushes in opposite directions cause it to spin. (Note, no force or push is created when the magnetic field and the current run parallel to each other.)
Figure showing the direction a current carrying wire coiled in a loop will be pushed when placed in a permanent magnetic field based on Fleming's left-hand rule for motors 
Figure 4. Diagram showing the direction in which a current-carrying wire loop (electromagnet) will be pushed when placed in a permanent magnetic field, based on Fleming's left-hand rule for motors. The direction of the permanent magnetic field—from north pole to south pole—is represented by black dotted arrows in this diagram.
The electromagnet is most often a coil, or a bundle of loops. Because all loops of wire are parallel, each loop will get the same push. Adding up all those pushes, or motions, creates the nice spinning movement of a motor.
If you are a little frustrated that you do not understand exactly how Fleming's left-hand rule works, don't worry! Just keep it in mind as you make the motor, study it, and try to understand the physics behind it again once you have seen the motor running. If it is still difficult to understand.

To make a motor, the electromagnet must spin in full circles. Let us get a little more practice with Fleming's left-hand rule of motors and predict the direction of motion for different positions of a current-carrying coil placed in a permanent magnetic field and see what happens. Scientists use schematic drawings (diagrams) of electric circuits. Two such drawings can be found in Figure 5, below. They both represent a battery-powered current-carrying coil (or electromagnet) placed in a magnetic field. Drawing B results from Drawing A, as the electromagnet rotates over 180 degrees. Use Fleming's left-hand rule to predict in which direction the coil will turn for Drawing A and for Drawing B.

Schematic drawings to determine the direction a current caring loop of wire will move when placed in a permanent magnetic field.
Figure 5. Schematic drawings are used to predict in which direction a current-carrying coil will move when placed in a permanent magnetic field. The blue arrows indicate the magnetic field (away from the north pole), and the red arrows indicate the direction of the current (positive terminal to negative terminal of the battery). The motion of the coil can be determined using Fleming's left-hand rule for motors.

Did you predict that the direction of rotation in Drawing A would be opposite to the direction in Drawing B? That is correct. These opposite forces will make the electromagnet flip forward and back, but never let it make a full turn. To create a motor, the electromagnet needs to rotate continuously, either clockwise or counterclockwise. Before you read on, can you think of a way to make the electromagnet spin around continuously?

There are actually several ways to make the electromagnet placed in a permanent magnetic field spin. The solution applied in this science project uses Newton's first law of motion , which states that an object in motion remains in motion unless acted upon by an outside force. This means that when the electromagnet is spinning, it will continue to coast through a rotation unless something stops it. As discussed above, if current is always flowing through the wire, the resulting pushes will oppose each other, and the coil will bounce back and forth, but not spin continuously. However, if we can make the current flow only half of the time, all the pushes are in the same direction. This means the coil is actively pushed one-half of each rotation while current is flowing, and "coasts" through the next half while no current is flowing, until it comes around and receives the next push. This allows the motor to spin continuously. If this is your first experience with electrical circuits, it is important to remember that electrical current always needs a complete path in which to flow; in this case, from the positive to the negative terminal of the battery. If there is a gap in the circuit (for example, a disconnected or broken wire), the current will stop flowing.

This science project walks you through the process of creating your own simple electric motor. You will start by creating an electromagnet suitable for the motor. This temporary magnet will then be placed in a permanent magnetic field and off it goes!

Terms and Concepts

  • Electric motor
  • Magnet
  • Magnetic field
  • North pole
  • South pole
  • Repel
  • Attract
  • Permanent or static magnet
  • Temporary magnet
  • Electromagnet
  • Electric current
  • Axle
  • Fleming's left-hand rule for motors
  • Beakman's motor
  • Electric circuit
  • Electrically insulating