{"id":2446,"date":"2023-08-07T11:56:37","date_gmt":"2023-08-07T11:56:37","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2446"},"modified":"2023-08-21T05:07:39","modified_gmt":"2023-08-21T05:07:39","slug":"interfacing-linear-magnetic-hall-sensor-with-aries-v3-0","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-linear-magnetic-hall-sensor-with-aries-v3-0\/","title":{"rendered":"Interfacing Linear Magnetic Hall Sensor with ARIES v3.0"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface a linear magnetic hall sensor with ARIES V3 board. A hall effect\/hall magnetic sensor is a device that can be used to detect presence or absence&nbsp;of a magnetic field.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linear Magnetic Hall Sensor<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/Hall.png\" alt=\"\" class=\"wp-image-2447\" style=\"width:235px;height:186px\" width=\"235\" height=\"186\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/Hall.png 446w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/Hall-300x237.png 300w\" sizes=\"auto, (max-width: 235px) 100vw, 235px\" \/><\/figure>\n\n\n\n<p>A&nbsp;<strong>Hall effect sensor<\/strong>&nbsp;or Hall sensor is a magnetic non-contact sensor that generates an electrical signal proportional to the magnetic field applied to it. They can be used in switches where the presence of a magnetic field is used to either activate or deactivate a circuit, computer, smartphones etc. They can produce either analog or digital output. They are basically like a small reed switch, and&nbsp;when a magnetic field is around, the output voltage will vary according to the magnetic flux. Hall effect  sensors are used in BLDC applications because they are robust, accurate, and low failure rate.<\/p>\n\n\n\n<p>The&nbsp;linear <strong>HW-484 V0.2<\/strong> <strong>hall magnetic sensor<\/strong>&nbsp;has four pins: A0, G,+ and D0. Connect + and G of hall magnetic sensor module to 3.3V and GND respectively of ARIES v3 board. Then connect the A0 Pin of the hall magnetic sensor to the A0 pin of ARIES v3 and D0 pin of sensor to GPIO-3 of ARIES board for getting the output.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Linear Magnetic Hall Sensor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>G<\/td><td>GND<\/td><\/tr><tr><td>+<\/td><td>3.3 V<\/td><\/tr><tr><td>A0<\/td><td>A0<\/td><\/tr><tr><td>D0<\/td><td>GPIO-3<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of linear hall magnetic sensor Module &amp; ARIES v3.0 Board<\/strong><\/em><br><br><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v3 Microcontroller<\/li>\n\n\n\n<li>HW-484 V0.2 Linear Magnetic Hall Sensor <\/li>\n\n\n\n<li>Jumper wires<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connection Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"673\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallsensorDiagram.png\" alt=\"Connection Diagram for Linear Magnetic Hall sensor with ARIES v3.0\n\" class=\"wp-image-2449\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallsensorDiagram.png 937w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallsensorDiagram-300x215.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallsensorDiagram-768x552.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><figcaption class=\"wp-element-caption\"><strong><em>Connection Diagram for Linear Magnetic Hall sensor with ARIES v3.0<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v3 board via the USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v3 board, we have to use a micro USB type C to USB type A cable. The cable should be connected to UART-0 port of the ARIES v3 board, and the Laptop\/Desktop\/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Here we are using Arduino IDE 1.8.19 in Ubuntu OS for testing the code.<\/p>\n\n\n\n<p>Open Arduino IDE<\/p>\n\n\n\n<p>Go to Tools -&gt; Board -&gt; VEGA Processor ARIES Boards -&gt; Select ARIES v3<\/p>\n\n\n\n<p>Go to Tools -&gt; Programmer -&gt; Select VEGA XMODEM<\/p>\n\n\n\n<p>Connect the ARIES v3 board to PC<\/p>\n\n\n\n<p>Go to Tools -&gt; Port -&gt; Select the appropriate port<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1.png\" alt=\"\" class=\"wp-image-2404\" style=\"width:366px;height:213px\" width=\"366\" height=\"213\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1.png 695w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1-300x175.png 300w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/figure>\n\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v3 -&gt;ADC -&gt; Open&nbsp;<strong>LinearMagneticHallSensor<\/strong>&nbsp;example<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex-1.png\" alt=\"\" class=\"wp-image-2452\" style=\"width:350px;height:257px\" width=\"350\" height=\"257\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex-1.png 859w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex-1-300x221.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex-1-768x566.png 768w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/linearHallOpimge-1024x571.png\" alt=\"\" class=\"wp-image-2453\" style=\"width:495px;height:276px\" width=\"495\" height=\"276\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/linearHallOpimge-1024x571.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/linearHallOpimge-300x167.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/linearHallOpimge-768x428.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/linearHallOpimge.png 1256w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p>Once you\u2019ve completed the code, upload it to your ARIES v3.0 board using the Arduino IDE.\u00a0Wait until the program is uploaded. After completing the uploading the program will start to execute. Show a magnet in front of the sensor and observe the changes happening to the values in serial monitor. <\/p>\n\n\n\n<p>For analog readings, with no magnetic field present, the device will produce an output voltage equal to half the power-supply voltage (VCC). As the magnetic field strengthens, the output voltage will either start pulling it closer to ground (magnetic north) or closer to the power-supply voltage (magnetic south) until it reaches a saturation point.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallLinearOp.png\" alt=\"\" class=\"wp-image-2454\" style=\"width:404px;height:236px\" width=\"404\" height=\"236\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallLinearOp.png 966w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallLinearOp-300x175.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/HallLinearOp-768x448.png 768w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>For digital output,When you show any magnetic field near the sensor The GREEN LED on ARIES board will turn ON.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"368\" style=\"aspect-ratio: 640 \/ 368;\" width=\"640\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallLinearOp.mp4\"><\/video><figcaption class=\"wp-element-caption\"><strong><em>Linear Magnetic Hall Sensor Digital Output<\/em><\/strong><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface a linear magnetic hall sensor with ARIES V3 board. A hall effect\/hall magnetic sensor is a device that can be used to detect presence or absence&nbsp;of a magnetic field.&nbsp; Linear Magnetic Hall Sensor A&nbsp;Hall effect sensor&nbsp;or Hall sensor is a magnetic non-contact sensor that generates [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[69,7,68,31,24],"class_list":["post-2446","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-analog-out","tag-cdac","tag-gpio","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=2446"}],"version-history":[{"count":7,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2446\/revisions"}],"predecessor-version":[{"id":2518,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2446\/revisions\/2518"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}