{"id":2185,"date":"2022-10-17T22:34:22","date_gmt":"2022-10-17T21:34:22","guid":{"rendered":"https:\/\/helpmyphysics.co.uk\/wordpress\/?p=2185"},"modified":"2022-10-17T22:38:19","modified_gmt":"2022-10-17T21:38:19","slug":"using-the-bbc-microbit-to-code-frequency-generator","status":"publish","type":"post","link":"https:\/\/helpmyphysics.co.uk\/wordpress\/?p=2185","title":{"rendered":"Using the BBC Microbit to code frequency generator"},"content":{"rendered":"<p>If you are investigating sound frequency while studying waves and have access to a BBC Microbit then have some fun coding to hear the octave of a frequency.<br \/>\nAn octave means that the frequency is doubled. Pressing one button creates a sound of frequency 256 Hz and pressing the other double the frequency to 512 Hz.<br \/>\nHave some computing physics fun with the microbit.<\/p>\n<p><a href=\"https:\/\/helpmyphysics.co.uk\/wordpress\/wp-content\/uploads\/2022\/10\/Screenshot-2022-10-17-19.04.35.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/helpmyphysics.co.uk\/wordpress\/wp-content\/uploads\/2022\/10\/Screenshot-2022-10-17-19.04.35.png\" alt=\"\" width=\"942\" height=\"501\" class=\"aligncenter size-full wp-image-2186\" srcset=\"https:\/\/helpmyphysics.co.uk\/wordpress\/wp-content\/uploads\/2022\/10\/Screenshot-2022-10-17-19.04.35.png 942w, https:\/\/helpmyphysics.co.uk\/wordpress\/wp-content\/uploads\/2022\/10\/Screenshot-2022-10-17-19.04.35-300x160.png 300w, https:\/\/helpmyphysics.co.uk\/wordpress\/wp-content\/uploads\/2022\/10\/Screenshot-2022-10-17-19.04.35-768x408.png 768w\" sizes=\"auto, (max-width: 942px) 100vw, 942px\" \/><\/a><\/p>\n<p>The above code can be typed into the microbit python editor. <\/p>\n<p><a href=\"https:\/\/python.microbit.org\/v\/3\/reference\" rel=\"noopener\" target=\"_blank\">Microbit python editor here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are investigating sound frequency while studying waves and have access to a BBC Microbit then have some fun coding to hear the octave of a frequency. An octave means that the frequency is doubled. Pressing one button creates a sound of frequency 256 Hz and pressing the other double the frequency to 512 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,4,15],"tags":[],"class_list":["post-2185","post","type-post","status-publish","format-standard","hentry","category-physicsnational5","category-science-classes","category-standard-grade-physics"],"_links":{"self":[{"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2185"}],"version-history":[{"count":5,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2185\/revisions"}],"predecessor-version":[{"id":2192,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2185\/revisions\/2192"}],"wp:attachment":[{"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helpmyphysics.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}