Build this project with

The Amazing Annoyatron

Shop now
The Amazing Annoyatron is an award-winning tech kit that teaches kids how to code.

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:

UNO R3 Board & USB Cable
UNO R3 Board & USB Cable
Piezo Buzzer

How to connect the parts

To wire up this project, you’ll need your UNO R3 boarding buzzer. To connect your buzzer, slide its pins into the Arduino 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));



How many seconds after turning on this invention will it take before someone yells, “Turn that thing off”? Hide somewhere sneaky and share your videos on social media…