Go Down

Topic: Hall Sensor DRV5053 (Read 99 times) previous topic - next topic

beyondal

Feb 15, 2015, 09:02 pm Last Edit: Feb 15, 2015, 09:06 pm by beyondal Reason: forget my own readings when no magnetic field is around
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.

Code: [Select]
/*
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.

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.

beyondal

Quote
(aValue-CalibratedZero)*Sensitivity
Does are commands for Arduino for calibrating? I don't find any references for Arduino about those terms.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy