{"id":2394,"date":"2023-08-02T14:03:08","date_gmt":"2023-08-02T14:03:08","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2394"},"modified":"2023-08-21T05:06:57","modified_gmt":"2023-08-21T05:06:57","slug":"using-a-hall-effect-sensor-with-aries-v3-0","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/using-a-hall-effect-sensor-with-aries-v3-0\/","title":{"rendered":"USING A HALL EFFECT SENSOR WITH ARIES v3.0"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface a hall effect 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\">Hall effect sensor<\/h2>\n\n\n\n<p>KY-035 is a analog device that varies its output voltage proportional to the magnetic field it is sensing. The output signal produced by a Hall effect sensor is a function of magnetic field density around it. The sensor produces a hall voltage when the magnetic flux density around the sensor exceeds a certain threshold value. This hall voltage will indicate the presence of the magnetic field. The applications of hall sensors includes automotive systems to detect position and to measure distance and speed. They can also 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.<\/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\/halleffect_ex.png\" alt=\"\" class=\"wp-image-2399\" style=\"width:205px;height:216px\" width=\"205\" height=\"216\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/halleffect_ex.png 565w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/halleffect_ex-285x300.png 285w\" sizes=\"auto, (max-width: 205px) 100vw, 205px\" \/><\/figure>\n\n\n\n<p>The&nbsp;<strong>hall magnetic sensor<\/strong>&nbsp;has three pins: G, R and Y. Connect R and G of hall magnetic sensor module to 3.3V and GND respectively of ARIES v3 board. Then connect the Y Pin of the hall magnetic sensor to the A0 pin of ARIES v3 board for getting the analog output.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Hall Sensor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>R<\/td><td>3.3V<\/td><\/tr><tr><td>G<\/td><td>GND<\/td><\/tr><tr><td>Y<\/td><td>A0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of flame sensor Module &amp; ARIES v3.0 Board<\/strong><\/em><\/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>Hall magnetic sensor\/ Hall effect sensor<\/li>\n\n\n\n<li>Jumper wires<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Connection Diagram<br><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1226\" height=\"629\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallmag_fig.png\" alt=\"Connection Diagram for hall effect sensor with ARIES v3.0\n\" class=\"wp-image-2402\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallmag_fig.png 1226w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallmag_fig-300x154.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallmag_fig-1024x525.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hallmag_fig-768x394.png 768w\" sizes=\"auto, (max-width: 1226px) 100vw, 1226px\" \/><figcaption class=\"wp-element-caption\"><strong><em>Connection Diagram for hall effect 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 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 size-full 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:369px;height:215px\" width=\"369\" height=\"215\" 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: 369px) 100vw, 369px\" \/><\/figure>\n\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v3 -&gt;ADC -&gt; Open&nbsp;<strong>hallMagneticSensor<\/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.png\" alt=\"\" class=\"wp-image-2405\" style=\"width:344px;height:286px\" width=\"344\" height=\"286\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex.png 651w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ex-300x250.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/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\/hall_ckt-1024x613.png\" alt=\"\" class=\"wp-image-2407\" style=\"width:411px;height:246px\" width=\"411\" height=\"246\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ckt-1024x613.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ckt-300x180.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ckt-768x460.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hall_ckt.png 1224w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/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>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\/mag_Op.png\" alt=\"\" class=\"wp-image-2408\" style=\"width:441px;height:215px\" width=\"441\" height=\"215\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/mag_Op.png 966w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/mag_Op-300x147.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/mag_Op-768x375.png 768w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface a hall effect 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; Hall effect sensor KY-035 is a analog device that varies its output voltage proportional to the magnetic [&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,75,93,76,77,24],"class_list":["post-2394","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-analog-out","tag-aries-v2-board","tag-ariesarduino","tag-c-dac","tag-thejas-32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2394","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=2394"}],"version-history":[{"count":12,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2394\/revisions"}],"predecessor-version":[{"id":2517,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2394\/revisions\/2517"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}