Activity 1A
Buzzer Circuit (Building an alarm)
Buzzer Circuit (Building an alarm)
- 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);
}
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