Magnetic Field Sensor

../../../../_images/magnetic_sensor.png

Overview

I2C communication sensor for measuring magnetic flux density.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Mounting: 2 screw holes

Measurement range: ±100mT

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

SCL

I2C clock

SDA

I2C data

Usage Guide

  1. When programming, make sure the DIP switch address matches the address in the program!

  2. Connect the magnetic sensing rod to the module. The sensing element (Hall element) is located at the tip of the rod.

Example Code

Displays the measured magnetic field strength on the mPython Board OLED screen.

../../../../_images/magnetic_sensor_1.png