{"id":992,"date":"2022-07-22T09:56:13","date_gmt":"2022-07-22T09:56:13","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=992"},"modified":"2022-07-22T09:56:13","modified_gmt":"2022-07-22T09:56:13","slug":"dht11-temperature-humidity-sensor-with-aries-v2-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/dht11-temperature-humidity-sensor-with-aries-v2-board\/","title":{"rendered":"DHT11 Temperature Humidity Sensor with ARIES V2 BOARD"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface <strong>DHT11 Temperature Humidity Sensor<\/strong> with ARIES V2 board. Temperature humidity sensors are environmental sensors which measures <strong>temperature and humidity<\/strong> instantaneously. It is commonly used in industrial applications where temperature and humidity of environment affects the quality of the product. It is used in heating, ventilation and air conditioning systems and also by weather stations to predict weather conditions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DHT11 Temperature Humidity Sensor<\/h2>\n\n\n\n<p>DHT11 is a compact low cost sensor which senses temperature and relative humidity by using an in-built <strong>thermistor<\/strong> and <strong>capacitive humidity sensor<\/strong>. The humidity sensing capacitor has two electrodes with a moisture holding substrate as dielectric in between them. Whenever there is change in humidity value, capacitance changes and this change is processed to digital form. To measure temperature, the sensor uses <strong>Negative temperature coefficient<\/strong> thermistor, which decreases its resistance value with increase in temperature.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image.png\" alt=\"\" class=\"wp-image-993\" width=\"516\" height=\"388\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image.png 1000w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image-300x225.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image-768x576.png 768w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<p>The DHT11 has three pins: Vcc, Data and GND. Connect Vcc and GND to +3.3V and GND respectively of ARIES V2 board. Pull up the Data pin of DHT11 sensor to Vcc using a 4.7K resistor. Then connect the Data pin to GPIO0 of ARIES V2 board. Value of pull up resistor depends on the length of connecting cable. (<a href=\"https:\/\/www.mouser.com\/datasheet\/2\/758\/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf\" data-type=\"URL\" data-id=\"https:\/\/www.mouser.com\/datasheet\/2\/758\/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf\">Refer DHT11 sensor datasheet<\/a>)<\/p>\n\n\n\n<p>Now, for powering up the ARIES v2 board via 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 <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be pre-installed with VEGA SDK and Toolchain.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>DHT11<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">VCC<\/td><td class=\"has-text-align-center\" data-align=\"center\">3.3V<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">DATA<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO0*<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">GND<\/td><td class=\"has-text-align-center\" data-align=\"center\">GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>*connect pull up resistor across Data Pin of the DHT11 and Vcc of  the DHT11 sensor  and then connect to the GPIO0 of ARIES V2 board as shown below.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"559\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-20-11-16-17.png\" alt=\"\" class=\"wp-image-1810\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-20-11-16-17.png 774w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-20-11-16-17-300x217.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/07\/Screenshot-from-2022-07-20-11-16-17-768x555.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p class=\"has-medium-font-size\">After setting up the toolchain and SDK path environments, clean the executable using <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre id=\"block-98c3408c-130d-4e1c-9247-614ed2ea2608\" class=\"wp-block-code\"><code><strong>cd vega-sdk\/examples\/gpio\/DHT11_temperature_humidity_sensor<\/strong>\n<strong>make clean<\/strong><\/code><\/pre>\n\n\n\n<p>Build the example program for DHT11 temperature humidity sensor by using <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>make <\/strong><\/code><\/pre>\n\n\n\n<p>Before transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, execute the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo minicom aries<\/strong><\/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\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-15.png\" alt=\"\" class=\"wp-image-651\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-15.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-15-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-15-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Use <strong>CTRL+A S<\/strong> to enter file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/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\/2021\/07\/image-2.png\" alt=\"\" class=\"wp-image-995\" width=\"656\" height=\"153\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image-2.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/image-2-300x70.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n\n\n\n<p>In the next window, with <strong>space bar<\/strong> select the <strong>dht11_temperature_humidity_sensor<\/strong><strong>.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, 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>Present Temperature and humidity of the environment will be displayed in minicom UART terminal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"612\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-from-2021-07-09-12-27-41-1.png\" alt=\"\" class=\"wp-image-996\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-from-2021-07-09-12-27-41-1.png 878w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-from-2021-07-09-12-27-41-1-300x209.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-from-2021-07-09-12-27-41-1-768x535.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface DHT11 Temperature Humidity Sensor with ARIES V2 board. Temperature humidity sensors are environmental sensors which measures temperature and humidity instantaneously. It is commonly used in industrial applications where temperature and humidity of environment affects the quality of the product. It is used in heating, ventilation [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,20,15,14,1],"tags":[75,76,7,68,77,31,24],"class_list":["post-992","post","type-post","status-publish","format-standard","hentry","category-application-development","category-general","category-getting-started","category-tutorials","category-uncategorized","tag-aries-v2-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\/992","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=992"}],"version-history":[{"count":10,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/992\/revisions"}],"predecessor-version":[{"id":2151,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/992\/revisions\/2151"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}