{"id":3547,"date":"2023-12-20T06:26:09","date_gmt":"2023-12-20T06:26:09","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3547"},"modified":"2023-12-20T06:26:09","modified_gmt":"2023-12-20T06:26:09","slug":"interfacing-2-channel-relay-module-with-vega-aries-boards","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-2-channel-relay-module-with-vega-aries-boards\/","title":{"rendered":"Interfacing 2 channel Relay Module with VEGA ARIES boards"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface&nbsp;<strong>two channel relay module<\/strong>&nbsp;with ARIES v3board. The two Channel Relay Module is used to control high voltage, high current load such as motor, solenoid valves, lamps and AC load.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2 Channel Relay<\/h2>\n\n\n\n<p>A relay is an&nbsp;<strong>electromagnetic switch<\/strong>&nbsp;operated by a relatively small current that can control much larger current. The two-channel relay module comprises of components that make switching and connection easier and act as indicators to show if the module is powered and if the relay is active or not. It&nbsp;uses an electric current to open or close the contacts of a switch.&nbsp;This is usually done using the help of a coil that attracts the contacts of a switch and pulls them together when activated, and a spring pushes them apart when the coil is not energised.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"251\" height=\"201\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/images.jpeg\" alt=\"\" class=\"wp-image-3552\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\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.0 Board<\/li>\n\n\n\n<li>USB type C to USB type A cable<\/li>\n\n\n\n<li>Two-channel Relay Module<\/li>\n\n\n\n<li>Jumper Wires<\/li>\n<\/ul>\n\n\n\n<p><strong>Not<\/strong><strong>e:<\/strong>&nbsp;All of the following boards can be used for this project<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">ARIES v2.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES v3.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesmicro.php\">ARIES Micro<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesdot.php\">ARIES DOT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesiot.php\">ARIES IoT<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Circuit Diagram<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"608\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay-1024x608.png\" alt=\"\" class=\"wp-image-3553\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay-1024x608.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay-300x178.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay-768x456.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay.png 1291w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Relay<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>J1 VCC<\/td><td>3.3V<\/td><\/tr><tr><td>I\/P<\/td><td>GPIO0<\/td><\/tr><tr><td>G<\/td><td>GND<\/td><\/tr><tr><td>I\/P1<\/td><td>GPIO-1<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of Two-Channel relay &amp; ARIES v3.0 Board<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Open and set up the Arduino IDE as described in&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.html\" target=\"_blank\">Getting Started with ARIES v3.0<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make sure you have selected&nbsp;<strong>ARIES v3<\/strong>&nbsp;Board from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Board<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA Processor: ARIES Boards<\/strong>&nbsp;-&gt;&nbsp;<strong>ARIES v3<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA XMODEM from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA XMODEM<\/strong><\/li>\n\n\n\n<li>Also select appropriate port from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port&nbsp;-&gt; COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"415\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/1-11.png\" alt=\"\" class=\"wp-image-4608\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/1-11.png 847w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/1-11-300x147.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/1-11-768x376.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>Now, Open\u00a0<strong>Files<\/strong>\u00a0->\u00a0<strong>Examples<\/strong>\u00a0-> Under\u00a0<strong>Examples for ARIES v3<\/strong>\u00a0<strong>->\u00a0GPIO->\u00a05V_2Channel_Relay<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-55-1024x743.png\" alt=\"\" class=\"wp-image-4622\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-55-1024x743.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-55-300x218.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-55-768x557.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-55.png 1130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>The two LEDs on the relay module will ON\/OFF when the Relay is switching. Open the serial monitor at 115200 baud rate to view the relay status as \u201cRelay ON\u201d or \u201cRelay OFF\u201d.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-1024x576.jpeg\" alt=\"\" class=\"wp-image-3549\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-1024x576.jpeg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-300x169.jpeg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-768x432.jpeg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-1536x864.jpeg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.54.24-PM-2048x1152.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-1024x576.jpeg\" alt=\"\" class=\"wp-image-3550\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-1024x576.jpeg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-300x169.jpeg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-768x432.jpeg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-1536x864.jpeg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/WhatsApp-Image-2023-09-27-at-5.55.17-PM-2048x1152.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"968\" height=\"694\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-from-2023-09-27-17-33-23.png\" alt=\"\" class=\"wp-image-3548\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-from-2023-09-27-17-33-23.png 968w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-from-2023-09-27-17-33-23-300x215.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-from-2023-09-27-17-33-23-768x551.png 768w\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/relay.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface&nbsp;two channel relay module&nbsp;with ARIES v3board. The two Channel Relay Module is used to control high voltage, high current load such as motor, solenoid valves, lamps and AC load. 2 Channel Relay A relay is an&nbsp;electromagnetic switch&nbsp;operated by a relatively small current that can control much [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":3550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[95,76,7,68,77,24],"class_list":["post-3547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aries-with-arduinoide","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-gpio","tag-thejas-32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3547","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=3547"}],"version-history":[{"count":8,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions"}],"predecessor-version":[{"id":4623,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions\/4623"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/3550"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}