Gravity__Hall_Angle_Sensor_SKU__SEN0221-DFRobot

SEN0221 Gravity: 360 Degree Hall Angle Sensor

Introduction

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.

Specification

Board Overview

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

Tutorial

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

Requirements

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 (http://www.dfrobot.com)
 * @license  The MIT License (MIT)
 * @author  lg.gang@qq.com
 * @version  V1.0
 * @date  2016-7-12
 */

void setup()
{
  Serial.begin(115200);
}

void loop()
{
  float analogValue = analogRead(A2);     //Voltage reading
  float amp = analogValue / 1024.0 * 360; //Angle calculation  (  UNO is a 10-bit AD )
  Serial.print("Angle:");
  Serial.println(amp);
  delay(500);
}

Expected Results

The serial monitor shows the angle value.

Dimension

SEN0221 Gravity: 360 Degree Hall Angle Sensor Dimension

FAQ

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

More Documentation