{"id":2590,"date":"2023-08-22T12:18:00","date_gmt":"2023-08-22T12:18:00","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2590"},"modified":"2023-08-22T12:18:00","modified_gmt":"2023-08-22T12:18:00","slug":"interfacing-rgb-led-with-aries-v3-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-rgb-led-with-aries-v3-0-board\/","title":{"rendered":"Interfacing RGB LED with ARIES v3.0 board"},"content":{"rendered":"\n<p>In this tutorial we will see how to connect the RGB LED with&nbsp;<strong>ARIES v3.0<\/strong>&nbsp;Board. The RGB LED can emit different colors by mixing the 3 basic colors red, green and blue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RGB LED<\/h2>\n\n\n\n<p>RGB LED also known as Tricolour LED have three LEDs inside them and usually, these three internal LEDs share either a common anode (Common positive) or a common cathode (Common Negative) in a through-hole package.&nbsp;In Common Cathode type LEDs, there will be three positive terminals each terminal representing a colour and one negative terminal representing all three colours.&nbsp;In Common Anode, there will be three negative terminals each terminal representing a colour and one positive terminal representing all three colours. <\/p>\n\n\n\n<p>For Common Cathode type, If we want RED to be ON, we need to power the RED LED pin and ground the common negative. The same goes for all the LEDs. In Common Anode type, if we want RED to be on in above, we need to ground the RED LED pin and power the common positive. The same goes for all the LEDs. To produce other colours, you can combine the three colours in different intensities.<\/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\/r1-1.png\" alt=\"\" class=\"wp-image-2592\" style=\"width:264px;height:186px\" width=\"264\" height=\"186\"\/><\/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 rel=\"noreferrer noopener\" href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.html\" target=\"_blank\">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>RGB LED<\/li>\n\n\n\n<li>ARIES v3.0 Board<\/li>\n\n\n\n<li>Jumper Wires<\/li>\n\n\n\n<li>USB type C to USB type A cable<\/li>\n\n\n\n<li>Resistor (40 Ohm)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"638\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgbled-2-1024x638.png\" alt=\"\" class=\"wp-image-2618\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgbled-2-1024x638.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgbled-2-300x187.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgbled-2-768x479.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgbled-2.png 1033w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong><em>Connection Diagram for RGB LED with ARIES v3.0<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p>You cannot distinguish between the common cathode and common anode type by just looking at the RGB led because both look same. You will have to make the connections to see that either it is common cathode or common anode. The RGB led has one big lead than the other leads. In the common cathode case, it will be connected to GND and in the common anode case; it will be connected to 3.3V. The other leads can be connected to any GPIO pins.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>RGB LED<\/strong><\/td><td><strong>ARIES v3.0 Board<\/strong><\/td><\/tr><tr><td>Longest lead<\/td><td>GND\/3.3V<\/td><\/tr><tr><td>R<\/td><td>GPIO-0<\/td><\/tr><tr><td>B<\/td><td>GPIO-1<\/td><\/tr><tr><td>G<\/td><td>GPIO-2<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of RGB LED Module &amp; ARIES v3.0 Board<\/em><br><\/strong><br>Once we are done with the connections, let\u2019s power 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 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.<\/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\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Port\u00a0-> COM* (ARIES v3)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"429\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/board.png\" alt=\"\" class=\"wp-image-2597\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/board.png 962w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/board-300x134.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/board-768x342.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<p>Now, Open&nbsp;<strong>Files<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v3<\/strong>&nbsp;-&gt;&nbsp;<strong>GPIO<\/strong>&nbsp;-&gt;&nbsp;<strong>RGB_LED_GPIO<\/strong><\/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\/send1.png\" alt=\"\" class=\"wp-image-2614\" style=\"width:454px;height:446px\" width=\"454\" height=\"446\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/send1.png 951w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/send1-300x295.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/send1-768x756.png 768w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/figure>\n\n\n\n<p>Finally, let\u2019s&nbsp;<strong>Upload<\/strong>&nbsp;the code to ARIES v3 Board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once the code is uploaded, you can see the RGB LED working as expected by producing different colours.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"638\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgb-1024x638.png\" alt=\"\" class=\"wp-image-2601\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgb-1024x638.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgb-300x187.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgb-768x479.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rgb.png 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/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\/08\/rgb.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><br><br><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><br><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see how to connect the RGB LED with&nbsp;ARIES v3.0&nbsp;Board. The RGB LED can emit different colors by mixing the 3 basic colors red, green and blue. RGB LED RGB LED also known as Tricolour LED have three LEDs inside them and usually, these three internal LEDs share either a common [&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":[95,76,7,68,77,31,24],"class_list":["post-2590","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-gpio","tag-thejas-32","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2590","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=2590"}],"version-history":[{"count":11,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2590\/revisions"}],"predecessor-version":[{"id":2629,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2590\/revisions\/2629"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}