{"id":79,"date":"2024-10-23T17:52:14","date_gmt":"2024-10-23T21:52:14","guid":{"rendered":"https:\/\/wp.stgeorges.bc.ca\/noahl\/?p=79"},"modified":"2024-10-29T23:40:09","modified_gmt":"2024-10-30T03:40:09","slug":"robotics-project-arduino-light-theremin","status":"publish","type":"post","link":"https:\/\/wp.stgeorges.bc.ca\/noahl\/2024\/10\/23\/robotics-project-arduino-light-theremin\/","title":{"rendered":"Robotics Project &#8211; Arduino Light Theremin"},"content":{"rendered":"\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-align-center wp-element-button\" href=\"https:\/\/www.youtube-nocookie.com\/embed\/BnB0ojdrqpw?si=Zk9iqZ1N2LyYPMz6\">Click Here for the Project Video<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"has-text-align-left\">For my first robotics project this year in Fusion, I followed the project book tutorials and made Project 6: Light Theremin. A light theremin is an electronic musical instrument that produces sound without physical contact. It uses electricity to produce two circuits, with pitch generated by the oscillators<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"310\" src=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/9E9E401C-8C67-4C88-BFA0-78E55FB2BFAB_4_5005_c.jpeg\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/9E9E401C-8C67-4C88-BFA0-78E55FB2BFAB_4_5005_c.jpeg 552w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/9E9E401C-8C67-4C88-BFA0-78E55FB2BFAB_4_5005_c-300x168.jpeg 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>For the code, I followed the instructions from the project book, however, I still had some issues with the code, so I used ChatGPT to help me debug the code. These were usually small mistakes, like having a missing closing &#8216;}&#8217; at the end of phrases.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\">The Circuit<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Components Needed<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino Motherboard<\/li>\n\n\n\n<li>Breadboard<\/li>\n\n\n\n<li>6x Cables<\/li>\n\n\n\n<li>Piezo<\/li>\n\n\n\n<li>Photoresistor<\/li>\n\n\n\n<li>10 Kilohmn Resistor <\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\">The Code <\/h4>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/pastebin.com\/6gEj0XRM\">Click Here for Code<\/a><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"143\" src=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM-1024x143.png\" alt=\"\" class=\"wp-image-84\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM-1024x143.png 1024w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM-300x42.png 300w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM-768x108.png 768w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM-1536x215.png 1536w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.40\u202fPM.png 1856w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"162\" src=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM-1024x162.png\" alt=\"\" class=\"wp-image-85\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM-1024x162.png 1024w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM-300x48.png 300w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM-768x122.png 768w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM-1536x243.png 1536w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.43.54\u202fPM.png 1868w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As seen in the inline comments, you have first to calibrate the light sensor. While calibrating, the sensor will take the highest and lowest light levels detected and use those as baselines for the piezo to react to.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-1024x588.png\" alt=\"\" class=\"wp-image-87\" srcset=\"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-1024x588.png 1024w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-300x172.png 300w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-768x441.png 768w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-1536x882.png 1536w, https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-content\/uploads\/sites\/13\/2024\/10\/Screenshot-2024-10-21-at-2.52.35\u202fPM-2048x1176.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Through this project, I demonstrated my skills in circuit building, as I built the circuit, and Arduino programming, shown through the code used to program the circuit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For my first robotics project this year in Fusion, I followed the project book tutorials and made Project 6: Light Theremin. A light theremin is an electronic musical instrument that produces sound without physical contact. It uses electricity to produce two circuits, with pitch generated by the oscillators For the code, I followed the instructions [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":5,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/posts\/79\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.stgeorges.bc.ca\/noahl\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}