{"id":989,"date":"2023-01-26T10:35:51","date_gmt":"2023-01-26T10:35:51","guid":{"rendered":"http:\/\/learnlearn.uk\/microbit\/?page_id=989"},"modified":"2023-02-08T10:05:28","modified_gmt":"2023-02-08T10:05:28","slug":"microbit-light-dependent-resistor-experiment","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/","title":{"rendered":"Microbit Light Dependent Resistor Experiment"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Introduction<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Microbit LDR Experiment<\/h3>\n<div id=\"attachment_1013\" style=\"width: 310px\" class=\"wp-caption alignright\"><img aria-describedby=\"caption-attachment-1013\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1013\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-300x186.jpg\" alt=\"\" width=\"300\" height=\"186\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-300x186.jpg 300w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr.jpg 500w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><p id=\"caption-attachment-1013\" class=\"wp-caption-text\">Light Dependent Resistors Allow the Microbit to detect light levels<\/p><\/div>\n<p>In this experiment we will using a Light Dependent Resistor, a simple<strong> analog input sensor<\/strong>,\u00a0 as an input device to measure light levels.<\/p>\n<p>The components you will need are:<\/p>\n<ul>\n<li>A Microbit<\/li>\n<li>Some Crocodile Clip to jumper cables<\/li>\n<li>Jumper Wires<\/li>\n<li>A breadboard<\/li>\n<li>10K Ohm Resistor<\/li>\n<li>A Light Dependent Resistor<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Wiring<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Wiring Diagram<\/h3>\n<div id=\"attachment_979\" style=\"width: 760px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb.png\"><img aria-describedby=\"caption-attachment-979\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-979\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb-1024x393.png\" alt=\"Microbit LDR Wiring Diagram light sensor KS3\" width=\"750\" height=\"288\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb-1024x393.png 1024w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb-300x115.png 300w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb-768x295.png 768w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/Mirobit-LDR_bb.png 1656w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><p id=\"caption-attachment-979\" class=\"wp-caption-text\">Click to enlarge<\/p><\/div>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Circuit<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Circuit Diagram<\/h3>\n<div id=\"attachment_980\" style=\"width: 539px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-Circuit.png\"><img aria-describedby=\"caption-attachment-980\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-980\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-Circuit.png\" alt=\"\" width=\"529\" height=\"502\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-Circuit.png 827w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-Circuit-300x284.png 300w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-Circuit-768x728.png 768w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/a><p id=\"caption-attachment-980\" class=\"wp-caption-text\">The circuit diagram for connecting an LDR to the Microbit<\/p><\/div>\n\n<\/div><h2 class=\"tabtitle\">Code<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Microbit Blockly Code<\/h3>\n<p><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-blockly-code.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-981\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-blockly-code.png\" alt=\"\" width=\"588\" height=\"305\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-blockly-code.png 956w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-blockly-code-300x156.png 300w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/LDR-blockly-code-768x398.png 768w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Challenge 1<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Challenge 1 &#8211; Smiley Sad<\/h3>\n<p>For challenge 1 you need to adapt your code so that the when somebody places their hand over the sensor it displays a sad face, when they take their hand away it displays a happy face.<\/p>\n<p>Here&#8217;s some code to help you get started<\/p>\n<p><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-challenge-1-hint-code.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-984\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-challenge-1-hint-code.png\" alt=\"\" width=\"432\" height=\"372\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-challenge-1-hint-code.png 432w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-challenge-1-hint-code-300x258.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">2<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Challenge 2 &#8211; Light Synthesizer<\/h3>\n<p>Did you know you can use the light levels from the ldr to make a hand controlled musical instrument?<\/p>\n<p>See if you can get the Microbit to play a tone that varies depending on the light level!<\/p>\n<p><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ring-synth-challenge.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-985\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ring-synth-challenge.png\" alt=\"\" width=\"493\" height=\"278\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ring-synth-challenge.png 493w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ring-synth-challenge-300x169.png 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">3<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Challenge 3 &#8211; Light Meter<\/h3>\n<p>Can you get the Microbit to display the light levels using the 5 bars of the LED matrix instead of displaying a number?<\/p>\n<p><a href=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-986\" src=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels-1024x265.png\" alt=\"\" width=\"750\" height=\"194\" srcset=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels-1024x265.png 1024w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels-300x78.png 300w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels-768x199.png 768w, https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-light-levels.png 1565w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">4<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Challenge 4 &#8211; Automatic Street Light Simulator<\/h3>\n<p>Many street lights use light dependent resistors to turn on the street lights at night time. Can you create your own simulation of this so that an LED turns on when there is no light coming into the LDR?<\/p>\n<p>You will need use what you learned from experiment one in order to complete this challenge!<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Resources<\/h3>\n<p>Printable Worksheet<\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light levels. The components you will need are: A Microbit Some Crocodile Clip to jumper cables Jumper Wires A breadboard 10K Ohm Resistor A Light Dependent Resistor &nbsp; Wiring Diagram &nbsp;&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Microbit Light Dependent Resistor Experiment<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk<\/title>\n<meta name=\"description\" content=\"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk\" \/>\n<meta property=\"og:description\" content=\"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\" \/>\n<meta property=\"og:site_name\" content=\"Microbit\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-08T10:05:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-300x186.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\",\"url\":\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\",\"name\":\"Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#website\"},\"datePublished\":\"2023-01-26T10:35:51+00:00\",\"dateModified\":\"2023-02-08T10:05:28+00:00\",\"description\":\"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Microbit Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/microbit\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microbit Light Dependent Resistor Experiment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#website\",\"url\":\"https:\/\/learnlearn.uk\/microbit\/\",\"name\":\"Microbit\",\"description\":\"Tutorials, Projects &amp; Challenges\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/microbit\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#organization\",\"name\":\"Microbit\",\"url\":\"https:\/\/learnlearn.uk\/microbit\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2019\/06\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2019\/06\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"Microbit\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/microbit\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk","description":"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light","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:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/","og_locale":"en_GB","og_type":"article","og_title":"Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk","og_description":"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light","og_url":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/","og_site_name":"Microbit","article_modified_time":"2023-02-08T10:05:28+00:00","og_image":[{"url":"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2023\/01\/ldr-300x186.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/","url":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/","name":"Microbit Light Dependent Resistor Experiment - Microbit - LearnLearn.co.uk","isPartOf":{"@id":"https:\/\/learnlearn.uk\/microbit\/#website"},"datePublished":"2023-01-26T10:35:51+00:00","dateModified":"2023-02-08T10:05:28+00:00","description":"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/microbit\/microbit-light-dependent-resistor-experiment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Microbit Unit Home","item":"https:\/\/learnlearn.uk\/microbit\/"},{"@type":"ListItem","position":2,"name":"Microbit Light Dependent Resistor Experiment"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/microbit\/#website","url":"https:\/\/learnlearn.uk\/microbit\/","name":"Microbit","description":"Tutorials, Projects &amp; Challenges","publisher":{"@id":"https:\/\/learnlearn.uk\/microbit\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/microbit\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/microbit\/#organization","name":"Microbit","url":"https:\/\/learnlearn.uk\/microbit\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/microbit\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2019\/06\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/microbit\/wp-content\/uploads\/sites\/2\/2019\/06\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"Microbit"},"image":{"@id":"https:\/\/learnlearn.uk\/microbit\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/microbit\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Microbit LDR Experiment In this experiment we will using a Light Dependent Resistor, a simple analog input sensor,\u00a0 as an input device to measure light levels. The components you will need are: A Microbit Some Crocodile Clip to jumper cables Jumper Wires A breadboard 10K Ohm Resistor A Light Dependent Resistor &nbsp; Wiring Diagram &nbsp;&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/pages\/989"}],"collection":[{"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/comments?post=989"}],"version-history":[{"count":4,"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/pages\/989\/revisions"}],"predecessor-version":[{"id":1015,"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/pages\/989\/revisions\/1015"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/microbit\/wp-json\/wp\/v2\/media?parent=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}