Wagner Lipnharski says:
IR remote are not always PWM. The most widely used code, the RC5, is not PWM, but differential signal level, what confuse people to think it is pwm. If a person who never had deal with data communication look at the output wave form of a RC5 at scope, he will say it is pwm, but its not. Each bit transmitted in RC5 has the same length, and exactly in the middle of the bit it changes level. The level transition happens from one to zero if the bit is zero, from zero to one if the bit is one, so, the second half of the bit tells you what level the bit is.
Transmitting mixed bit levels will generate patterns that someone can thinks is pwm. Example, sending bits combination of 01010101 will generate a square wave with half the frequency than sending only ones or zeros... but this is just because bits zeros start with high level, and ones with low level.bit 0: -_ bit 1: _- 0000 : -_-_-_-_ 1111 : _-_-_-_- 0101 : -__--__- 0011 : -_-__-_-
Some other remotes use real PWM, with a double bit time for different level, they are not difficult, but demand some more work. RC5 is easy to decode, it is just as a serial data transmitted, you just need to produce a software serial reception routine, that samples the incoming data at the middle of the second half of each bit, it is the bit level.
The bit train represent identifiers. For example, some bits identify the equipment, as TV, Radio, Tape, CD, DVD, Laser Disk, and more. Other bits means the key pressed or function.
If you want to use a remote to control something else, go for Philips remotes, they use only 14 bits and low frequency modulation, even to sync at the scope :) so a 6 MHz uC can understand it perfectly.
See Wagners excellent tutorial on this at http://www.ustr.net/infrared/infrared1.shtml
Sony Data format
12 bits Bit zero: 400 +--+ +... | | | + +---+ 800 Bit one: 400 +--+ +... | | | + +------+ 1400 Frame: 400 400 --+ +--+ +--+ +--+ | | | | | | | +---2600---+ +---+ +------+ +... 800 1400
Sony IR remote to serial via PIC 16F84@
James Cameron says:
The trinary nine bit serial protocol used by Motorola MC145026, MC145027 and MC145028 "remote control" chips is used in various consumer items such as remote controls, and in the older Marklin Digital model railway. The trinary bit (trit) encoding looks like this;_ _ _ _ _ _ _ _ _ _ _ Osc: _| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| | _____________ _________________ One: |_| |_| |_| _ _ Zero: |_| |_____________| |_________________| _____________ _ Open: |_| |_| |_________________| |<-- t(pulse) -->| |<------------- t(bit) ------------>|
Each transmission consists of two nine trit words, both identical, for redundancy. The bits are sent lowest numbered bit first.
|file: /Techref/io/ir/remotes.htm, 5KB, , updated: 2005/5/11 03:49, local time: 2019/6/24 11:23,
|©2019 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.sxlist.com/techref/io/ir/remotes.htm"> IR Remotes</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!