You are on page 1of 2

Questions

1. What are some of the symptoms of brownout on the BOE Shield-Bot?


Some symptoms are that it will stop completely, go in a completely different way than you
planned it, or will go forward and backward non-stop.
2. What is a reset?
It is a system that clears any pending errors or events and brings a system to normal condition.
3. How can a piezospeaker be used to announce that brownout just occurred?
It will play the start tone to announce the brownout.
4. What function makes the speaker play tones?
The function of the piezo buzzer plays the tones.
5. Whats a hertz? Whats its abbreviation?
Its the number of cycles per second, and its abbreviation is 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.
To alert the person that theres something wrong with the project.
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.
To make sure that the project successful.
EX:
/*
* Robotics with the BOE Shield - RightServoTest
* Right servo turns clockwise three seconds, stops 1 second, then
* counterclockwise three seconds.
*/

#include <Servo.h> // Include servo library

Servo servoRight; // Declare right servo

void setup() // Built in initialization


block
{
servoRight.attach(12); // Attach right signal to
pin 12

servoRight.writeMicroseconds(1300); // Right wheel clockwise


delay(3000); // ...for 3 seconds

servoRight.writeMicroseconds(1500); // Stay still


delay(1000); // ...for 3 seconds

servoRight.writeMicroseconds(1700); // Right wheel


counterclockwise
delay(3000); // ...for 3 seconds

servoRight.writeMicroseconds(1500); // Right wheel


counterclockwise

void loop() // Main loop auto-repeats


{ // Empty, nothing needs
repeating
}

You might also like