{"id":2685,"date":"2023-08-23T08:43:01","date_gmt":"2023-08-23T08:43:01","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2685"},"modified":"2023-08-23T08:43:01","modified_gmt":"2023-08-23T08:43:01","slug":"read-analog-voltage-using-aries-v3-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/read-analog-voltage-using-aries-v3-0-board\/","title":{"rendered":"Read Analog Voltage using ARIES v3.0 board"},"content":{"rendered":"\n<p>This example shows you how to read an analog input on analog pin 0, convert the values from analogRead() into voltage, and print it out to the serial monitor of the Arduino Software (IDE).<\/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\/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>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<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\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%\">\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=\"560\" height=\"740\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc1-1.png\" alt=\"\" class=\"wp-image-2752\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc1-1.png 560w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc1-1-227x300.png 227w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<p><strong>Diagram for M-M wire connected to VCC (3.3V)<\/strong><\/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=\"556\" height=\"751\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc.png\" alt=\"\" class=\"wp-image-2751\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc.png 556w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/vcc-222x300.png 222w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p><strong>Diagram for M-M wire connected to GND (0 V)<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p>The above circuit reads an analog input on pin A0, converts it to voltage, and prints the result to the Serial Monitor. Graphical representation is available using Serial Plotter (Tools &gt; Serial Plotter menu). Using a male-male jumper wire, Attach one end of the jumper wire to pin A0, and the other end of jumper wire to +3.3V or ground.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>M-M wire<\/strong><\/td><td><strong>ARIES v3.0 Board<\/strong><\/td><\/tr><tr><td>One end<\/td><td>A0<\/td><\/tr><tr><td>Other end<\/td><td>3V3 \/ GND<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection for testing analog voltage in ARIES v3.0 Board<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p>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.<\/p>\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 v3)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"394\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/9-2-1024x394.png\" alt=\"\" class=\"wp-image-2686\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/9-2-1024x394.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/9-2-300x115.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/9-2-768x295.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/9-2.png 1230w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/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>ADC<\/strong>&nbsp;-&gt;&nbsp;<strong>voltage_example<\/strong><\/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\/2023\/08\/17-1024x795.png\" alt=\"\" class=\"wp-image-2687\" style=\"width:532px;height:413px\" width=\"532\" height=\"413\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/17-1024x795.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/17-300x233.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/17-768x596.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/17.png 1076w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/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>Now, when you open your Serial Monitor in the Arduino IDE (by clicking on the icon on the right side of the top green bar or pressing Ctrl+Shift+M), you should see the voltage on the corresponding analog pin A0. If you connect one end of the wire  to VCC (3V3) then you will see the voltage in serial monitor as 3.3V  which is default voltage for ARIES boards. If you connect one end of the wire  to GND instead of 3V3, then you will get the corresponding voltage as 0.<\/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%\">\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=\"768\" height=\"1024\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-768x1024.jpg\" alt=\"\" class=\"wp-image-2690\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-768x1024.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-225x300.jpg 225w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-1152x1536.jpg 1152w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-1536x2048.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727881609-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p><strong>M-M wire connected to VCC (3.3V)<\/strong><\/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-large\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-768x1024.jpg\" alt=\"\" class=\"wp-image-2689\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-768x1024.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-225x300.jpg 225w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-1152x1536.jpg 1152w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-1536x2048.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/1692727787761-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p><strong>M-M wire connected to GND<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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=\"863\" height=\"533\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve3.png\" alt=\"\" class=\"wp-image-2691\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve3.png 863w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve3-300x185.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve3-768x474.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/figure>\n\n\n\n<p><strong>Output when connected to VCC (3.3V)<\/strong><\/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=\"862\" height=\"536\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve1.png\" alt=\"\" class=\"wp-image-2692\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve1.png 862w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve1-300x187.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/ve1-768x478.png 768w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\n\n\n\n<p><strong>Output when connected to GND (0 V)<\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><br><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><br><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>This example shows you how to read an analog input on analog pin 0, convert the values from analogRead() into voltage, and print it out to the serial monitor of the Arduino Software (IDE). Prerequisites Components Required Circuit Diagram: Diagram for M-M wire connected to VCC (3.3V) Diagram for M-M wire connected to GND (0 [&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,95,76,7,77,31,24],"class_list":["post-2685","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-analog-out","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-thejas-32","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2685","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=2685"}],"version-history":[{"count":8,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2685\/revisions"}],"predecessor-version":[{"id":2804,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2685\/revisions\/2804"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}