Alex Wulff
Published © GPL3+

The Annoy-O-Bug: A Chirping Light-Up Throwie

Stick this little electronic device practically anywhere and watch your friends go crazy as it beeps and blinks. They won't find it!

BeginnerFull instructions provided1 hour21,509
The Annoy-O-Bug: A Chirping Light-Up Throwie

Things used in this project

Hardware components

Custom fabricated PCB
OSH Park Custom fabricated PCB
Board Link: https://oshpark.com/projects/XoCU9Yxf
×1
Buzzer
Buzzer
×1
LED (generic)
LED (generic)
×1
Resistor 330 ohm
Resistor 330 ohm
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×1
CR2032 Holder
×1
ATtiny85
Microchip ATtiny85
×1
8-pin DIP socket
×1
Arduino UNO
Arduino UNO
Used only for programming the ATtiny
×1
Capacitor 10 µF
Capacitor 10 µF
Used only for programming the ATtiny
×1

Software apps and online services

Autodesk circuits.io

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

PCB Design

Code

Annoying Circuit

Arduino
//Code produced by Alex Wulff: http://www.AlexWulff.com

#define BUZZ      0
#define LED       1
#define INITIAL   5000
//10,000 ms yields a total sequence time of 46.5 Seconds
//20,000 ms yields a total sequence time of 91.5 Seconds
//30,000 ms yields a total sequence time of 136.5 Seconds
//You get the pattern. Each 10 seconds yields another 45
//seconds of total time on the sequence.

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

  //Flash the light to make sure the device is working
  for (int i = 0; i < 5; i++) {
    digitalWrite(LED, HIGH);
    delay(200);
    digitalWrite(LED, LOW);
    delay(200);
  }
}

void loop() {
  for (int i = 1; i < 50; i++) {
    digitalWrite(BUZZ, HIGH);
    digitalWrite(LED, HIGH);
    delay(30);
    digitalWrite(0, LOW);
    digitalWrite(LED, LOW);
    delay(INITIAL/i);
  }
}

Credits

Alex Wulff

Alex Wulff

12 projects • 226 followers
I'm a maker and student at Harvard. I love Arduino, embedded systems, radio, 3D printing, and iOS development. www.AlexWulff.com

Comments