Bird
0
0
Arduinoprogramming~10 mins

noTone() to stop sound in Arduino - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to stop the sound on pin 8 using noTone().

Arduino
noTone([1]);
Drag options to blanks, or click blank then click option'
A8
B7
C5
D9
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different pin number than the one where the sound is playing.
Forgetting to call noTone() to stop the sound.
2fill in blank
medium

Complete the code to start a tone on pin 6 at 1000 Hz.

Arduino
tone([1], 1000);
Drag options to blanks, or click blank then click option'
A8
B6
C7
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong pin number.
Confusing tone() with noTone().
3fill in blank
hard

Fix the error in stopping the tone on pin 9.

Arduino
noTone([1]);
Drag options to blanks, or click blank then click option'
A8
B10
C9
D7
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different pin number than 9.
Not calling noTone() at all.
4fill in blank
hard

Fill both blanks to play a 500 Hz tone on pin 4 and then stop it.

Arduino
tone([1], [2]);
noTone(4);
Drag options to blanks, or click blank then click option'
A4
B500
C1000
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping pin number and frequency.
Using the wrong pin number.
5fill in blank
hard

Fill all three blanks to start a 750 Hz tone on pin 3, wait 1 second, then stop the tone.

Arduino
tone([1], [2]);
delay([3]);
noTone(3);
Drag options to blanks, or click blank then click option'
A3
B750
C1000
D500
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong delay time units.
Mixing up pin number and frequency.