# Hall Sensor DRV5053

Hello,

I have this hall sensor DRV5053

specs:

-11 mV/mT (OA)
-23mV/mT ¶
-45mV/mT (RA)
-90mV/mT (VA)
+23mV/mT (CA)
+45mV/mT (EA)

Is I found out -11mT = -110Gauss (- = south?)

I want to know the 0 point gauss in 1024 bit. So I can set that standard in Max/MSP.

In this sketch based on a other sensor it reads with another scale, but I don’t know if the gauss that is shown is correct.

``````/*
GaussPlot
27/12/2011  Arduining.com
Showing Gauss measured by the SS495B in the serial monitor.
(Miniature Radiometric Linear Hall Efect Sensor)
Sensor connected to Analog channel 0.
*/
#define XRANGE  50
int x,gss;
void setup(){
Serial.begin(9600);
}
void loop(){
x = map(aValue, 0, 1024, 0, XRANGE);
gss = map(aValue, 102, 922, -640, 640);
Serial.print("|");
for (int i=0;i<x;i++){
if(i==XRANGE/2-1)Serial.print("|");
else Serial.print("-");
}
Serial.print("O");
for (int i=x+1;i<XRANGE;i++){
if(i==XRANGE/2-1)Serial.print("|");
else Serial.print("-");
}
Serial.print("|");
Serial.print(gss);
Serial.println("Gauss");
delay(100);
}
``````

The point when the sensor has no magnet field (held it outside) is around -460 to -465.
I can’t figure out if this is my actual gauss reading or a scaling for the one that’s mentioned in the sketch.

The datasheet says (section 8): "The absence of a magnetic field will result in OUT = 1 V." Quiescent output (7.7) is specified as 0.9 to 1.15V, you may have to calibrate every single sensor for more precise values (aValue-CalibratedZero)*Sensitivity.

(aValue-CalibratedZero)*Sensitivity

Does are commands for Arduino for calibrating? I don't find any references for Arduino about those terms.