From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Student Projects

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Magnetic Field through a Hall Sensor

Measuring Magnetic Field through a Hall Sensor

This project aims to demonstrate the effects of a moving magnetic field on a Hall Sensor and its wider impact on electronics. Using a breadboard connected to the MyRIO, a bar magnet was attached to a servomotor and the servomotor was wired to the breadboard to be controlled by the MyRIO and LabVIEW. A Hall Sensor was then also wired to the breadboard and positioned below the sweeping arc of the servomotor and the magnet. This allowed the measurement of an induced voltage in the Hall Sensor as a result of the moving magnetic field. Through LabVIEW I enabled control of the speed at which the servomotor rotates and measured the induced voltage to quantitatively demonstrate the effects of a moving magnetic field (i.e. the flux) on current in a wire, thus introducing additional sources of noise/error in electrical signal readings. Furthermore, the use of a hall sensors use in switching was demonstrated by using a second bar magnet to turn the Hall Voltage on and off. By introducing an oppositely polarised magnet to the Hall Sensor, the Sensor was switched off and stopped reading any induced voltages. This project will demonstrate a lot of the fundamental effects and considerations that need to be undertaken when dealing with measurement in a magnetic environment, and is also an opportunity to put some fundamental concepts of Physics into action through LabVIEW and a MyRIO.

IMG_8739 compressed.jpg

RT Code SS.PNG

Video:


Parts List:

- myRIO

- B7104 Servo Motor

- 5V Voltage Regulator

- 9V battery

- Breadboard with myRIO Connector

- Hall Voltage Sensor

- Bar Magnet (Must be Polarised) (Must be less than 3cm in length for use with B7104 Servo Motor).

Wiring Diagram:

Multisim SS.PNG

Thanks,
Justin, Applications Engineer
Comments
OrHirshfeld-SK
Member
Member
on

Nice work, which hall sensor did you use? is it allegro A3240?

אור הירשפלד
Or Hirshfeld
Application Engineer
Certified LabVIEW Developer
SK- Electronika
+972-545844555
Or.Hirshfeld@SK-Advanced.com
il.linkedin.com/in/orhirshfeld
Contributors