Project showcase

Beepee Boopee Buzz Buzz

It's an alarm clock. You can set the amount of minutes until it goes off in the serial monitor. It flashes and beeps when it goes off.

  • 759 views
  • 3 comments
  • 3 respects

Components and supplies

Apps and online services

About this project

For an assignment in our electronics class we needed to help our community wake up so they can go to school. We also needed to make a project in our class, so we decided to make a alarm clock to force our students to get out of bed and go to school.

It wasn’t too hard to get the buzzers in there to make the music or noise to wake you up, but to get it to go off at a particular moment was a challenge. The lights were also easy, since we just threw them on and plugged the code in. Getting the lights to perform a pattern was what took the most time to complete in this project.

It is plugged into a computer to make it work. Overall we had a lot of fun making it and drawing on the box. This will hopefully make our students wake up and get to school.

Code

code Arduino
put it in arduino
  int time;
int button;
int ru;
int d4 = 294;
int e4 = 330;
int c4 = 262;
int q = 212;
int w = 19;
int r = 700;
int t = 2000;
int y = 2000;

void setup()
{
 ru = 0;


 Serial.begin(9600);

 
  
  Serial.println("how many seconds until alarm goes off");
  Serial.println("then click [send] or press [return]");
  Serial.println();  // Print a blank line

  


      
  pinMode(2,INPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);  
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
   pinMode(3,OUTPUT);
 }

void loop()
{
while (Serial.available() > 0)
    

     
      {
        ru = 255;
      time = Serial.parseInt(); delay(time * 1000 * 60);
      }
  
button = digitalRead(2);
    if (button == LOW){
     ru = 0;
    }

  
if (ru > 0){

  



  tone(3, e4);
  delay(20);
tone(3,q);
  delay(20);
  tone(3, r);
  delay(20);
tone(3,w);
  delay(20);
  tone(3, d4);
  delay(20);
 tone(3, t);
  delay(20);
  tone(3, y);
  delay(20);


  
  digitalWrite(4, HIGH);
  delay(20);
  digitalWrite(4,LOW);

  digitalWrite(5, HIGH);
  delay(20);
  digitalWrite(5,LOW);

  digitalWrite(6, HIGH);
  delay(20);
  digitalWrite(6,LOW);

  digitalWrite(7, HIGH);
  delay(20);
  digitalWrite(7,LOW);

  digitalWrite(8, HIGH);
  delay(20);
  digitalWrite(8,LOW);

  digitalWrite(13, HIGH);
  delay(20);
  digitalWrite(13,LOW);
 
  digitalWrite(12, HIGH);
  delay(20);
  digitalWrite(12,LOW);

  digitalWrite(11, HIGH);
  delay(20);
  digitalWrite(11,LOW);;

  digitalWrite(10, HIGH);
  delay(20);
  digitalWrite(10,LOW);

  digitalWrite(9, HIGH);
  delay(20);
  digitalWrite(9,LOW);

    noTone(3);
      noTone(3);}
 }
 

Schematics

set up
copy this on your arduino

No document.

set up
Capture 7wwvuydq1h

Comments

Similar projects you might like

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 37,888 views
  • 5 comments
  • 21 respects

Breadboard to PCB Part 1 - Making the Simon Says Game

Project tutorial by Katie Kristoff and Monica Houston

  • 4,692 views
  • 9 comments
  • 23 respects

Simple Programmable Robotic Arm

Project showcase by Ryan Chan

  • 49,019 views
  • 63 comments
  • 145 respects

Standalone Arduino Applied in Projects

Project tutorial by PCBWay and Silícios Lab

  • 5,601 views
  • 8 comments
  • 40 respects

Morse Code Communication Using Arduino

Project tutorial by Jalal_Mansoori

  • 2,723 views
  • 7 comments
  • 19 respects

The Hooray Machine

Project showcase by Dawn Dupriest and Brie Hen

  • 836 views
  • 1 comment
  • 5 respects
Add projectSign up / Login