Finch Song T
Copy and paste. not complete but can be run on the finch and make sounds.
use Libraries.Robots.BirdBrain.Finch
// This code is not complete. It will run on the Finch and do a rought version of the song.
// There are some problems with the code or the documentation. I will do the need data collection.
Finch finch
number d=0.35
number speed=3
number h = d*2
number w=d*4
number q = d
number e=d/2
number s =d/4
//START Motors
// A
repeat 2 times
finch:PlayNote(55, e)
finch:Pause(0.10)
finch:PlayNote(60, q)
finch:Pause(d/2)
finch:PlayNote(60, e)
//finch:Pause(d*4)
finch:PlayNote(58, d)
finch:Pause(d)
finch:PlayNote(62, d)
finch:Pause(d)
finch:PlayNote(58, d)
finch:Pause(d)
finch:PlayNote(60, d)
finch:Pause(d)
finch:PlayNote(55, d)
finch:Pause(d*3)
end
finch:Pause(d*3)
// B
finch:PlayNote(69,8)
finch:Pause(d)
finch:PlayNote(71,8)
finch:Pause(d)
finch:PlayNote(72,8)
finch:Pause(d)
finch:PlayNote(75,15)
finch:Pause(d)
finch:PlayNote(60,8)
finch:Pause(d)
finch:Disconnect()
Advanced Lesson 1
Advanced Lesson 1 edit for line numbers
Compass Sensory, Motors, Class & Main, Speech, Sounds, Finch buttons, Microbit display.
The program will set up the compass sensor with a fast spin, then display and speak and the compass points, It will pause if it senses true north and then resume. You end this program by pressing the A button on the Micro-bit.
This lesson can include information about earth’s magnet field and how birds and animals make use of the magnet field to navigate. Advanced Lesson do not include the picture of the Block Code. You can copy and paste this code into Quorum Studio to see it as a Block Code.
| don't copy | Advance Lesson 1 Copy and Past | |
|
1
|
use Libraries.Robots.BirdBrain.Finch |
Advanced Lessons
These lessons combine the Output and the Sensors. They longer and more complete and add additional Computer Science Concepts. One code per lesson is provided but other other code can preform these tasks and are valid.