0% found this document useful (0 votes)
38 views22 pages

Chapter 8 LiteBee Buzzer

Uploaded by

JimmyRose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views22 pages

Chapter 8 LiteBee Buzzer

Uploaded by

JimmyRose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Play a song

Buzzer module

The buzzer is a specially designed extension


for LiteBee to play music. It could make
sounds of various frequencies by vibration.

Set the scale of Buzzer as ** , time value as ** beat(0.5s )


Sheet music

If we want to play music with the


drone, we have to understand the
Sheet music. After that, we can
program a song accurately.
Music Metre

In music, meter refers to the regularly recurring patterns and accents such as bars and beats. Unlike
rhythm, metric onsets are not necessarily sounded, but are nevertheless implied by the performer (or
performers) and expected by the listener.
Meter is related to and distinguished from pulse, rhythm (grouping), and beats: It is the measurement
of the number of pulses between more or less regularly recurring accents.
Music Tempo

In musical terminology, the tempo is the speed or pace of a


given piece.

Tempo Beats/Mins Tempo Beats/Mins

Grave 40 Allegretto 108


Largo 44 Allegro 132
LentoAdagio 56 Vivo 152
Larghetto 60 Vivace 160
Andante 66 Presto 189
Andantino 69 Prestissimo 210
Moderato 88
Music Note

Basic note: In music, a note is a symbol denoting a


musical sound.
Notes can represent the pitch and duration of a
sound in musical notation. A note can also
represent a pitch class.
Music Scale

In music theory, a scale is any set of musical notes ordered by fundamental frequency
or pitch.
Relative to a choice of a certain tonic, the notes of a scale are often labeled with
numbers recording how many scale steps above the tonic they are. For example, the
notes of the C major scale (C, D, E, F, G, A, B) can be labeled {1, 2, 3, 4, 5, 6, 7},
reflecting the choice of C as a tonic.
Sheet Music in LiteBeeGo

In LiteBeeGo, notes are marked by litters+numbers


Litters represent scale
Numbers represent octave
For example, C4 means Middle C
Sheet Music in LiteBeeGo

So we can mark “jingle bell” as follow:

D4 B4 A4 G4 | D4 D4 | D4 B4 A4 G4 | E4 E4|
E4 C5 B4 A4 | F4 F4 | D5 D5 C5 A4 | B4 |
D4 B4 A4 G4 | D4 D4 | D4 B4 A4 G4 | E4 E4|
D4 B4 A4 G4 | D5 D5 D5 D5| E5 D5 C5 A4 | G4 |

Note Type Name of Note Beats Duration


Semi-breve 4 beats 2s
Dotted Minim 3 beats 1.5s
Minim 2 beats 1s
Crotchet 1 beats 0.5s
Code the notes

The buzzer play sound of note d4 for 1 beat last 0.5s

The buzzer play sound of note E4 for 1 beat last 1s

The buzzer play sound of note F4 for 3 beat last 1.5s

The buzzer play sound of note B4 for 4 beat last 2s


Then we can program 4 lines of sheet music as
Music in LiteBeeGo follows in LiteBeeGo
Connect the Buzzer

1 2 3
Play the music
编程任务
Connect the drone with LiteBeeGo

Step 1: Turn the controller on, and connect the controller with a computer by micro USB

Step 2: Match up the drone with controller

Step 3: In LiteBeeGo, Click the “COM 1 ▲“ and choose COM 3, then click “unconnected
▲”, choose to connect the radio transmitter

Step 4: Press the key k-0 to allow the code to control the drone
Play the music
编程任务

Bring those codes as a whole


program and double click it to
run it and play the music.
Practice
编程任务

To play the song “twinkle twinkle, little star” with a


drone by programming, and setting the key “space” as the
trigger key.

Write down Sheet Music in the way of coding before starting


to program.
Sheet Music
Simplify the sheet

C4 C4 G4 G4 | A4 A4 G4 | F4 F4 E4 E4 | D4 D4 C4 |

G4 G4 F4 F4 | E4 E4 D4 | G4 G4 F4 F4 | E4 E4 D4 |

C4 C4 G4 G4 | A4 A4 G4 | F4 F4 E4 E4 | D4 D4 C4 |
Reference
Task
1 ) To play the song “Ode of Joy” with a drone by programming

Outline the program:


Tips
Simplify the Sheet Music into a simple one(letters and numbers)
Duplicate the repetitive code for greater efficiency
Sheet Music

There are some rests in the sheet music.


The followings are what they mean.
Think about it

1 ) Why the Buzzer could play music ?

2 ) Is it possible to make a symphony by a few drones?


If possible, how?

3 ) Is there any difficulty you met during programming?


What is it? and how did you resolve it?
Thanks
Thanks

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy