SEN0221 Gravity: 360 Degree Hall Angle Sensor


The Hall Angle Sensor is a miniature 360 degree sensor which works based on the principle of the Hall effect. It is compatible with the DFRobot Gravity sensor interface, and works with a 5V DC power supply. The analog output is also 0~5V so it can work directly with Arduino.

The Hall angle sensor works by converting its angle information to an electrical signal. When the rotation angle of the object is passed to the axis of rotation sensors, it outputs an electrical signal that is proportional to the rotational angle.

The angular sensor shell is constructed from robust aluminum alloy, using Hall-type non-contact technology. It includes high-quality imported high-speed stainless steel bearings and other components for reduced frictional resistance when taking readings.

The unit offers a long service life and is compact, with a high resolution, smooth rotation and dynamic noise. This unit is guarantees performance in various harsh industrial environments and is protected from electromagnetic interference, water, oil, vibration and shock. A typical application is crank angle sensing and steering angle measurement.


Board Overview

SEN0221 Gravity: 360 Degree Hall Angle Sensor Board Overview
Num Label Description
1 Signal Analog Signal
2 VCC Power +
3 GND Power -


This tutorial demonstrates how to use hall angle sensor in 5 minutes.


Connection Diagram

SEN0221 Gravity: 360 Degree Hall Angle Sensor Connection Diagram

Sample Code

 * @file  hallAngleSensor.ino
 * @brief  This example The sensors detect turn round
 * @copyright  Copyright (c) 2010 DFRobot Co.Ltd (
 * @license  The MIT License (MIT)
 * @author
 * @version  V1.0
 * @date  2016-7-12

void setup()

void loop()
  float analogValue = analogRead(A2);     //Voltage reading
  float amp = analogValue / 1024.0 * 360; //Angle calculation  (  UNO is a 10-bit AD )

Expected Results

The serial monitor shows the angle value.


SEN0221 Gravity: 360 Degree Hall Angle Sensor Dimension


For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documentation