Wednesday, 10 August 2016

Lesson 6: Activity 1A (Buzzer Circuit)

Activity 1A
Buzzer Circuit (Building an alarm)

Buzzer Circuit
Materials Needed:
  • Laptop
  • Arduino Board
  • Breadboard
  • 1 x Buzzer 
  • 3 x Jumper Wires
Codes:
const int buzzer = 9;

void setup()
{
pinMode(buzzer, ______);
}

void loop( )
{
tone(buzzer, ___,200);
delay (1000);
noTone(buzzer);
delay (1000);
}


*Please fill in the blanks.

No comments:

Post a Comment