{"id":33719,"date":"2020-06-16T17:47:43","date_gmt":"2020-06-16T09:47:43","guid":{"rendered":"\/blog\/?p=33719"},"modified":"2021-07-07T16:57:16","modified_gmt":"2021-07-07T08:57:16","slug":"why-do-you-need-an-analog-to-digital-converter-adc-m","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/","title":{"rendered":"Why Do You Need an Analog-to-Digital Converter (ADC)?"},"content":{"rendered":"\n<p>You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let&#8217;s look at what exactly is ADC, to begin with.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1030\" height=\"579\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/cover-3-1030x579.png\" alt=\"\" class=\"wp-image-33792\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-1030x579.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-300x169.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-768x432.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-1024x576.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png 1200w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>When we build projects using an Arduino or a Raspberry Pi, we normally would connect different sensors to obtain information regarding the physical world and do some processing based on that information. So, when talking about communication, there are two types of signals that we often come across:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Analog Signals<\/li><li>Digital Signals<\/li><\/ul>\n\n\n\n<p>Let\u2019s first understand what these signals are:<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What are Analog Signals?<\/h2>\n\n\n\n<p>Analog signals are a type of continuous signals which are time-varying. Most of the environmental sensors such as temperature, light, pressure, and sound sensors communicate with microcontrollers using analog signals. These analog sensors output values in a specific range based on what the sensors are sensing. Analog signals normally take the form of sine waves and they can be defined by amplitude, frequency, and phase where amplitude denoting the highest height of the signals, frequency denoting the varying rate of the analog signals and phase denoting the position of the signal in time. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/sine-new-1030x512.png\" alt=\"\" class=\"wp-image-33721\" width=\"556\" height=\"275\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/sine-new-1030x512.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/sine-new-300x149.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/sine-new-1024x509.png 1024w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What are Digital Signals? <\/h2>\n\n\n\n<p>Digital signals are a type of discrete signals which are time-varying. The data is carried in the form of binary in a digital signal. This means it can either carry a \u201c0\u201d or a \u201c1\u201d. If you think about a switch, it sends out digital signals when pressing it to turn on while transmitting as a \u201c1\u201d and when pressed again to turn off while transmitting as a \u201c0\u201d. Digital signals also have an amplitude, frequency, and a phase just like analog signals. Digital Signals are normally defined by bit interval and bitrate where bit interval is the required time to transmit one bit and bitrate is the frequency of the bit interval.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/digital-1030x563.png\" alt=\"\" class=\"wp-image-33722\" width=\"409\" height=\"223\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/digital-1030x563.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/digital-300x164.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/digital-768x420.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/digital-1024x560.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/digital.png 1200w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What is an ADC? <\/h2>\n\n\n\n<p>When you need to use analog sensors and communicate with a microcontroller, it is not possible for the microcontroller to directly understand these analog signals because microcontrollers only understand digital signals which are formed by 1\u2019s and 0\u2019s. Therefore, this kind of system needs an intermediate device that could convert the analog signals from these sensors to digital signals in order for the microcontroller to understand these signals. An ADC (Analog to Digital Converter) is an electronic integrated circuit which is able to convert these analog signals to digital signals. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/convert-1030x839.png\" alt=\"\" class=\"wp-image-33725\" width=\"359\" height=\"293\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/convert-1030x839.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/convert-300x244.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/convert-768x625.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/convert-1024x834.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/convert.png 1200w\" sizes=\"(max-width: 359px) 100vw, 359px\" \/><\/figure><\/div>\n\n\n\n<p>Normally an ADC would accept a range of voltage inputs and convert those into a form of binary numbers.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino UNO already has an ADC?<\/h2>\n\n\n\n<p>Yes. Arduino already has an ADC with a resolution of 10-bit, which means it is able to identify 2^10 = 1024 discrete analog levels. However, this range is from 0 \u2013 1023. Therefore. If you connect a sensor to an Arduino UNO and it outputs an analog level of 1023, the microcontroller will ultimately receive it as a 5V signal after going through the 10-bit ADC. <\/p>\n\n\n\n<p class=\"has-background has-text-align-center has-very-light-gray-background-color\"><strong>0  -&gt;  0V<br>1023  -&gt;  5V <\/strong><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">But Why Do We Need an ADC?<\/h3>\n\n\n\n<p>Even though most microcontrollers have ADCs built into them, we sometimes need to connect additional ADC modules in order to get more accurate results from sensors in more advanced projects. There are different ADCs in the market such as 12-bit, 14-bit, 16-bit, 24-bit. The accuracy is directly related to the resolution of the ADC. When the resolution is higher, the accuracy becomes higher.<\/p>\n\n\n\n<p>So, the number of discrete analog levels an ADC identifies can be expressed from the simple equation below<\/p>\n\n\n\n<p class=\"has-background has-text-align-center has-very-light-gray-background-color\"><strong>Number of discrete analog level = 2 ^ resolution of ADC<\/strong><\/p>\n\n\n\n<p>So, the Range of discrete analog levels in relation to the ADC resolution can be expressed by the following table.<\/p>\n\n\n\n<style type=\"text\/css\">\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-k7ar{background-color:#c0c0c0;border-color:#000000;font-weight:bold;text-align:center;vertical-align:top}\n.tg .tg-wp8o{border-color:#000000;text-align:center;vertical-align:top}\n<\/style>\n<table class=\"tg\" style=\"undefined;table-layout: fixed; width: 582px\">\n<colgroup>\n<col style=\"width: 257px\">\n<col style=\"width: 325px\">\n<\/colgroup>\n<thead>\n  <tr>\n    <th class=\"tg-k7ar\">Resolution<\/th>\n    <th class=\"tg-k7ar\">Range<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n  <tr>\n    <td class=\"tg-wp8o\">24<\/td>\n    <td class=\"tg-wp8o\">16,777,216<\/td>\n  <\/tr>\n  <tr>\n    <td class=\"tg-wp8o\">16<\/td>\n    <td class=\"tg-wp8o\">65,536<\/td>\n  <\/tr>\n  <tr>\n    <td class=\"tg-wp8o\">14<\/td>\n    <td class=\"tg-wp8o\">16,384<\/td>\n  <\/tr>\n  <tr>\n    <td class=\"tg-wp8o\">12<\/td>\n    <td class=\"tg-wp8o\">4096<\/td>\n  <\/tr>\n  <tr>\n    <td class=\"tg-wp8o\">10<\/td>\n    <td class=\"tg-wp8o\">1024<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p>Now let\u2019s look at a more general equation to obtain the ADC reading from the microcontroller.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922885821-1030x106.png\" alt=\"\" class=\"wp-image-33732\" width=\"583\" height=\"59\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922885821-1030x106.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922885821-300x31.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922885821-768x79.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922885821-1024x105.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922885821.png 1537w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/figure><\/div>\n\n\n\n<p>For example, if you get an analog voltage of 4V on a 5V Arduino UNO while using a 16-bit ADC:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922886351.png\" alt=\"\" class=\"wp-image-33733\" width=\"340\" height=\"62\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922886351.png 978w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922886351-300x55.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922886351-768x141.png 768w\" sizes=\"(max-width: 340px) 100vw, 340px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">ADC Modules Offered by Seeed<\/h2>\n\n\n\n<p>We offer a range of ADC modules to use with your Arduino and Raspberry Pi in order to obtain more accurate results when working with your analog sensors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-I2C-ADC.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Grove I2C ADC (opens in a new tab)\">Grove I2C ADC<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-I2C-ADC.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922906231.png\" alt=\"\" class=\"wp-image-33741\" width=\"224\" height=\"197\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922906231.png 648w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922906231-300x265.png 300w\" sizes=\"(max-width: 224px) 100vw, 224px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>This is a 12-bit precision ADC module based on ADC121C021. It helps you increase the accuracy of value collected from analog sensors by providing a constant reference voltage. Because its address is changeable, you can use up to 9 I2C ADC at the same time at most. On the other hand, this module provides auto sleep function which lowers power consumption considerably.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-ADS1115-16-bit-ADC-p-4599.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Grove - 4 Channel 16-bit ADC (ADS1115) w\/ Programmable Amplifier Gain (opens in a new tab)\">Grove &#8211; 4 Channel 16-bit ADC (ADS1115) w\/ Programmable Amplifier Gain<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-ADS1115-16-bit-ADC-p-4599.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922907361.png\" alt=\"\" class=\"wp-image-33742\" width=\"240\" height=\"186\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922907361.png 853w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922907361-300x234.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922907361-768x598.png 768w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The ADS1115 is a 4-channel 16-bit high-resolution, low-power ADC chip with PGA (programmable gain amplifier) function. The PGA allows it to measure input voltages from \u00b1256 mV to \u00b16.144 V, thus greatly expanding its application scenarios.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/4-Channel-16-Bit-ADC-for-Raspberry-Pi-ADS1115.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"4-Channel 16-Bit ADC for Raspberry Pi (ADS1115) (opens in a new tab)\">4-Channel 16-Bit ADC for Raspberry Pi (ADS1115)<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/4-Channel-16-Bit-ADC-for-Raspberry-Pi-ADS1115.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922908651.png\" alt=\"\" class=\"wp-image-33743\" width=\"312\" height=\"251\"\/><\/a><\/figure><\/div>\n\n\n\n<p>This is a 4-channel 16-bit ADC for Raspberry Pi (ADS1115), based on Texas Instrument ADS1115, which is a high-precision, low-power, 16-bit ADC chip.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/8-Channel-12-Bit-ADC-for-Raspberry-Pi-STM32F030.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"8-Channel 12-Bit ADC for Raspberry Pi (STM32F030) (opens in a new tab)\">8-Channel 12-Bit ADC for Raspberry Pi (STM32F030)<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/8-Channel-12-Bit-ADC-for-Raspberry-Pi-STM32F030.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922909321.png\" alt=\"\" class=\"wp-image-33744\" width=\"342\" height=\"271\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922909321.png 724w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922909321-300x238.png 300w\" sizes=\"(max-width: 342px) 100vw, 342px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>This is an 8-channel 12-bit ADC for Raspberry Pi (STM32F030), based on STM32F030 by ST, which is a high-precision, low-power, 12-bit ADC chip.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-ADC-for-Load-Cell-HX711-p-4361.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Grove - ADC for Load Cell (HX711) (opens in a new tab)\">Grove &#8211; ADC for Load Cell (HX711)<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-ADC-for-Load-Cell-HX711-p-4361.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922909951.png\" alt=\"\" class=\"wp-image-33745\" width=\"227\" height=\"194\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922909951.png 767w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922909951-300x258.png 300w\" sizes=\"(max-width: 227px) 100vw, 227px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>This is a 24-bit A\/D converter designed specifically for the load cell. It contains an on-chip low noise programmable amplifier with an optional gain of 32, 64, and 128. The HX711 chip integrates a regulated power supply, an on-chip clock oscillator, and other peripheral circuits, which have the advantages of high integration, fast response, and strong anti-interference.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Play with Grove &#8211; 4 Channel 16-bit ADC(ADS1115) and Wio Terminal<\/h2>\n\n\n\n<p>Now let\u2019s use the Grove &#8211; 4 Channel 16-bit ADC(ADS1115) with our Wio Terminal and see how it works.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Hardware Required<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" aria-label=\"Wio Terminal\u2028 (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/Wio-Terminal-p-4509.html\" target=\"_blank\">Wio Terminal<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\"Grove - 16Bit ADC (ADS1115) (opens in a new tab)\" href=\"https:\/\/wiki.seeedstudio.com\/Grove-16-bit-ADC-ADS1115\/\" target=\"_blank\">Grove &#8211; 16-<\/a><a href=\"https:\/\/wiki.seeedstudio.com\/Grove-16-bit-ADC-ADS1115\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Grove - 16Bit ADC (ADS1115) (opens in a new tab)\">b<\/a><a rel=\"noreferrer noopener\" aria-label=\"Grove - 16Bit ADC (ADS1115) (opens in a new tab)\" href=\"https:\/\/wiki.seeedstudio.com\/Grove-16-bit-ADC-ADS1115\/\" target=\"_blank\">it ADC (ADS1115)<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Grove-Rotary-Angle-Sensor.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Grove - Rotary Angle Sensor (opens in a new tab)\">Grove &#8211; Rotary Angle Sensor<\/a><\/li><\/ul>\n\n\n\n<p><strong>Step 1.<\/strong> Plug Grove &#8211; 16 Bit ADC(ADS1115) to the I2C\nport of Wio Terminal.<\/p>\n\n\n\n<p><strong>Step 2.<\/strong> Connect Wio Terminal to a PC via a USB cable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"375\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15922911101.png\" alt=\"\" class=\"wp-image-33746\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922911101.png 712w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15922911101-300x158.png 300w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Software<\/h3>\n\n\n\n<p><strong>Step 1.<\/strong> Download the <a href=\"https:\/\/github.com\/Seeed-Studio\/Seeed_Arduino_ADS1115\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Seeed Arduino ADS1115  (opens in a new tab)\">Seeed Arduino ADS1115 <\/a>Library from Github.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\"><strong>Note<\/strong><br>Follow <a rel=\"noreferrer noopener\" aria-label=\"Wio Terminal's get started (opens in a new tab)\" href=\"https:\/\/wiki.seeedstudio.com\/Wio-Terminal-Getting-Started\/\" target=\"_blank\">Wio Terminal&#8217;s getting started<\/a> before the following these steps. <\/p>\n\n\n\n<p><strong>Step 2.<\/strong> Download the example code <a href=\"https:\/\/github.com\/Seeed-Studio\/Seeed_Arduino_Sketchbook\/tree\/master\/examples\/WioTerminal-ADS1115\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\">here<\/a>.<\/p>\n\n\n\n<p><strong>Step 3.<\/strong> Upload the demo. If you do not know how to upload the code, please check <a href=\"https:\/\/wiki.seeedstudio.com\/Upload_Code\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"How to upload code (opens in a new tab)\">How to upload code<\/a>.<\/p>\n\n\n\n<p><strong>Step 4.<\/strong> Adjust the rotary sensor and you will see the\ncorresponding voltage values on Wio Terminal&#8217;s LCD screen:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/WT-ADS1115.gif\" alt=\"\" class=\"wp-image-33748\" width=\"574\" height=\"323\"\/><\/figure><\/div>\n\n\n\n<p>Since this is a 16-bit ADC, the range of discrete analog values is 2^16 = 65536 and when you rotate the rotary angle sensor, the analog voltages are converted into digital voltages in the range 0 \u2013 65535.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>We hope you got a clear understanding of ADC and we hope you would incorporate an ADC in your next project in order to get accurate results from your analog sensors. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application?<\/p>\n","protected":false},"author":141,"featured_media":33792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[1146,1363,1362,142],"class_list":["post-33719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-adc","tag-analog","tag-digital","tag-open-hardware"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio<\/title>\n<meta name=\"description\" content=\"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let&#039;s look at what exactly is ADC, to begin with.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let&#039;s look at what exactly is ADC, to begin with.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-16T09:47:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-07T08:57:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lakshan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lakshan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/\",\"name\":\"Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png\",\"datePublished\":\"2020-06-16T09:47:43+00:00\",\"dateModified\":\"2021-07-07T08:57:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\"},\"description\":\"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let's look at what exactly is ADC, to begin with.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why Do You Need an Analog-to-Digital Converter (ADC)?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\",\"name\":\"Lakshan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"caption\":\"Lakshan\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio","description":"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let's look at what exactly is ADC, to begin with.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/","og_locale":"en_US","og_type":"article","og_title":"Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio","og_description":"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let's look at what exactly is ADC, to begin with.","og_url":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2020-06-16T09:47:43+00:00","article_modified_time":"2021-07-07T08:57:16+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png","type":"image\/png"}],"author":"Lakshan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lakshan","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/","url":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/","name":"Why Do You Need an Analog-to-Digital Converter (ADC)? - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png","datePublished":"2020-06-16T09:47:43+00:00","dateModified":"2021-07-07T08:57:16+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5"},"description":"You might be thinking, when would I need an Analog-to-Digital Converter (ADC) in my application? But do you know ADC is far more common than you think! Let's look at what exactly is ADC, to begin with.","breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/06\/16\/why-do-you-need-an-analog-to-digital-converter-adc-m\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Why Do You Need an Analog-to-Digital Converter (ADC)?"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5","name":"Lakshan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","caption":"Lakshan"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"}]}},"modified_by":"Lily","views":40814,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png",1200,675,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-80x80.png",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-300x169.png",300,169,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-768x432.png",640,360,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-1030x579.png",640,360,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png",1200,675,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png",1200,675,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png",32,18,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3.png",1200,675,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-936x675.png",936,675,true],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-1024x576.png",1024,576,true],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-720x380.png",720,380,true],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/cover-3-675x450.png",675,450,true]},"author_info":{"display_name":"Lakshan","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/33719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=33719"}],"version-history":[{"count":16,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/33719\/revisions"}],"predecessor-version":[{"id":39008,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/33719\/revisions\/39008"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/33792"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=33719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=33719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=33719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}