[vc_row][vc_column][vc_column_text]
Buzzer is an integration structure electronic acoustic, widely used in computer, printer, photocopiers, alarm, electronic toys,
automotive electronic equipment, telephone, timer and other electronic products for voice devices.
In this post,we demo simple tunes with piezoelectric buzzer.[/vc_column_text][vc_tour][vc_tab title=”The principle” tab_id=”1393463747-1-71″][vc_column_text]One tune is composed of lots of musical notes, a musical note corresponds to a certain frequency signal.
So when output the corresponding frequency, can output the corresponding tune.
And make the time of notes last long or short, it will make up a tune.
Following table is the correspond frequency musical notes
Musical notes divide into a tap, half tap, 1/4 tap, 1/8tap, so we set the time of one tap to be 1s, half tap to be 0.5s, 1/4 to be 0.25s, 1/8 to be 0.125 and so on.
The musical is coming out afer we set the time for every musical note tap .[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1393463747-2-21″][vc_column_text]
Buzzer Pin 2 – > Ard uino Pin5
Buzzer Pin 2 – > Ard uino GND[/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1393522677016-2-5″][vc_column_text]Download buzzle[/vc_column_text][/vc_tab][vc_tab title=”Test results” tab_id=”1393522678094-3-1″][vc_column_text]Download the code and run, a familiar song ‘ gourd doll’ will come out.5 seconds later it will loop again.[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.