{"id":15,"date":"2015-06-26T19:11:45","date_gmt":"2015-06-26T19:11:45","guid":{"rendered":"http:\/\/3.142.org.uk\/?p=15"},"modified":"2015-06-26T19:11:45","modified_gmt":"2015-06-26T19:11:45","slug":"intelligent-nightlights","status":"publish","type":"post","link":"https:\/\/3.142.org.uk\/index.php\/2015\/06\/26\/intelligent-nightlights\/","title":{"rendered":"Intelligent Nightlights"},"content":{"rendered":"<p>We completed a control technology project with my 8th Grade class this term. The students could choose from a range of tools and materials including<\/p>\n<ul>\n<li>Raspberry Pi<\/li>\n<li>Arduino<\/li>\n<li>Makey Makey<\/li>\n<li>Lego<\/li>\n<li>3D printed enclosures, or using a 3D extrusion pen<\/li>\n<\/ul>\n<p>So, we discussed what types of project they could make, and I mentioned an alarm system. Immediately they asked how this would be different from a simple burglar alarm project they had completed a few years earlier when learning about electricity.<\/p>\n<p>You&#8217;ve probably seen the experiment before, you make a simple pressure pad using card and some conductive material (could be wire, kitchen foil, conductive tape or even graphite pencil!). \u00a0When the surfaces are brought together, it completes a circuit with a battery and a buzzer.<\/p>\n<p>I responded by listing\u00a0the following modifications:<\/p>\n<ul>\n<li><em>Create a delay between the mat being stepped on, and the alarm sounding<\/em><\/li>\n<li><em>Change the buzzer sound to a recorded sample played via your computer or another device<\/em><\/li>\n<li><em>Change the volume of the sound to increase over time.<\/em><\/li>\n<li><em>Add\u00a0flashing lights<\/em><\/li>\n<li><em>Set a maximum time for the alarm to sound for<\/em><\/li>\n<li><em>Reset the alarm to replay after a suitable delay<\/em><\/li>\n<li><em>Use additional sensors to make the alarm effective in different contexts &#8211; eg a Hall effect sensor and a magnet fastened to a door<\/em><\/li>\n<\/ul>\n<p>To show my classes what was possible, I used a 3D extrusion pen to make some models.<\/p>\n<figure style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/3.142.org.uk\/images\/4lights.jpg\" alt=\"nightlights\" width=\"640\" height=\"480\" \/><figcaption class=\"wp-caption-text\">Four intelligent nightlights<\/figcaption><\/figure>\n<p>Starting with the house, I added an infra-red sensor so I could switch an LED embedded inside it on or off. We then changed this to a simple button which would light the house up when pressed, and switch off when not. We changed this to a delay, so that the house lights would switch on for a set number of seconds before turning off. Some of the students made their own houses and used capacitative touch sensors to trigger the lights coming on.<\/p>\n<p>Finally, we looked at using a light sensor &#8211; so that when it gets dark, the lights go on, by using three RGB LEDs switching on and off randomly.<\/p>\n<p>This meant you could make nightlights which cast interesting patterns on the wall as the colours of the LEDs change. My contributions included these three:<\/p>\n<figure style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/3.142.org.uk\/images\/snail1.jpg\" alt=\"snail\" width=\"640\" height=\"480\" \/><figcaption class=\"wp-caption-text\">Snail light<\/figcaption><\/figure>\n<figure style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/3.142.org.uk\/images\/alien1.jpg\" alt=\"alien\" width=\"640\" height=\"480\" \/><figcaption class=\"wp-caption-text\">Guard Monster<\/figcaption><\/figure>\n<figure style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/3.142.org.uk\/images\/shroom1.jpg\" alt=\"fly acgaric in plastic with LEDs\" width=\"640\" height=\"480\" \/><figcaption class=\"wp-caption-text\">Glowing toadstool<\/figcaption><\/figure>\n<p>The creative process doesn&#8217;t stop there though. We discussed using a microphone to make a noise activated light; using PWM pins on an Arduino to dim\/brighten the lights or phase from one colour to the next; adding a proximity sensor so that as someone approaches the light, it switches on or changes colour, and a buzzer that sounds if they get too close.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We completed a control technology project with my 8th Grade class this term. The students could choose from a range of tools and materials including Raspberry Pi Arduino Makey Makey Lego 3D printed enclosures, or using a 3D extrusion pen So, we discussed what types of project they could make, and I mentioned an alarm &hellip; <a href=\"https:\/\/3.142.org.uk\/index.php\/2015\/06\/26\/intelligent-nightlights\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Intelligent Nightlights<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-code-week","category-on-my-classroom-door"],"_links":{"self":[{"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":1,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":16,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions\/16"}],"wp:attachment":[{"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3.142.org.uk\/index.php\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}