{"id":484,"date":"2021-05-24T05:02:09","date_gmt":"2021-05-24T05:02:09","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=484"},"modified":"2023-07-03T05:38:32","modified_gmt":"2023-07-03T05:38:32","slug":"esp8266-wifi-module-with-thejas-soc","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/esp8266-wifi-module-with-thejas-soc\/","title":{"rendered":"ESP8266 WiFi Module with ARIES v2 Board"},"content":{"rendered":"\n<p>Now we are going to learn how we can interface&nbsp;the ESP8266 WiFi Module with&nbsp;ARIES v2 Board.&nbsp;The&nbsp;ESP8266&nbsp;is a low-cost&nbsp;Wi-Fi&nbsp;microchip, with a full&nbsp;TCP\/IP stack&nbsp;and&nbsp;microcontroller&nbsp;capability. This small module allows microcontrollers to connect to a Wi-Fi network and make simple TCP\/IP connections using&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Hayes_command_set\">Hayes<\/a>-style commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ESP8266 WiFi Module<\/h2>\n\n\n\n<p>ESP8266 is a highly integrated chip designed for the needs of a new connected world. It offers a complete and self-contained Wi-Fi networking solution allowing it to either host the application or to offload all Wi-Fi networking functions from another application processor. ESP8266 has powerful on-board processing and storage capabilities that allow it to be integrated with the sensors and other application-specific devices through its GPIOs with minimal development up-front and minimal loading during runtime.<\/p>\n\n\n\n<p>Its high degree of on-chip integration allows for minimal external circuitry. It is designed to occupy a minimal PCB area.<\/p>\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\/2021\/05\/ESP-01.jpg\" alt=\"\" class=\"wp-image-488\" width=\"419\" height=\"419\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/ESP-01.jpg 600w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/ESP-01-300x300.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/ESP-01-150x150.jpg 150w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<p>ESP8266 Module communicates with the ARIES v2 Board via the UART Protocol. Connect VCC and GND to +3.3V and GND respectively. Connect <strong>RX <\/strong>to <strong>UART1-TX<\/strong> and <strong>TX <\/strong>to<strong> UART1-RX<\/strong> pins. <\/p>\n\n\n\n<p>Now, for powering up and programming the code into the ARIES v2 Board, we have to connect a <strong>micro USB type B<\/strong> (common data cable, used for mobile charging and data transfer) in the <strong>UART0<\/strong> port of the ARIES v2 Board, to a Laptop\/Desktop\/PC with preinstalled VEGA SDK and Toolchain.<\/p>\n\n\n\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\/07\/ESP-1024x576.jpg\" alt=\"\" class=\"wp-image-2267\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/ESP-1024x576.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/ESP-300x169.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/ESP-768x432.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/ESP.jpg 1058w\" 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>ESP8266 WiFi Module<\/strong><\/td><td><strong>ARIES v2 Board<\/strong><\/td><\/tr><tr><td>VCC  <\/td><td>+3V3<\/td><\/tr><tr><td>GND <\/td><td>GND<\/td><\/tr><tr><td>RXD<\/td><td>UART1-TX<\/td><\/tr><tr><td>TXD<\/td><td>UART1-RX<\/td><\/tr><tr><td>EN<\/td><td>+3V3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Procedure<\/strong><\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, build the example program for the ESP8266 Module by :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd vega-sdk\/examples\/uart\/wifi_demo<\/code><\/pre>\n\n\n\n<p><strong>make clean <\/strong>command to clean the executable :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>then use <strong>make<\/strong> command to build it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>Now, we can transfer the built program to the board, before transfer please ensure that you have connected UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal and execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board uart terminal is ready.<\/p>\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\/2021\/05\/minicom-11.png\" alt=\"\" class=\"wp-image-638\" width=\"838\" height=\"702\"\/><\/figure>\n\n\n\n<p>Use CTRL+A S to enter file sending menu and select xmodem by pressing Enter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-311\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, with the <strong>Space bar<\/strong> select the <strong>wifi_demo.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the Program will start to execute.<\/p>\n\n\n\n<p>The output is displayed in minicom UART terminal:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"691\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/wifi_demo.png\" alt=\"\" class=\"wp-image-486\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/wifi_demo.png 792w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/wifi_demo-300x262.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/wifi_demo-768x670.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<p>Connect to the Wifi network and then try accessing the webpage 192.168.4.1<\/p>\n\n\n\n<p>Try  to toggle LED by ON\/OFF switch<\/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\" style=\"flex-basis:100%\"><div class=\"wp-block-image size-large is-resized\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"503\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM1-1.jpeg\" alt=\"\" class=\"wp-image-494\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM1-1.jpeg 538w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM1-1-300x280.jpeg 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"VEGA Processor: ESP8266 Wi-Fi Module Demo\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/PSJldKgW1uM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>For additional information :<\/p>\n\n\n\n<p><a href=\"https:\/\/cdn-shop.adafruit.com\/product-files\/2471\/0A-ESP8266__Datasheet__EN_v4.3.pdf\">https:\/\/cdn-shop.adafruit.com\/product-files\/2471\/0A-ESP8266__Datasheet__EN_v4.3.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now we are going to learn how we can interface&nbsp;the ESP8266 WiFi Module with&nbsp;ARIES v2 Board.&nbsp;The&nbsp;ESP8266&nbsp;is a low-cost&nbsp;Wi-Fi&nbsp;microchip, with a full&nbsp;TCP\/IP stack&nbsp;and&nbsp;microcontroller&nbsp;capability. This small module allows microcontrollers to connect to a Wi-Fi network and make simple TCP\/IP connections using&nbsp;Hayes-style commands. ESP8266 WiFi Module ESP8266 is a highly integrated chip designed for the needs of a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[75,7,52,26,31,65,24],"class_list":["post-484","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized","tag-aries-v2-board","tag-cdac","tag-esp8266","tag-thejas-64","tag-thejas32","tag-uart","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/484","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=484"}],"version-history":[{"count":22,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/484\/revisions"}],"predecessor-version":[{"id":2268,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/484\/revisions\/2268"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}