{"id":796,"date":"2021-03-17T06:58:07","date_gmt":"2021-03-17T06:58:07","guid":{"rendered":"https:\/\/thinkerspace.my\/makerkit\/?p=796"},"modified":"2021-03-22T07:38:25","modified_gmt":"2021-03-22T07:38:25","slug":"tutorial-light-sensor","status":"publish","type":"post","link":"https:\/\/thinkerspace.my\/makerkit\/tutorial-light-sensor\/","title":{"rendered":"Tutorial Light Sensor"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221;][et_pb_row _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;3px|||||&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_blurb title=&#8221;First Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/tinker.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Open TinkerCode app in your browser<\/p>\n<p>Click <a href=\"https:\/\/app.tinkercode.my\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> to go to TinkerCode app!<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Second Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/2nd.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop setup block and adruino loop from Base Controller menu<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Third Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l3rd.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p><span>Create new variable with any names suitable from Variables menu\u00a0<\/span><\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Fourth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l4th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop the variable name&#8217;s block that you created<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Fifth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l5th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Go to Loops menu and drop &#8216;if &#8212; do&#8217; block under the variable block<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Sixth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l6th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Click the &#8216;setting&#8217; icon and drag else under if<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Seventh Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l7th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop DigitalWhite block from Adruino menu beside word &#8216;do&#8217;<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Eighth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l8th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Duplicate DigitalWrite block by right clicked at the block &gt; Duplicate. Next, set all pin follow the LED pin. Set Stat HIGH equal to ON and LOW equal to OFF<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Ninth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l9th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop the mathematical symbol block form Logic menu and choose &#8216;&lt;&#8216; symbol\u00a0<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Tenth Step &#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l10th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop number block form Math menu inside the mathematical symbol block and set range 900<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Eleventh Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l11th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop the variable block that you have created from Variable menu into the other side of mathematical symbol block<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Twelfth Step &#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/l12th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Drop AnalogRead block from Adruino menu and set pin to A7<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Thirteenth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/7th.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Plug in Maker Kit USB to your laptop or computer<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Fourteenth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/8th-1.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Set Board Type and Port in setting according your Maker Kit port. Next, click Update button<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Fifteenth Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/6thh-1.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>Finally, click upload button to upload your program to Maker Kit device<\/p>\n<p>[\/et_pb_blurb][et_pb_blurb title=&#8221;Awesome pop up says your program is all set. See the result!&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/9th-2.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;][\/et_pb_blurb][et_pb_blurb title=&#8221;Result&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/lresult.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||39px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;]<\/p>\n<p>All of LED will off at first and if have an object touch or cover the sensor, all LED will turn on<\/p>\n<p>[\/et_pb_blurb][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_video src=&#8221;https:\/\/youtu.be\/NliY3U-qUXs&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221;][\/et_pb_video][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221;][et_pb_row _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;3px|||||&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_blurb title=&#8221;First Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/tinker.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;] Open TinkerCode app in your browser Click here to go to TinkerCode app! [\/et_pb_blurb][et_pb_blurb title=&#8221;Second Step&#8221; image=&#8221;https:\/\/thinkerspace.my\/makerkit\/wp-content\/uploads\/2021\/03\/2nd.png&#8221; _builder_version=&#8221;4.8.2&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;|700|||||||&#8221; custom_margin=&#8221;||80px|||&#8221; border_width_all_image=&#8221;1px&#8221; border_color_all_image=&#8221;#000000&#8243;] Drop setup block and adruino loop from Base Controller menu [\/et_pb_blurb][et_pb_blurb title=&#8221;Third [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[13,10],"tags":[],"class_list":["post-796","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-makerkit-nano","category-tutorial"],"_links":{"self":[{"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/posts\/796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":7,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"predecessor-version":[{"id":1136,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/posts\/796\/revisions\/1136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/media\/1134"}],"wp:attachment":[{"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkerspace.my\/makerkit\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}