Projects / Ideas / Magnet strength against distance

Magnet strength against distance

IntermediateLearningIdeaReviewed
In short

How do you build a magnet strength against distance?

A linear Hall sensor and a time-of-flight sensor measure how the pull of a small magnet falls away as it moves back from the sensor, and a Pico plots the curve. Keep the magnet small and away from cards and phones. You need Raspberry Pi Pico H, A1302 linear hall sensor, VL53L0X time-of-flight distance sensor, SSD1306 OLED Display, Tactile push button 6 mm and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 160 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

See how a magnet's field falls with distance.

How to build it

  1. Fix the sensors on a slider
  2. Read the Hall sensor on an analog pin
  3. Read the distance
  4. Store a reading at each step
  5. Plot field against distance

Related projects

Common questions

What parts do I need for the magnet strength against distance?

Raspberry Pi Pico H, A1302 linear hall sensor, VL53L0X time-of-flight distance sensor, SSD1306 OLED Display, Tactile push button 6 mm and Breadboard 830 Tie Points.

How long does the magnet strength against distance take to build?

About 160 minutes for a intermediate maker.