27404 Parallax Inc, 27404 Datasheet - Page 96

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
The
TestIrFrontObjectDetectors.bs2.
Freq1
swept from 36000 to 42000 in steps of 500 by a
way to perform a frequency sweep with the IR LEDs and capture the IR receivers'
frequency responses.
' -----[ Main Routine ]-------------------------------------------------------
FOR frequency = 36000 TO 42000 STEP 500
NEXT
Example Program: TestFrequencyResponse.bs2
This program should be used with a white wall at various distances from the front of the
SumoBot to get an idea of which frequencies make it more nearsighted and which
frequencies make it more farsighted.
SumoBot in the ring. The goal is to determine a frequency for each detector that is most
likely to detect the SumoBot opponent and least likely to detect a nearby onlooker.
FREQOUT IrLedLF, 1, frequency
irLF = ~IrSenseLF
FREQOUT IrLedRF, 1, frequency
irRF = ~IrSenseRF
DEBUG CR, DEC frequency, CRSRX, 11
IF irLF = 1 THEN DEBUG "yes" ELSE DEBUG "no"
DEBUG CRSRX, 19
IF irRF = 1 THEN DEBUG "yes" ELSE DEBUG "no"
PAUSE 50
argument is replaced with a
next
Enter, save, and run TestFrequencyResponse.bs2, and leave the SumoBot
connected to the serial cable.
Face the SumoBot at a white wall 1 m away.
Press and release the Reset button.
Frequency Sweep and Frequency Response
Transmitting a sequence of frequencies is commonly referred to as "frequency sweep". The
response of a sensor or circuit to a frequency sweep is called its "frequency response".
example
program
The
Word
IrFreq
These tests should then be repeated with a
is
variable named frequency. This variable is
FOR...NEXT
another
constant in the
' Left IRLED shines IR light
' Save IR receiver output
' Repeat for right IRLED/receiver
' Display yes/no for detection
' Delay for slower PCs
modified
loop. It's a quick and easy
FREQOUT
version
command's
of

Related parts for 27404