Description
The Analog Hall Effect Sensor Module uses the 49E sensor to detect North and South pole and relative strength of a magnetic field.
PACKAGE INCLUDES:
- Analog Hall Effect Sensor Module
KEY FEATURES OF ANALOG HALL EFFECT MODULE:
- Use 49E analog Hall Effect sensor
- Can differentiate between North and South pole of the magnet
- Detects the strength of the magnetic field
- 3.3 or 5V operation
Hall Effect sensors detect the presence of a magnetic field and are commonly used for measuring the RPM of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates. They can even be used to detect electrical current flow through conductors in some cases.
This sensor utilizes an analog 49E sensor. With no magnetic field present, the sensor output rests at approximately 50% of Vcc. In the case of 5V power, the output will be about 2.5V when at rest. When a magnetic field comes near, the voltage will rise or fall depending on whether the south or north pole of the magnet is coming near. If a south pole of a magnet is placed near the front of the sensor (side with the labeling), the output voltage will linearly ramp up towards Vcc to a maximum of 4.2V. If the north pole of the magnet is presented, the voltage will linearly ramp down towards ground to a minimum of 0.86V. The amount of the voltage rise or fall will depend on the magnetic strength of the field.
To use this analog sensor with a microcontroller, it should be hooked up to an analog input. The output will read approximately 1/2 Vcc with no magnetic field present. When a magnetic field approaches, the voltage will change linearly at a rate of 2.5mV / G. Gauss (G) is the unit of measure for magnetism.
Module Connections
There is a 3-pin header on the assembly. There are a couple of different pin labeling schemes since the same board is used for several modules.
1 x 3 Header
- G or ‘-‘ = Ground
- R or Center pin = Vcc (3.3 or 5V typical)
- Y or S = Analog output, connects to analog input on MCU
OUR EVALUATION RESULTS:
This is an interesting module that can be used to experiment with a number of industrial type applications. The analog version of the Hall Effect sensor is a little trickier to use than the digital version, but it can provide information that the digital sensor cannot provide such as which pole of the magnet is being presented as well as the relative strength of the magnetic field.
Analog Hall Effect Sensor Module Example Program
/* Analog Hall Effect module test Basic code for reading the analog output of the hall effect module. */ const int AnalogPin = A0; const float GAUSS_PER_STEP = 1.96; // Sensor outputs 2.5mV / Gauss. // ADC step is about 4.89mV / Step float rawValue = 0.0; float gaussValue = 0.0; float zeroLevel = 530.0; // Adjust as needed to get zero output with no magnetic field present. //=============================================================================== // Initialization //=============================================================================== void setup() { pinMode (AnalogPin, INPUT); Serial.begin(9600); // Set comm speed for debug window messages } //=============================================================================== // Main //=============================================================================== void loop() { rawValue = analogRead (AnalogPin) - zeroLevel; // Output normalized to '0' with no field present Serial.print ("Reading Raw: "); Serial.println (rawValue); // Reading positive relative to the South Pole, the North Pole negative gaussValue = rawValue * GAUSS_PER_STEP; Serial.print ("Reading in Gauss: "); Serial.println (gaussValue); delay (3000); }
BEFORE THEY ARE SHIPPED, THESE MODULES ARE:
- Inspected
- Sample tested per incoming shipment
- Packaged in a resealable ESD bag for protection and easy storage.
Notes:
- Same as or similar to the KY-035.
Technical Specifications
Operating Ratings | Vcc Range | 3 – 6.5V |
Analog Output (no magnetic field) | 1/2 Vcc | |
Analog Output (Max South pole field) | 4.2V | |
Analog Output (Max North pole field) | 0.86V | |
Sensitivity | 2.5mV / G | |
Dimensions | L x W (PCB) | 20mm x 15mm (0.8 x 0.6″) |
Length including sensor | 25mm (1″) | |
Country of Origin | China |