Magnetic field (Hall Effect) Sensor Data Sheet

Title

Hall Sensor

TI Item Name

STEMKT/AC/HS/A

Description

Measures the magnetic field around the sensor using the Hall Effect.

The sensor reports a low value in the presence of a magnetic field and a high value in the absence of one. It can be used to detect when a magnet is close to the sensor.

Category

Motion and Distance Sensors

Hub Connection

4-Pin Cable to any of these ports: IN 1, IN 2, IN 3

Assembly Instructions

Precautions

Specifications

Dimensions: 130mm x 90mm x 9.5mm

Weight: G.W 6g

 

HUB Commands

 

Sketch Object

ANALOG.IN

Command Syntax

Code
Sample:

Desired Action

Code Sample

Connect the Hall effect sensor to IN3 port

Send "CONNECT ANALOG.IN 1 TO IN 3"

Read the value of the magnetic field reported by the sensor

Send "READ ANALOG.IN 1"

Get m