{"product_id":"analog-hall-effect-sensor-module","title":"Analog Hall Effect Sensor Module","description":"\u003cp\u003e\u003cspan\u003eUses the 49E sensor to detect N\/S pole and relative strength of magnetic field.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Analog Hall Effect Sensor Module uses the 49E sensor to detect North and South pole and relative strength of a magnetic field.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAnalog Hall Effect Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF ANALOG HALL EFFECT MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUse 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 strength of the magnetic field\u003c\/li\u003e\n\u003cli\u003e3.3 or 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHall 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\u003cp\u003eThis 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.\u003c\/p\u003e\n\u003cp\u003eTo 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.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere 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.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eG\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e‘-‘\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eR\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eCenter pin\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Vcc (3.3 or 5V typical)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eY\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eS =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eAnalog output, connects to analog input on MCU\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.  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.\u003c\/p\u003e\n\u003ch3\u003eAnalog 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\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\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\u003eInspected\u003c\/li\u003e\n\u003cli\u003eSample tested per incoming shipment\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\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\u003eSame as or similar to the KY-035.\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 – 6.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\"\u003e20mm x 15mm  (0.8 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLength including sensor\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25mm  (1″)\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":45680756359403,"sku":"","price":2.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/49E-Analog-Hall-Effect-Sensor-Module.jpg?v=1723006212","url":"https:\/\/keszooxstore.com\/products\/analog-hall-effect-sensor-module","provider":"Keszoox","version":"1.0","type":"link"}