{"id":3097,"date":"2023-09-08T12:29:10","date_gmt":"2023-09-08T12:29:10","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3097"},"modified":"2023-09-08T12:29:10","modified_gmt":"2023-09-08T12:29:10","slug":"how-to-interface-aries-boards-using-rs485-modbus-protocol","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/how-to-interface-aries-boards-using-rs485-modbus-protocol\/","title":{"rendered":"How to interface ARIES boards using RS485 (Modbus) protocol"},"content":{"rendered":"\n<p>In this tutorial, we will discuss how to communicate between two ARIES boards with the help of the RS485 (Modbus RTU) serial data communication protocol.&nbsp; We will follow the RS485 master-slave communication method. For demonstration purposes, we will create a project that will ON or OFF a LED connected to a Slave ARIES from Master ARIES by sending some commands through RS485 Module. The master ARIES uses a push button to control the LED attached to the slave device.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>MAX485 TTL to RS485 Module<\/strong><\/h2>\n\n\n\n<p>For using RS-485 in ARIES, a module called<strong> MAX485 TTL to RS485 <\/strong>which is based on<strong> Maxim MAX485 IC<\/strong>&nbsp;is needed as it allows serial communication over long distance.The MAX485 TTL to RS-485 Interface Module allows MCUs to use the RS-485 differential signaling for robust long distance serial communications. ARIES boards doesn\u2019t have any peripherals for Modbus communication. We will use an RS485-based sensor module called MAX485 for communication between two ARIES boards. The MAX485 pin description is given in the following table:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Pin Name<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Function<\/strong><\/td><\/tr><tr><td>RO<\/td><td>Receiver Output<\/td><td>Connects to a serial RX pin on the microcontroller<\/td><\/tr><tr><td>RE<\/td><td>Receiver Enable <\/td><td>Active LOW.&nbsp; Connects to a digital output pin on a microcontroller. Drive LOW to enable receiver, HIGH to enable Driver<\/td><\/tr><tr><td>DE<\/td><td>Driver Enable&nbsp; <\/td><td>Active&nbsp; HIGH.&nbsp; Typically jumpered to RE Pin.<\/td><\/tr><tr><td>DI<\/td><td>Driver Input<\/td><td>Connects to serial TX pin on the microcontroller<\/td><\/tr><tr><td>VCC<\/td><td>Voltage Common Collector<\/td><td>supply pin<\/td><\/tr><tr><td>A<\/td><td>Data \u2018A\u2019 Non-Inverted Line <\/td><td>Used as non-inverting receiver input and inverting driver output<\/td><\/tr><tr><td>B<\/td><td>Data \u2018B\u2019 Inverted Line<\/td><td>Used as inverting receiver input and inverting driver output<\/td><\/tr><tr><td>GND<\/td><td>Ground<\/td><td>Ground<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Modbus Protocol<\/h2>\n\n\n\n<p>Modbus is a serial communication protocol developed by Modicon published by Modicon in 1979 for use with its programmable logic controllers (PLCs). In simple terms, it is a method used for transmitting information over serial lines between electronic devices. The device requesting the information is called the Modbus Client and the devices supplying information are Modbus Servers.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RS485<\/h2>\n\n\n\n<p>Modbus communicates over different types of physical media and they are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RS232:<\/strong>&nbsp;serial communication protocol<\/li>\n\n\n\n<li><strong>RS485:<\/strong>&nbsp;serial communication protocol<\/li>\n\n\n\n<li><strong>RS422:<\/strong>&nbsp;serial communication protocol<\/li>\n\n\n\n<li><strong>Ethernet:<\/strong>&nbsp;LAN (Local Area Network) Technology<\/li>\n<\/ul>\n\n\n\n<p>RS485 is an asynchronous half-duplex serial communication protocol that communicates over devices by using the master-salve method. It can connect a maximum of 32 devices on the same line. RS485 is used more industrially where many devices need to be interconnected together for a system. Advantages of RS485 over RS232 includes, its longer distances (up to 1200 meters), higher data transfer rate (Up to 30Mbps), and allow for multiple devices connection on a single network by using only two wires.<\/p>\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\/ariesv2.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<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Component<\/strong><\/td><td><strong>Quantity<\/strong><\/td><\/tr><tr><td>ARIES v3.0 Board<\/td><td>1<\/td><\/tr><tr><td>ARIES v2.0 Board<\/td><td>1<\/td><\/tr><tr><td>USB type B to USB type A cable<\/td><td>1<\/td><\/tr><tr><td>USB type C to USB type A cable<\/td><td>1<\/td><\/tr><tr><td>MAX485 TTL to RS485 converter module <\/td><td>2<\/td><\/tr><tr><td>Jumper Wires<\/td><td>Many<\/td><\/tr><tr><td>Bread Board<\/td><td>1<\/td><\/tr><tr><td>Push Button<\/td><td>1<\/td><\/tr><tr><td>LED<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connection Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max4-1024x464.png\" alt=\"\" class=\"wp-image-3138\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max4-1024x464.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max4-300x136.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max4-768x348.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max4.png 1360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"564\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max1-1024x564.png\" alt=\"\" class=\"wp-image-3105\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max1-1024x564.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max1-300x165.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max1-768x423.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max1.png 1385w\" 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>MAX485 (Master side)<\/strong><\/td><td><strong>ARIES v3 (Master)<\/strong><\/td><\/tr><tr><td>RO<\/td><td>RX1<\/td><\/tr><tr><td>DI<\/td><td>TX1<\/td><\/tr><tr><td>DE,RE<\/td><td>GPIO-7<\/td><\/tr><tr><td>VCC<\/td><td>3.3 V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>A<\/td><td>Pin A of another MAX485<\/td><\/tr><tr><td>B<\/td><td>Pin Bof another MAX485<\/td><\/tr><tr><td><strong>Push Button<\/strong><\/td><td><strong>ARIES v3 (Master)<\/strong><\/td><\/tr><tr><td>One side<\/td><td>GPIO-2 of ARIES board<\/td><\/tr><tr><td>Other side<\/td><td>GND<\/td><\/tr><tr><td><strong>10K  Resistor<\/strong><\/td><td><\/td><\/tr><tr><td>One side<\/td><td>Push Button and GPIO-2<\/td><\/tr><tr><td>Other side<\/td><td>VCC (3.3 V)<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Table: Connection pins of MAX485 &amp; ARIES v3.0 Board as Master<\/em><\/strong><br><br><br><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>MAX485 (Slave side)<\/strong><\/td><td><strong>ARIES v2 (Slave)<\/strong><\/td><\/tr><tr><td>RO<\/td><td>RX1<\/td><\/tr><tr><td>DI<\/td><td>TX1<\/td><\/tr><tr><td>DE,RE<\/td><td>GPIO-7<\/td><\/tr><tr><td>VCC<\/td><td>3.3 V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>A<\/td><td>Pin A of another MAX485<\/td><\/tr><tr><td>B<\/td><td>Pin Bof another MAX485<\/td><\/tr><tr><td><strong>LED<\/strong><\/td><td><strong>ARIES v2 (Slave)<\/strong><\/td><\/tr><tr><td>+ve<\/td><td>100 K Resistor<\/td><\/tr><tr><td>-ve<\/td><td>GND<\/td><\/tr><tr><td><strong>100K Resistor<\/strong><\/td><td><\/td><\/tr><tr><td>One side<\/td><td>LED +ve terminal<\/td><\/tr><tr><td>Other side<\/td><td>GPIO-8 of ARIES board<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Table: Connection pins of MAX485 &amp; ARIES v2.0 Board as Slave<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Master Side:<\/h3>\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<p>Check whether the ARIES v3 board, BOOT-SEL pin is shorted or not<\/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-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"651\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo1.png\" alt=\"\" class=\"wp-image-3124\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo1.png 1011w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo1-300x193.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo1-768x495.png 768w\" sizes=\"auto, (max-width: 1011px) 100vw, 1011px\" \/><\/figure>\n\n\n\n<p><em>ARIES v3 board with <strong>BOOT SEL<\/strong> pin not shorted<\/em><\/p>\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-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"644\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo2.png\" alt=\"\" class=\"wp-image-3125\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo2.png 1011w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo2-300x191.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/bo2-768x489.png 768w\" sizes=\"auto, (max-width: 1011px) 100vw, 1011px\" \/><\/figure>\n\n\n\n<p><em>ARIES v3 board with <strong>BOOT SEL<\/strong> pin shorted<\/em><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If<br>BOOT-SEL jumper (J12) is not shorted :<\/li>\n\n\n\n<li>Click on <strong>Tools &#8211; Burn Bootloader<\/strong> and wait for the \u201c<strong>uploading completed<\/strong>\u201d message in IDE<\/li>\n<\/ul>\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\/09\/2.png\" alt=\"\" class=\"wp-image-3131\" style=\"width:447px;height:247px\" width=\"447\" height=\"247\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/2.png 733w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/2-300x166.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once the program got uploaded, Connect the <strong>BOOT SEL<\/strong> pin in ARIES board using a shorting jumper \/ Female-Female connector (NOTE: Shorting jumper is always preferred. This is a one time step only.)<\/li>\n\n\n\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&nbsp;<strong>Flash Mode<\/strong>&nbsp;-&gt;&nbsp;<strong>Enabled<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA FLASHER from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA FLASHER<\/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 v3)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"399\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1.png\" alt=\"\" class=\"wp-image-3129\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1.png 885w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-300x135.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-768x346.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<p>If<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BOOT-SEL jumper (J12) is already shorted :<\/li>\n\n\n\n<li>Select&nbsp;<strong>Flash Mode<\/strong>&nbsp;-&gt;&nbsp;<strong>Enabled<\/strong><\/li>\n\n\n\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 FLASHER from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA FLASHER<\/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 v3)<\/strong><\/li>\n\n\n\n<li>Above mentioned steps are needed to flash the program to ARIES board permanently.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"399\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-1.png\" alt=\"\" class=\"wp-image-3130\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-1.png 885w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-1-300x135.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/1-1-768x346.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/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;<strong>-&gt;&nbsp;UART-&gt;&nbsp;Max485_Master<\/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\/09\/3.png\" alt=\"\" class=\"wp-image-3132\" style=\"width:431px;height:503px\" width=\"431\" height=\"503\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/3.png 778w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/3-257x300.png 257w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/3-768x897.png 768w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<p><strong>Upload&nbsp;<\/strong>the code in ARIES v3 board which is set as Master in this example. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Slave side<\/h3>\n\n\n\n<p>Open and set up the Arduino IDE as described in&nbsp;<a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">Getting Started with ARIES v2.0<\/a><\/p>\n\n\n\n<p>Let\u2019s power up the ARIES v2 board via the USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro-USB type B to USB type A cable. The cable should be connected to UART-0 port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now,&nbsp;<strong>open&nbsp;<\/strong>the Arduino IDE<\/li>\n\n\n\n<li>Make sure you have selected&nbsp;<strong>ARIES v2<\/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 v2<\/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,&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port<\/strong>&nbsp;-&gt;&nbsp;<strong>COM* (ARIES v2)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"426\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100134-1.png\" alt=\"\" class=\"wp-image-3133\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100134-1.png 899w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100134-1-300x142.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100134-1-768x364.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/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;<strong>-&gt;&nbsp;UART-&gt;&nbsp;Max485_Slave<\/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\/09\/Screenshot-2023-09-05-100218.png\" alt=\"\" class=\"wp-image-3134\" style=\"width:482px;height:604px\" width=\"482\" height=\"604\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100218.png 744w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-05-100218-239x300.png 239w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/figure>\n\n\n\n<p>Finally <strong>Upload <\/strong>the code in ARIES v2 board.<\/p>\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\/09\/maxex-1024x744.jpeg\" alt=\"\" class=\"wp-image-3112\" style=\"width:614px;height:446px\" width=\"614\" height=\"446\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxex-1024x744.jpeg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxex-300x218.jpeg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxex-768x558.jpeg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxex-1536x1116.jpeg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxex-2048x1488.jpeg 2048w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<p>In this sketch, the slave ARIES (ARIES v2) receives the command from the master (ARIES v3) through the MAX485 module by using the RS485 protocol. In Master device we connected a push button and in slave device  we connected an LED. If the slave (ARIES v2) receives command \u201c1\u201d then LED will Turn OFF and print \u201c1\u201d to the Arduino IDE serial monitor or, if slave receives command \u201c0\u201d then LED will turn ON and print \u201c0\u201d to the serial monitor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"469\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max3.png\" alt=\"\" class=\"wp-image-3110\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max3.png 966w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max3-300x146.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/max3-768x373.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1280\" style=\"aspect-ratio: 720 \/ 1280;\" width=\"720\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/maxop.mp4\"><\/video><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will discuss how to communicate between two ARIES boards with the help of the RS485 (Modbus RTU) serial data communication protocol.&nbsp; We will follow the RS485 master-slave communication method. For demonstration purposes, we will create a project that will ON or OFF a LED connected to a Slave ARIES from Master [&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,77,65,24],"class_list":["post-3097","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-thejas-32","tag-uart","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3097","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=3097"}],"version-history":[{"count":29,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3097\/revisions"}],"predecessor-version":[{"id":3178,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3097\/revisions\/3178"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}