{"id":2475,"date":"2023-08-08T05:41:11","date_gmt":"2023-08-08T05:41:11","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2475"},"modified":"2023-08-08T05:41:59","modified_gmt":"2023-08-08T05:41:59","slug":"interfacing-rain-sensor-with-aries-v3-0","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-rain-sensor-with-aries-v3-0\/","title":{"rendered":"Interfacing Rain Sensor with ARIES v3.0"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface a rain sensor with ARIES V3 board. A rain sensor is a device that can be used for rainfall detection.&nbsp;<\/p>\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 Microcontroller<\/li>\n\n\n\n<li>Rain sensor<\/li>\n\n\n\n<li>100 Ohm resistor<\/li>\n\n\n\n<li>Jumper wires<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Rain Sensor<\/h2>\n\n\n\n<p>The rain sensor is a resistive dipole that shows less resistance when wet and more resistance when dry. When there is no rain drop on board, it increases the Resistance so we gets high voltage according to V=IR.When rain drop is present, it reduces the resistance because water is a conductor of electricity and presence of water connects nickel lines in parallel so reduces resistance and reduces voltage drop across it.<\/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\/08\/hl83-1.png\" alt=\"\" class=\"wp-image-2478\" width=\"168\" height=\"179\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hl83-1.png 720w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/hl83-1-281x300.png 281w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/figure>\n\n\n\n<p>The&nbsp;<strong>rain sensor<\/strong>&nbsp;has two pins. Connect one end of rain sensor  to 3.3V of ARIES board. Connect other end of rain sensor to A0 pin of ARIES board through a 100 ohm resistor. Connect other end of the 100 ohm resistor to GND pin of ARIES.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Rain Sensor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>One end<\/td><td>3.3V<\/td><\/tr><tr><td>Other end<\/td><td>A0<\/td><\/tr><tr><td><strong>100 Ohm Resistor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>One end<\/td><td>Rain sensor &amp; A0<\/td><\/tr><tr><td>Other end<\/td><td>GND<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of rain sensor Module &amp; ARIES v3.0 Board<\/strong><\/em>  <\/figcaption><\/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=\"573\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainSensor-1024x573.png\" alt=\"\" class=\"wp-image-2480\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainSensor-1024x573.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainSensor-300x168.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainSensor-768x429.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainSensor.png 1184w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong><em>Connection Diagram for rain sensor with ARIES v3.0<\/em><\/strong><\/p>\n\n\n\n<p>Now, for powering 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 micro 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<br><\/h2>\n\n\n\n<p>Here we are using Arduino IDE 1.8.19 in Ubuntu OS for testing the code.<\/p>\n\n\n\n<p>Open Arduino IDE<\/p>\n\n\n\n<p>Go to Tools -&gt; Board -&gt; VEGA Processor ARIES Boards -&gt; Select ARIES v3<\/p>\n\n\n\n<p>Go to Tools -&gt; Programmer -&gt; Select VEGA XMODEM<\/p>\n\n\n\n<p>Connect the ARIES v3 board to PC<\/p>\n\n\n\n<p>Go to Tools -&gt; Port -&gt; Select the appropriate port<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1.png\" alt=\"\" class=\"wp-image-2404\" width=\"312\" height=\"182\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1.png 695w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/tool_port_v3-1-300x175.png 300w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v3 -&gt;ADC -&gt; Open&nbsp;<strong>RainSensor&nbsp;<\/strong>example<\/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\/08\/rain_ex.png\" alt=\"\" class=\"wp-image-2482\" width=\"306\" height=\"207\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rain_ex.png 924w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rain_ex-300x203.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rain_ex-768x519.png 768w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/figure>\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\/08\/rainop-1-1024x677.png\" alt=\"\" class=\"wp-image-2485\" width=\"420\" height=\"278\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainop-1-1024x677.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainop-1-300x198.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainop-1-768x508.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainop-1.png 1189w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/figure>\n\n\n\n<p>Once you\u2019ve completed the code, upload it to your ARIES v3.0 board using the Arduino IDE.&nbsp;Wait until the program is uploaded. After completing the uploading the program will start to execute. Once the code is uploaded you can try putting some water drops on the rain sensor surface and observe the changes happening to the values in serial monitor. Care should be taken to drop water only on the rain sensor surface otherwise it will damage the circuit. <\/p>\n\n\n\n<p>This demo will detect the presence of Rain based on the water that falls on the sensor. If there is no Rain then you can see &#8220;No Rain&#8221; on the serial monitor. If the water content falling on the sensor is beyond the threshold then it will print as &#8220;Moderate Rain&#8221; or &#8220;Heavy Rain&#8221; on the serial monitor.You can adjust the threshold value for rain detection, in the program, based on your requirements.<\/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\/08\/rainOp.png\" alt=\"\" class=\"wp-image-2484\" width=\"556\" height=\"328\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainOp.png 964w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainOp-300x177.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/rainOp-768x454.png 768w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface a rain sensor with ARIES V3 board. A rain sensor is a device that can be used for rainfall detection.&nbsp; Components Required Rain Sensor The rain sensor is a resistive dipole that shows less resistance when wet and more resistance when dry. When there is [&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,7,77,31,24],"class_list":["post-2475","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-analog-out","tag-aries-v3-board","tag-cdac","tag-thejas-32","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2475","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=2475"}],"version-history":[{"count":8,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2475\/revisions"}],"predecessor-version":[{"id":2491,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2475\/revisions\/2491"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}