You are on page 1of 1

Chapter 3 Challenges

Questions
1. What are some of the symptoms of brownout on the BOE Shield-Bot?
Power is lost to the system very briefly and the code input in the board will be reset
2. What is a reset?
A reset is when the release/reset button is pressed, power is lost, or the board has a brownout
3. How can a piezospeaker be used to announce that brownout just occurred?
The speaker will play a tone to let the user know a brownout has occured.

4. What function makes the speaker play tones?


The tone function
5. Whats a hertz? Whats its abbreviation?
Its a measurement of the number of times per second a signal repeats itself. HZ
Exercises
1. Write a statement that makes a tone, one that sounds different from the start-alert tone, to
signify the end of a sketch.
tone(4, 2000, 50)
2. Write a statement that plays a speaker tone to signify an intermediate step in the sketch.
This tone should be different from a start-alert or end tone.
tone(4, 4000, 75)

Projects
1. Modify the TestServoSpeed sketch so that it makes a tone signifying each test is
complete.

2. Modify the TestServoSpeed sketch so that it runs both wheels instead of just one with
each test. Make the right wheel turn the opposite direction from the left wheel.

You might also like