{"id":3794,"date":"2023-10-19T03:02:56","date_gmt":"2023-10-19T03:02:56","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3794"},"modified":"2023-11-03T08:28:00","modified_gmt":"2023-11-03T08:28:00","slug":"interfacing-ldr-sensor-to-vega-aries-boards","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-ldr-sensor-to-vega-aries-boards\/","title":{"rendered":"Interfacing LDR Sensor to VEGA ARIES Boards"},"content":{"rendered":"\n<p>This tutorial is about interfacing the LDR sensor module with&nbsp;<strong>ARIES v3 Board<\/strong>. The LDR is definitely the most popular and cheap light sensor in robotics. The sensor is also known as a photo resistor due to its resistance that varies with the amount of light falling on it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LM393 Optical Photosensitive LDR Sensor Module<\/h2>\n\n\n\n<p>LDR sensor module is used to detect the intensity of light. It has both analog output pin and digital output pin labeled AO and DO, respectively. When there is light, the resistance of LDR will become low according to the intensity of light. The greater the intensity of light, the lower the resistance of LDR. The sensor module has a potentiometer knob that can be adjusted to change the sensitivity of LDR towards the light. These LDRs or Photo resistors work on the principle of Photo Conductivity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/kit_ky018_4pin_1.jpg\" alt=\"\" class=\"wp-image-3795\" style=\"width:279px;height:279px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/kit_ky018_4pin_1.jpg 600w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/kit_ky018_4pin_1-300x300.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/kit_ky018_4pin_1-150x150.jpg 150w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\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 href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">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>USB type C to USB type A cable<\/li>\n\n\n\n<li>LDR sensor<\/li>\n\n\n\n<li>Jumper Wires<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/LDR-1-1024x605.png\" alt=\"\" class=\"wp-image-3894\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/LDR-1-1024x605.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/LDR-1-300x177.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/LDR-1-768x454.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/LDR-1.png 1169w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>LDR sensor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>VCC<\/td><td>3V3<\/td><\/tr><tr><td>A0\/AOUT<\/td><td>A0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of LDR sensor &amp; ARIES v3.0 Board<\/em><\/strong><\/figcaption><\/figure>\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 href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">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&nbsp;<strong>Tools -&gt; Flash Mode -&gt; Enabled<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA FLASHER from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA FLASHER<\/strong><\/li>\n\n\n\n<li>Also select appropriate port from\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Port\u00a0-> COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"630\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-16.png\" alt=\"\" class=\"wp-image-4430\" style=\"aspect-ratio:1.5269841269841269;width:617px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-16.png 962w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-16-300x196.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-16-768x503.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/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;<strong>-&gt;&nbsp;ADC-&gt;LDR_Sensor<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-181634-1024x585.png\" alt=\"\" class=\"wp-image-3798\" style=\"width:595px;height:340px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-181634-1024x585.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-181634-300x171.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-181634-768x438.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-181634.png 1170w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Finally <strong>Upload<\/strong> the code to ARIES v3.0 board<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\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\/10\/2-1024x576.jpg\" alt=\"\" class=\"wp-image-3948\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2-1024x576.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2-300x169.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2-768x432.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2-1536x864.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2-2048x1152.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This demo reads the LDR value and turns LED ON when LDR senses darkness. The analog readings corresponding to the light and darkness will be displayed in serial monitor. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"648\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5.png\" alt=\"\" class=\"wp-image-3949\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5.png 1002w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-300x194.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-768x497.png 768w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"800\" style=\"aspect-ratio: 1280 \/ 800;\" width=\"1280\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/2.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial is about interfacing the LDR sensor module with&nbsp;ARIES v3 Board. The LDR is definitely the most popular and cheap light sensor in robotics. The sensor is also known as a photo resistor due to its resistance that varies with the amount of light falling on it. LM393 Optical Photosensitive LDR Sensor Module LDR [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":3948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,98],"tags":[60,95,76,7,77,31,24],"class_list":["post-3794","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aries-with-arduinoide","category-training-2","tag-adc","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\/3794","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=3794"}],"version-history":[{"count":12,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3794\/revisions"}],"predecessor-version":[{"id":4431,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3794\/revisions\/4431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/3948"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}