28119 Parallax Inc, 28119 Datasheet - Page 100

KIT UNDERSTANDING SIGNALS

28119

Manufacturer Part Number
28119
Description
KIT UNDERSTANDING SIGNALS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28119

Lead Free Status
Contains lead
Accessory Type
Oscilloscope
Interface Type
USB
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
281197-2
Manufacturer:
TE
Quantity:
20 000
Part Number:
281197-2
Manufacturer:
MOLEX
Quantity:
2 500
Reading a Remote Control with DecodeSonyIRRemote.bs2
This application program is longer and more complex than the example programs used in
the other Activities. The author has inserted some informational comments; for an in-
depth look check out the Weekend Application Kit in the Further Investigation section at
the end of this chapter.
' -----[ Program Title and Description ]-----------------------------------
' Understanding Signals - DecodeSonyIRRemote.bs2
' Decode 38 kHz Sony IR TV remote control signal.
' Author: Andy Lindsay, Parallax, Inc.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
IR_detect
' -----[ Constants ]-------------------------------------------------------
active_high
active_low
' -----[ Variables ]-------------------------------------------------------
' This program reads all the pulses delivered by the remote, but in
' practice, only the first two to five pulses are required.
' used To save seven To 9 Words in RAM (in this section) and the same
' number OF PULSIN commands in the Process IR Pulses subroutine.
Run the program DecodeSonyIRRemote.bs2
CH1
CH2
Horizontal Dial
Trigger Source
Trigger Edge
Trigger Mode
Run / Stop Mode
Trigger Voltage
Autoscale
PIN
CON
CON
8
1
0
Off
2 V / division
2 ms / division
Channel 2 at 50%
Falling
Normal
Continuous
2 V
Off
' IR detector output -> P8.
' Used to set PULSIN commands
' to detect +/- pulses.
This can be
Figure 7-10:
OPTAscope
configuration for
handheld infrared
remote control
decoding

Related parts for 28119