{"product_id":"linear-hall-effect-sensor-module","title":"Linear Hall Effect Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects N\/S poles and relative strength of a magnetic field.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Linear Hall Effect Sensor Module detects both North and South poles and relative strength of a magnetic field and provides both analog and digital outputs.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLinear Hall Effect Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LINEAR HALL EFFECT MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUses 49E analog Hall Effect sensor\u003c\/li\u003e\n\u003cli\u003eCan differentiate between North and South pole of the magnet\u003c\/li\u003e\n\u003cli\u003eDetects the relative strength of the magnetic field\u003c\/li\u003e\n\u003cli\u003eProvides analog output representative of relative magnetic strength\u003c\/li\u003e\n\u003cli\u003eProvides digital output when magnetic strength exceeds the adjustable set-point\u003c\/li\u003e\n\u003cli\u003e3.3 or 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module incorporates an analog Hall Effect sensor.  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.\u003c\/p\u003e\n\u003ch3\u003eModule Operation\u003c\/h3\u003e\n\u003cp data-wp-editing=\"1\"\u003eThe analog output sits at around 50% Vcc with no input, but this varies with the setting of the sensitivity adjustment pot.  Any magnetic field picked up by the sensor causes this value to increase or decrease depending on whether the south or north pole of the magnet is coming near.  The south pole of the magnet will cause the analog output to linearly ramp towards\u003cimg alt=\"\" src=\"https:\/\/cdn.shopifycdn.net\/s\/files\/1\/0677\/1005\/8731\/files\/Linear-Hall-Effect-Sensor-Module-Schematic.jpg?v=1722229299\"\u003e\u003cspan\u003e \u003c\/span\u003eVcc to a maximum of about 4.2V (if Vcc is 5V).  If the north pole is presented, the voltage will linearly ramp towards ground to a minimum of 0.86V.  The amount of the voltage change will depend on the strength of the magnetic field.\u003c\/p\u003e\n\u003cp\u003eThe digital output which is active HIGH, is the result of a LM393 voltage comparator IC comparing the amplitude of the sensor to the level set by the on-board potentiometer.  Turning the pot CW increases the sensitivity.  A LED that is turned on when the output goes active HIGH.  If the pot is turned CCW (less sensitive), the LED will eventually always be off and if it is turned CW (more sensitive) it will come on as the magnet comes near.\u003c\/p\u003e\n\u003cp\u003eThe board also has a red LED which lights whenever power is applied.\u003c\/p\u003e\n\u003cp\u003eTo use this sensor with a microcontroller,  if the strength of the field is to be measured, the analog output should be hooked up to an analog input.  The output will read 1\/2 Vcc with no magnetic field present.  With a magnetic field, the voltage will change linearly at a rate of 2.5mV \/ G.   Gauss (G) is the unit of measure for magnetism.  If a basic GO \/ NO GO indication of a magnetic field is desired, the digital output can be connected to a digital input on the microcontroller.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the module for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \/ G\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=  Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0 =\u003c\/strong\u003e Analog output, connects to analog input on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e = Digital output, connects to digital input on uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is an interesting module that can be used to experiment with a number of industrial type applications involving Hall Effect sensors.\u003c\/p\u003e\n\u003cp\u003eThe analog version of the Hall Effect sensor as used in this module is a little trickier to use than the digital version, but it can provide information that the digital sensors cannot provide such as which pole of the magnet is being presented as well as the relative strength of the magnetic field.  Since this module also has a digital output, it also functions similar to a digital Hall Effect sensor, but with an adjustable trigger point.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the analog output of the module using pin A0, but this can be any available analog pin.  It then reports the raw analog input value as well as the calculated Gauss value.\u003c\/p\u003e\n\u003ch3\u003eLinear Hall Effect Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eAnalog Hall Effect module test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for reading the analog output of the hall effect module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e1.96\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Sensor outputs 2.5mV \/ Gauss.  \u003c\/span\u003e\n                                    \u003cspan\u003e\/\/ ADC step is about 4.89mV \/ Step\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e530.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Adjust as needed to get zero output with no magnetic field present.\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Set comm speed for debug window messages\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e-\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Output normalized to '0' with no field present\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading Raw: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erawValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Reading positive relative to the South Pole, the North Pole negative\u003c\/span\u003e\n  \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading in Gauss: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003egaussValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eModule similar or same as KY-024\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"834\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (no magnetic field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 1\/2 Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (Max South pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 4.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eAnalog Output (Max North pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e0.86V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSensitivity\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2.5mV \/ G\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e36mm x 15mm  (1.4x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681315086571,"sku":"","price":3.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Linear-Hall-Effect-Sensor-Module-1.jpg?v=1723006056","url":"https:\/\/keszooxstore.com\/products\/linear-hall-effect-sensor-module","provider":"Keszoox","version":"1.0","type":"link"}