NEW
Font size
Worksheets9 . Arduino Piano
Total questions: 10
Worksheet time: 5mins
What is the primary component used to produce sound in an Arduino piano project?
Which function in Arduino is used to produce a tone on a buzzer?
What does the noTone() function do in an Arduino sketch?
Increases the volume of the buzzer
Changes the frequency of the buzzer
Turns on the buzzer
Stops the tone on the buzzer
In an Arduino piano project, which component is used to detect key presses?
PushButton
How do you specify the frequency of the tone produced by the buzzer in Arduino?
tone(pin, frequency, duration);
tone(pin, duration);
tone(pin, volume);
tone(pin, frequency);
How can you turn off the tone on pin 8 in an Arduino sketch?
offTone(8);
noTone(8);
stopTone(8);
endTone(8);
What is the purpose of using delay() in an Arduino sketch for a piano?
To add a pause between tones
How do you connect a buzzer to an Arduino board for sound output?
Connect the positive leg of the buzzer to a digital pin and the negative leg to GND
Connect both legs of the buzzer to digital pins
Connect the positive leg of the buzzer to GND and the negative leg to a digital pin
Connect both legs of the buzzer to GND
Which function is continuously executed in the Arduino loop to check button states?
run()
main()
loop()
delay()
Choose the correct option which produces the sound .
