← All activities
Electricity and magnetism High school &##9201; 30

Speed by magnetic markers

Measure the speed of a moving object using magnets placed at regular intervals and the smartphone magnetometer.

By FizziQ

Activity Summary

The student places magnets at regular intervals along a path and records the magnetic field from a smartphone attached to a moving object. Speed is calculated from the time intervals between magnetic field peaks.

Introduction

How can you measure the speed of a moving object without a camera or stopwatch? The smartphone magnetometer offers an elegant solution: by placing magnets at regular intervals along the path, each passage past a magnet creates a sharp peak in the magnetic field signal. The time between peaks, combined with the known spacing, directly gives the speed. This technique is the basis of many industrial speed sensors and even some speedometers.

Learning Objectives

  • Calculate average speed from distance and time measurements
  • Distinguish instantaneous speed from average speed
  • Trace position and speed graphs from magnetic peak data
  • Understand the 1/r³ decay of dipole magnetic fields

Scientific Concepts

Instruments and sensors

Scientific instruments

  • Magnetometer

Sensors

  • Magnetometer

FizziQ Features

  • Remote control — Starts and stops the recording from a second device while the smartphone stays attached to the moving object.

Required Materials

  • - Smartphone or tablet with FizziQ - Small magnets (neodymium or refrigerator magnets) - A straight track (toy train rails, gutter, table edge) - A moving object (toy train, cart) - Tape measure and adhesive tape - Note: the protocol remains adaptable to any comparable magnetic field data acquisition tool.

Experimental Protocol

1

Choose a straight track: toy train rail, gutter, curtain rod, or table edge.

2

Place magnets at regular intervals along the track (for example every 10 or 20 cm). Use a tape measure for precise placement.

3

Measure and note the distance d between two consecutive magnets.

4

Attach your smartphone to the moving object (toy train, cart). The magnetometer must pass close to the magnets. Identify which side of the phone has the sensor.

5

Open FizziQ and select the Magnetometer instrument. Ideally, use remote control from a second device.

6

Start the recording while the smartphone is stationary at the starting point.

7

Set the object in motion along the rail. The phone must pass at the same distance from each magnet.

8

Stop the recording at the end of the track, before removing the phone.

9

Observe the magnetic field versus time graph. You should see sharp peaks corresponding to each magnet passage.

10

From the time intervals between peaks and the known distance d, calculate the average speed in each interval: v = d/Δt. Plot speed versus time to analyze acceleration or deceleration.

Expected Results

The magnetic field graph shows sharp, regularly spaced peaks corresponding to each magnet. For a toy train at constant speed, the intervals between peaks are equal. For an accelerating cart on an inclined plane, the intervals decrease as the object speeds up. Speed precision is typically ±2-5% depending on the regularity of magnet placement and motion.

Scientific Questions

  • Why does the 1/r³ decay allow precise detection of individual magnets?
  • What is the difference between average speed and instantaneous speed in this experiment?
  • How could you use this technique to measure acceleration?
  • Why are neodymium magnets better than ferrite magnets for this experiment?
  • What industrial applications use a similar magnetic detection principle?

Scientific Background

The smartphone magnetometer is an extremely sensitive magnetic field sensor, capable of detecting fields as small as 0.1 µT. Near a small neodymium magnet, the field can reach several hundred µT.

The magnetic field of a dipole (small magnet) decays as **1/r³**. This very rapid decay means each magnet creates a sharp, localized peak in the signal, with minimal overlap from neighboring magnets.

The average speed between two magnets is calculated by **v = d/Δt**, where d is the distance between magnets and Δt is the time between corresponding peaks.

The precision depends on the magnet placement and the constancy of the phone-magnet distance. On a guided rail, one can achieve 1-2% precision on the speed measurement.

Caution: electric motors (in a toy train) also generate a parasitic magnetic field. Keep the phone sensor away from the motor to avoid interference.

Extensions

  • Measure the deceleration of a launched object to determine the friction coefficient
  • Use non-uniform magnet spacing to create a higher-resolution speed measurement at specific points
  • Compare the speed measured magnetically with GPS speed or video analysis
  • Investigate how the peak amplitude depends on the sensor-magnet distance

Frequently Asked Questions

Some magnets are not detected.

The phone-magnet distance is probably too large or the magnets too weak. Bring the phone closer to the magnets. Neodymium magnets give the strongest signal.

The peaks overlap and are hard to distinguish.

Increase the spacing between magnets or use weaker magnets. Also ensure the phone passes at a constant distance from each magnet.

The baseline drifts during the recording.

Earth's magnetic field and local sources create a slowly varying baseline. This does not affect the peak detection. Focus on the sharp variations, not the absolute values.

Can I use this on a bicycle?

Yes! Mount the phone on the frame and attach magnets to the wheel spokes. Each spoke passage creates a peak, giving wheel rotation speed and hence the bicycle speed.

Detailed Description

The student places magnets at regular intervals along a straight path, then attaches their smartphone to a moving object (toy train, cart). By recording the magnetic field with FizziQ, the passage past each magnet creates a peak in the signal, allowing speed calculation from the time intervals. FizziQ's Magnetometer instrument records and displays the magnetic field in real time, making it easy to spot each magnet passage as a sharp peak during the run.

Ready to start?

Download FizziQ and try this activity with your students.