Professional Documents
Culture Documents
Questions
1. What is the frequency of the signal
sent by tone(9, 38000, 8)? How long does
this call send the signal for? What I/O pin
does the IR LED circuit have to be connected
to in order to broadcast this signal?
detection
left
right
detection
left
right
block
second
pin 13
to pin 12
// Sniff
right
if((irLeft == 0) || (irRight == 0))
LEDs on
digitalWrite(8, HIGH);
tones
LEDs off
digitalWrite(8, LOW);
}
// Roam
left
right
milliseconds
{
maneuver(200, -200, 20); // Right for 20
ms
detects
else // Otherwise, no IR
detects