I’ve worked on the little Finch robot. free friday 12/10/2025

added extra moves and lights, it can detect sounds to start off too.

it’s a masterpiece

from BirdBrain import Finch
import time
 
bird = Finch()
 
 
 
print("Sound: ", bird.getSound())
 
bird.getSound()
while True:
 
    
    while True:
        if bird.getSound() <= 35:
            break   
        bird.setTail("all",100,0,0)
        bird.playNote(100,9.9)
        bird.setMotors(90, 20) #1st num was 85
        time.sleep(2.2)
        bird.stopAll()
        bird.setTail("all",0,0,100)
        bird.setMove('F', 50, 100)
        bird.playNote(60,0.5)
        bird.setMove('B', 45, 100)
        # Spin
        bird.setTurn('R', 180, 60)
        time.sleep(0.2)
        bird.setMove('B', 70, 60)
        bird.playNote(60,0.5)
        bird.stopAll()
        bird.setTail("all",100,0,0)
        bird.setMotors(-100, 100)
        time.sleep(3)
        bird.setMotors(10, 100)
        time.sleep(2.2)
        bird.setMove('B', 60, 100)
        bird.playNote(60,0.5)
        bird.stopAll()
        bird.setTail("all",0,100,0)


        #ending
        bird.setMotors(1, 90)
        time.sleep(1)
        bird.stopAll()
        bird.setMotors(100,-10)
        bird.setTail("all", 50,30,1)
        bird.setMotors(1, 90)
        time.sleep(1.2)
        bird.setMotors(80,1)
        bird.setTail("all", 10,60,10)

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top