Hello,
I have this hall sensor DRV5053
specs:
-11 mV/mT (OA)
-23mV/mT (PA)
-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(){
int aValue =analogRead(0);
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.