Project #4

Definitely not Music

Yeow! This invention is going to be heaps of fun. You know what music is, right? Well, the noise we’re creating today is as far from that as you can get – it’s definitely not music. But we won’t spoil the surprise too much for you.

Important safety warning

This project will create a loud, annoying, high-pitched sound. We strongly advise the use of hearing protection (earmuffs or earplugs) when working in close proximity to this project.

Parts & wiring

Do you know what’s definitely not music? What you’re about to build. In fact, it’s probably as far from music as you can get. It’s so annoying that we even had problems testing the program. It’s just that bad.

What you’ll need for this project

To build this project, you will be using the following components:

Brain Board


How to connect the parts

To wire up this project, you’ll need the Brain Board and buzzer. To connect your buzzer, slide its pins into the board as shown – the positive leg should go in PIN 11 and the negative leg should go in GND.

Hover over the PLUS signs for extra tips

This is the positive leg of the buzzer. It will have a ‘+’ sign on top of it and will also be longer than the other leg.
Don’t forget to plug the board into your computer with the included USB cable.

The final program

Here’s the code we’ll be using to program this invention.
int buzzer = 11;

void setup() {
  // put your setup code here, to run once:
  pinMode(buzzer, OUTPUT);

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(buzzer, random(2));