29122 Parallax Inc, 29122 Datasheet - Page 3

KIT PARTS IR REMOTE FOR BOE-BOT

29122

Manufacturer Part Number
29122
Description
KIT PARTS IR REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 29122

Accessory Type
IR Remote
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
IR Detection Circuit
For testing purposes, all you need is this IR detector circuit and the BASIC Stamp Editors’s Debug
Terminal.
BASIC Stamp 2 "Bare-Bones" Example – IrRemoteCodeCapture.bs2
This example program demonstrates how to capture and display a remote code with the BASIC Stamp 2.
If you modify the $STAMP directive, it can also be used with the BASIC Stamp 2e or 2 pe.
' Ir Remote Application - IrRemoteCodeCapture.bs2
' Process incoming SONY remote messages & display remote code.
' {$STAMP BS2}
' {$PBASIC 2.5}
' SONY TV IR remote variables
irPulse
remoteCode
DEBUG "Press/release remote buttons..."
DO
© 2004 Parallax Inc. • IR Remote AppKit (#29122) • 10/2004
remoteCode = 0
DO
LOOP UNTIL irPulse > 1000
PULSIN 9, 0, irPulse
IF irPulse > 500 THEN remoteCode.BIT0 = 1
RCTIME 9, 0, irPulse
IF irPulse > 300 THEN remoteCode.BIT1 = 1
RCTIME 9, 0, irPulse
IF irPulse > 300 THEN remoteCode.BIT2 = 1
RCTIME 9, 1, irPulse
First, make sure to use the documentation that comes with your universal remote to configure it to
control a SONY
Press the TV button on your remote so that you know it is sending TV signals.
Download or hand enter and run IrRemoteCodeCapture.bs2
Point the remote at the IR detector, and press/release the digit keys.
Also try POWER, CH+/-, VOL+/-, and ENTER to view the codes for these values.
VAR
VAR
®
TV.
Word
Byte
P9
220
Vdd
Vss
1
2
3
' Stores pulse widths
' Stores remote code
' Main DO...LOOP
' Wait for end of resting state.
' Get data pulses.
IR Detector Circuit
IR detector viewed
from the top. Also
see Kit Contents
figure for pin map.
Page 3 of 10

Related parts for 29122