Skip to main content

Understanding IR Remote Controls - Part 2

In the last post (Understanding IR Remote Controls) I explained what IR is and why it is commonly used in remote controls. Now let's see some common encoding methods used in IR remotes.

As you know by now, the IR signals emitted by remote controls are modulated to a frequency between 30 KHz and 60 KHz. In order to send a command, it has to be encoded in to this signal. There are several encoding protocols of which the SIRC protocol introduced by SONY and the RC 5 protocol introduced by Philips are used more commonly.

SIRC

SIRC stands for 'SONY Infrared Remote Control Code'. It used 40 KHz modulated IR signals. The logic levels (0 and 1) are represented by the width of the IR pulse.

SIRC Logic Levels
As you can see, the logic '1' is sent by a pulse of 1.2ms and then waiting 0.6ms. Similarly, logic '0' is sent by a pulse of a 0.6ms and then waiting 0.6ms. Those who are familiar will identify this as a sort of a pulse width modulation (I'll be doing a post on pulse width modulation too).

Since only one bit can be sent at a time, a command should be sent as a packet of data (serially). The structure of a SIRC data packet is as follows:

Structure of a SIRC data packet
To initialize the data packet, an IR pulse of 2.4ms is sent and then waits for 0.6ms. This 3ms is called the start bit. Then, the command code is sent using seven bits (D0 to D6). The five bits after that (C0 to C4) is the device code, which defines what device this command is destined for. The standard device codes are shown below.

AddressDevice
1TV
2VCR 1
3VCR 2
6Laser Disc Unit
12Surround Sound
16Cassette Deck/Tuner
17CD Player
18Equalizer

Here's an example data packet that uses SIRC protocol. This is the set of pulses sent when you press the volume button on a SONY remote control.

Example SIRC data packet
If you press and hold the button, the same data packet is repeated every 45ms.

I'll talk about the RC 5 protocol in the next post.

Special thanks to Vidusara newspaper, from which I gained this knowledge.

Comments

  1. Is SIRC strictly limited to handling consumer electronic devices? As far as I can see, it has no inherent capabilities to cope up with bit errors. Besides it is working with variable time length packets that makes it more susceptible to various signal impairments. This may be the most prominent limiting factor for the distance we can achieve with a standard remote controller. But the lack of overhead with parity check and such is exactly what is needed in the domain of their applications within an indoor environment. Short and Sweet!!! :)

    ReplyDelete
  2. Wait till you see RC 5. It's simpler that SIRC. Now we can guess why the TV remote acts crazy sometimes ;)

    ReplyDelete

Post a Comment

Popular posts from this blog

Selecting the Correct Gauge Wires for your RC Models

When we are building RC models (aircrafts, multicopters etc.), something we typically overlook is what type of wires to use to distribute power in them. Usually, we try to reduce the weight of the model, so we tend to go with smaller wires. But, we cant expect to put in small circuit-wires and have them handle the amount of power needed. If you look at the wires that comes in the output leads of a Li-Po, or the wires that comes on a standard XT Jack, you'll notice that they're quite huge. Large gauge wires on a Li-Po and XT connectors These need to be huge to handle the amount of amperage that goes through them. So, we should also consider the amperage, and the length of wire needed when selecting the size (gauge) of the wires.

What do the prop size numbers mean?

Have you been trying to shop for propellers - either online or at a hobby shop - and got confused of the numbering used to denote the size of the propellers? You see things like " 10 x 4.5 CW ", or " 8055 CCW ". What do these numbers mean? A 8 x 4.5 CW and CCW Propeller Set It's actually quite simple once you figure it out. The first number denotes the diameter of the prop (length from tip-to-tip). The second number denotes the pitch of the prop. Here, the pitch is denoted as a length, not a angle. Let's see how that works.

Li-Po Batteries Explained - Part 2

I explained about Li-ion batteries (the predecessor of Li-Po) in my earlier post ( Li-Po Batteries Explained - Part 1 ). Now let's see what these 'Lithium Polymers' are. Lithium-Polymer Batteries - The real ones Li-Po batteries - also known as Li-Poly, Pi-Pol, PLI and PLI - are a type of rechargeable batteries that uses same types of electrodes as the Li-ion batteries. The difference is with the electrolyte it uses. Instead of the liquid solvent used in Li-ions, Li-Po uses a polymer electrolyte. In the original design, which dates back to the 1970's, the electrolyte is a dry, plastic-like, thin film. It doesn't conduct electricity, but allows the exchange of ions between the electrodes. Theoretically, with this design, batteries could be made very thin (less than 1 millimeter) and to a variety of form factors. And because of the electrolyte being dry, the manufacturing process can be simplified and the safety of the battery will be higher because of no risk in