Professional Documents
Culture Documents
Sony TV remote
control
PWM
What is IR: Visible Light Waves
What is Infrared
The IR Signal
The IR detector is only looking for
infrared that’s flashing on and off 38,500
times per second.
It has built-in optical filters that allow very
little light except the 980 nm infrared.
It also has an electronic filter that only allows
signals around 38.5 kHz to pass through.
This is the type of signal produced by the
remote control.
This prevents IR interference from
common sources such as sunlight and
indoor lighting.
Important Concepts
Pulse width modulation (PWM): Pulse durations are
used in many applications, a few of which are motor
control, and communication. Since the IR detector
sends low pulses that can be measured to determine
what information the IR remote is sending, it's an
example of using PWM for communication.
ReadIR
Programming Features:
pulseIn() and bitSet()
Arrays
A debug flag to turn on printout
Throws away devise designation
Adjusts bit pattern to match numeric
keys
Program for Controlling Bot
• IRcontrol
• Programming Features:
• Switch statement
• Servo library