{"id":55,"date":"2025-12-19T16:28:51","date_gmt":"2025-12-19T16:28:51","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_alhallak\/?p=55"},"modified":"2025-12-19T16:28:51","modified_gmt":"2025-12-19T16:28:51","slug":"ive-worked-on-the-little-finch-robot-free-friday-12-10-2025","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_alhallak\/2025\/12\/19\/ive-worked-on-the-little-finch-robot-free-friday-12-10-2025\/","title":{"rendered":"I&#8217;ve worked on the little Finch robot. free friday 12\/10\/2025"},"content":{"rendered":"\n<p>added extra moves and lights, it can detect sounds to start off too.<\/p>\n\n\n\n<p>it&#8217;s a masterpiece<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from BirdBrain import Finch\nimport time\n \nbird = Finch()\n \n \n \nprint(\"Sound: \", bird.getSound())\n \nbird.getSound()\nwhile True:\n \n    \n    while True:\n        if bird.getSound() &lt;= 35:\n            break   \n        bird.setTail(\"all\",100,0,0)\n        bird.playNote(100,9.9)\n        bird.setMotors(90, 20) #1st num was 85\n        time.sleep(2.2)\n        bird.stopAll()\n        bird.setTail(\"all\",0,0,100)\n        bird.setMove('F', 50, 100)\n        bird.playNote(60,0.5)\n        bird.setMove('B', 45, 100)\n        # Spin\n        bird.setTurn('R', 180, 60)\n        time.sleep(0.2)\n        bird.setMove('B', 70, 60)\n        bird.playNote(60,0.5)\n        bird.stopAll()\n        bird.setTail(\"all\",100,0,0)\n        bird.setMotors(-100, 100)\n        time.sleep(3)\n        bird.setMotors(10, 100)\n        time.sleep(2.2)\n        bird.setMove('B', 60, 100)\n        bird.playNote(60,0.5)\n        bird.stopAll()\n        bird.setTail(\"all\",0,100,0)\n\n\n        #ending\n        bird.setMotors(1, 90)\n        time.sleep(1)\n        bird.stopAll()\n        bird.setMotors(100,-10)\n        bird.setTail(\"all\", 50,30,1)\n        bird.setMotors(1, 90)\n        time.sleep(1.2)\n        bird.setMotors(80,1)\n        bird.setTail(\"all\", 10,60,10)\n\n <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>added extra moves and lights, it can detect sounds to start off too. it&#8217;s a masterpiece<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/55\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}