You are on page 1of 1

Chapter 3 Challenges

Questions
1. What are some of the symptoms of brownout on the BOE Shield-Bot?
When the batteries dont carry sufficient amount of energy to sustain the BOW Shield Bot
program, it shows symptoms of brownout and will restart the program or make it function
differently.
2. What is a reset?
Reset allows the BOE Bot to rerun its programs.
3. How can a piezo speaker be used to announce that brownout just occurred?
When the BOE Bot functions improperly, the piezospeaker produces a tone to indicate that
a brownout has just occurred.
4. What function makes the speaker play tones?
Piezospeaker can make different tones depending on the frequency of high/low signals it
receives from the Arduino
5. Whats a hertz? Whats its abbreviation?
f hertz (abbreviated Hz) equals the number of cycles per second.

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, 1500)
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