Unit 5�Magnetism
UCLA Physics Department
University of California, Los Angeles
Department of Physics and Astronomy
Physics 4BL
Fall 2025
Outline of Unit 5
UCLA Physics Department
Lab 5A: Magnetic Dipoles- Earth and Ferrite Fields
Magnetic Dipoles
Magnetization
For a magnetic dipole field, the dipole moment (m) determines the strength of the field. The dipole moment is proportional to the magnetization (M) integrated over total volume.
Our permanent magnets can be assumed to have a constant magnetization (M), yielding:
Due to the orientation of our magnetometer to the dipole axis of our cylindrical magnet the previous magnetic dipole equation simplifies to:
Note mu_0 is the vacuum magnetic permeability
Experimental Setup - Electrical Schematic
Equipment:
SCL → 22
SDA → 21
Insert magnetometer into solenoid slit
Using the GY-511 Magnetic Sensor
Correct Output
*If your data stops streaming/the magnetometer is disconnected, you need to re-upload the code before collecting data again*
Earth as a Magnetic Field
Earth’s magnetic field is approximately a magnetic dipole field
Line up your GY-511 sensor so x is facing North or South, y is facing East or West, and z is facing up or down
Collect a few seconds of data and with trigonometry, calculate Earth’s total magnetic field strength and our latitude
Cylindrical Magnet
Make sure the distance from magnet to magnetometer is AT LEAST 5 centimeters away
If not data will be saturated and unusable
Collect at least 5 different datasets at different distances
Maintain the shown fixed magnet orientation
NO CLOSER THAN THIS
Analysis for 5A
Line up x, with North/South, y with East/West and z with up/down
Calculate Earth’s Total Magnetic Field and Our Latitude
Collect 5 Datasets of B vs R for the cylindrical magnet
Measure cylindrical Magnet dimensions
Fit B vs R using equation on slide 5
Assume uniform magnetization, calculate magnetic dipole moment and magnetization of dipole using fit result and magnetization equation on slide 5
Lab 5B: Ampere’s Law - Magnetic Field Inside a Solenoid
Magnetic Fields of Moving Charged Particles
Magnetic Fields Inside Solenoids
Applying Ampere’s Law
Experimental Setup - Electrical Schematic
Equipment:
SCL → 22
SDA → 21
From Multimeter (GND)
To Multimeter
Insert magnetometer into solenoid slit
10 Ω
100 Ω
A note about your multimeters
Make sure your multimeter is in the “10A” port, and set to read Amps (instead of mA)
Otherwise, you will blow the multimeter fuse and break it!
Experimental Setup - Physical Picture
Make sure your resistors are all aligned!
*Make sure your multimeter is in the “10A” or “A” port, and set to read Amps (instead of mA as shown here)*
Using the GY-511 Magnetic Sensor
Correct Output
*If your data stops streaming/the magnetometer is disconnected, you need to re-upload the code before collecting data again*
Using the GY-511 Magnetometer
Experimental Procedure: B-Field vs Current
Selecting The Field Strength
Moving the wire changes the amount of resistance in the circuit, and (by Ohm’s law) the current traveling through the solenoid
Python Analysis
END OF UNIT 5 WINTER 2026
There is NO REPORT for Unit 5, just a postlab. The postlab must include:
Lab 5C: Force Between Two Cylindrical Magnets
NOT FOR WINTER 2026
Magnetic Field Models
Magnetic Forces
Attractive
Repulsive
High B-Field Magnetic Sensor
Measuring B-Field of Magnets
Experimental Setup
Electrical Schematic of Scale Sensor
NOTE: You only have to wire the RED wires to the arduino. The rest are prewired!
Scale Sensor Instructions
Experimental Procedure
Unit 4: Group Report
Unit 4: Group Report