28125 Parallax Inc, 28125 Datasheet - Page 260

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Example Program – IrInterferenceSniffer.bs2
' Robotics with the Boe-Bot – IrInterferenceSniffer.bs2
' Test fluorescent lights, infrared remotes, and other sources
' of 38.5 kHz IR interference.
' {$STAMP BS2}
' {$PBASIC 2.5}
counter
DEBUG "IR interference not detected, yet...", CR
DO
LOOP
Your Turn – Testing for Fluorescent Lights that Interfere
IF (IN0 = 0) OR (IN9 = 0) THEN
ENDIF
DEBUG "IR Interference detected!!!", CR
FOR counter = 1 TO 5
NEXT
HIGH 1
HIGH 10
FREQOUT 4, 50, 4000
LOW 1
LOW 10
PAUSE 20
Enter, save, and run IrInterferenceSniffer.bs2.
Test to make sure the Boe-Bot sounds the alarm when it detects IR interference.
You
TestIrPairsAndIndicators.bs2. If you don’t have a second Boe-Bot, just use a
handheld remote for a TV, VCR, CD/DVD player, or projector. Simply point
the remote at the Boe-Bot and press a button. If the Boe-Bot responds by
sounding the alarm, you know your IR interference sniffer is working.
Disconnect your Boe-Bot from its serial cable, and point it at any fluorescent
light near where you plan to operate it. Especially if you get frequent alarms,
turn off that fluorescent light before trying to use IR object detection under it.
Always use this IrInterferenceSniffer.bs2 to make sure that any area where you are
using the Boe-Bot is free of infrared interference.
can
VAR
do
Nib
this
with
a
separate
' Stamp directive.
' PBASIC directive.
Boe-Bot
that’s
running

Related parts for 28125