What Is the Hall Effect?

Welcome back to the Digilent blog!

Robots that run around on motors are pretty sweet. These motors traditionally tend to be DC motors that are controlled through the use of an H-Bridge, which can change the flow of current so that the motor is able to run forwards or backwards. H-bridge modules, such as Digilent’s PmodHB3 or PmodHB5, also tend to have two pins labeled as Sensor A and Sensor B that measure which direction the motor is rotating. The two sensors, A and B, will be wired to the outputs of components known as Hall effect sensors. Unsurprisingly, these measure the Hall effect. But rather than having the “word in the definition” problem, let’s learn some of the practical details.

Positive and negative charge carriers are pushed to either side of the plate. Image from electronics-tutorials.ws.

Broadly speaking, when current is travelling through a component, such as a piece of metal, it will travel along the path of least resistance. Typically, this path of least resistance is going to be the shortest and relatively straightest path from the high voltage side of the component to the low voltage side. However, if a magnetic field is placed perpendicular to straight path of current flowing through a semiconductor, the charge carriers in the current flow experience what is known as the Lorentz force. This force causes the charged particles to move to one side of the semiconductor or the other, depending on whether they are positively or negatively charged.

The two Hall Effect Sensors are 90 degrees from one another.
The two Hall effect sensors are 90 degrees from one another.

This charge separation and resulting voltage differential is known as the Hall effect. The resulting voltage can then be given to a transistor or system board to indicate how strong the Hall effect across this particular semiconductor is. So, how does this relate back to DC motors? If our DC motor has a permanent magnet in a small section on the outside of the motor, we can place two Hall effect sensors in quadrature to the motor. In plain English, this means that when looking at the top of the spinning motor, the two Hall effect sensors are placed 90° from one another. This way, the magnetic field produced by the permanent magnet will only affect the Hall Effect Sensor that is directly in front of it and not influence the one that is perpendicular (90 degrees away) to it. With this configuration it is possible to determine which way the motor is spinning based on which sensor produces a voltage first within a set time frame. You can also determine how fast your motor is spinning based on the time difference between a particular sensor is at its maximum value and how wide your motor is.

A Hall effect sensor experiences a voltage differential when a magnet gets close it it. Image from Wikipedia.

Feel free to give us a comment if you have any questions!

Author

  • James Colvin

    A local Digilent employee who is sometimes tricked into making other content besides documentation and supporting customers on the Digilent Forum, but then I get to write a little more informally so that's a plus. A sassy engineer, lover of puns and dad jokes, father and husband. I know both way too much and simultaneously almost nothing about a number of nerdy topics. If you want to hear me rant, ask me what data rate USB C operates at.

Be the 1st to vote.

About James Colvin

A local Digilent employee who is sometimes tricked into making other content besides documentation and supporting customers on the Digilent Forum, but then I get to write a little more informally so that's a plus. A sassy engineer, lover of puns and dad jokes, father and husband. I know both way too much and simultaneously almost nothing about a number of nerdy topics. If you want to hear me rant, ask me what data rate USB C operates at.

View all posts by James Colvin →

2 Comments on “What Is the Hall Effect?”

  1. Thanks for sharing. However in the first picture the B field direction should flipped. Or the Hall effect sensor should output a reversed polarity. Thanks

Leave a Reply to Cliff hu Cancel reply

Your email address will not be published. Required fields are marked *