TV Remotes

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

Does anyone have any experience (good or bad) using the ZX24 family as the engine for an IR TV remote? I know very little about tv remotes and any direction will be greatly appreciated.

TIA and Happy New Year,
Paul
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Re: TV Remotes

Post by mikep »

It works very well. See application note - "AN204 - Input Capture and Multi-tasking for IR Remote Controls"
Mike Perks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: TV Remotes

Post by dkinzer »

mikep wrote:See application note - "AN204 - Input Capture and Multi-tasking for IR Remote Controls"
I was also going to recommend AN-204 as a starting point although it deals with IR reception/decoding rather than IR signal generation to which I believe you were referring.

The first task will be to identify which of the several IR protocols is used by the equipment you want to control. Then, once you get the specifications on the encoding, implementing the signal transmission shouldn't be too difficult. The IR signal is a modulated signal, typically using a 38KHz or so carrier frequency. For most ZX devices, it will probably be best to use an external device (e.g. a 555 timer) to generate the carrier frequency. You could also use one of the ZX timers to produce the carrier. You can modulate the carrier using a NAND or NOR gate depending on which polarity of control signal you want to use.

If you're using the ZX-1281 or ZX-1280, you can use the Output Compare Modulator to perform the modulation.
- Don Kinzer
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

Long ago I had asked NetMedia if they could do an OutputCaptureEx that allowed specifying the carrier frequency and number of carrier cycles instead of time increments. That would make it very easy to utilize Philips Pronto CCF codes which are available for nearly every piece of AV gear extant. Frank indicated it might be possible but I never heard more.

IR is pretty simple. I designed a CF card (PDA-IR) that worked with early PDAs. It had a single IR emitter driven by a 2N3904 which got about 100' range with 3.3V.

Carrier frequencies range from 32kHz to 455kHz although most are 32-40kHz and receivers have about 8-10 kHz bandwidth so 36-38kHz will cover them.
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

Thx, Mike, but I'm looking for the transmission side of the link. Any links for transmitters, protocols and/or codes?

thx & Happy New Year,
Paul

On 12/31/2008 5:30 PM, ZX-24 wrote:
It works very well. See application note - "AN204 - Input Capture and Multi-tasking for IR Remote Controls"



Mike Perks
Check out the new ZX-24pe and ZBasic native mode devices at OakMicros.com




--
=========================================================
Einstein, on Quantum Mechanics:
"I'm convined that He (God) does not throw dice."
Bohr, in response to Einstein:
"Einstein, don't tell God what to do."
=========================================================
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

You're right, Don. I am looking for the generation side of the link. I thinking about trying a project that emulates the Logitech programmabele remotes but I don't know enough yet to ask an intelligent question.

Thx & Happy New Year,
Paul

On 12/31/2008 6:00 PM, ZX-24 wrote:
mikep wrote: See application note - "AN204 - Input Capture and Multi-tasking for IR Remote Controls" I was also going to recommend AN-204 as a starting point although it deals with IR reception/decoding rather than IR signal generation to which I believe you were referring.

The first task will be to identify which of the several IR protocols is used by the equipment you want to control. Then, once you get the specifications on the encoding, implementing the signal transmission shouldn't be too difficult. The IR signal is a modulated signal, typically using a 38KHz or so carrier frequency. For most ZX devices, it will probably be best to use an external device (e.g. a 555 timer) to generate the carrier frequency. You could also use one of the ZX timers to produce the carrier. You can modulate the carrier using a NAND or NOR gate depending on which polarity of control signal you want to use.

If you're using the ZX-1281 or ZX-1280, you can use the Output Compare Modulator to perform the modulation.



- Don Kinzer




--
=========================================================
Einstein, on Quantum Mechanics:
"I'm convined that He (God) does not throw dice."
Bohr, in response to Einstein:
"Einstein, don't tell God what to do."
=========================================================
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

Thx, Dave. The info on you're site has the info I need to get started. Any suggestions for a simple IR transmitter kit to get started with the interface to the ZX? I found the Air-Byte IR Transceiver ( http://www.rentron.com/Products/Air-Byte.htm ). It looks like and easy way to test my project.

Thx, again, & Happy New Year,
Paul

On 12/31/2008 9:32 PM, ZX-24 wrote:
Long ago I had asked NetMedia if they could do an OutputCaptureEx that allowed specifying the carrier frequency and number of carrier cycles instead of time increments. That would make it very easy to utilize Philips Pronto CCF codes which are available for nearly every piece of AV gear extant. Frank indicated it might be possible but I never heard more.

IR is pretty simple. I designed a CF card (PDA-IR) that worked with early PDAs. It had a single IR emitter driven by a 2N3904 which got about 100' range with 3.3V.

Carrier frequencies range from 32kHz to 455kHz although most are 32-40kHz and receivers have about 8-10 kHz bandwidth so 36-38kHz will cover them.



davehouston.org




--
=========================================================
Einstein, on Quantum Mechanics:
"I'm convined that He (God) does not throw dice."
Bohr, in response to Einstein:
"Einstein, don't tell God what to do."
=========================================================
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

I think the AirByte is a bit of overkill - if you can generate the carrier bursts with the ZX all you really need for transmission is the circuitry connected to DOUT of the PIC - see the AirByte schematic at... I believe Bruce sells all of the components as well. BTW, Bruce Reynolds is very knowledgeable and very helpful.

It might be easiest to follow Don's suggestion and build this transmitter... It's too bad that Vishay discontinued the TSOP1100. It handled ~32-57kHz which covers nearly everything except B&O (455kHz).
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

I saw the transceivers on the rentron site. The Air-Byte attracted  me because it looked like a very simple way to get a ZX24 interface quickly. I'm sure if the project goes anywhere I'll be looking at the xceiver modules. That's quite the site.

Do you know of a source for the commands (channel up, channel down, on, off, etc) used by the remote manufacturers?

TIA,
Paul

On 1/1/2009 10:43 AM, ZX-24 wrote:
I think the AirByte is a bit of overkill - if you can generate the carrier bursts with the ZX all you really need for transmission is the circuitry connected to DOUT of the PIC - see the AirByte schematic at... I believe Bruce sells all of the components as well. BTW, Bruce Reynolds is very knowledgeable and very helpful.

It's too bad that Vishay discontinued the TSOP1100. It handled ~32-57kHz which covers nearly everything except B&O (455kHz).



davehouston.org




--
=========================================================
Einstein, on Quantum Mechanics:
"I'm convined that He (God) does not throw dice."
Bohr, in response to Einstein:
"Einstein, don't tell God what to do."
=========================================================
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: TV Remotes

Post by dkinzer »

pdubinsky wrote:Do you know of a source for the commands (channel up, channel down, on, off, etc) used by the remote manufacturers?
The following link may be helpful:
http://www.ustr.net/infrared/index.shtml

An alternate strategy is to use the information in Mike's application note to learn the codes sent by your particular remote and then just reproduce them.
- Don Kinzer
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

Thanks, Don. I am planning on using Mike's approach but, while my curiosity is still in charge, I was looking for some background info.

Happy New Year,
Paul

On 1/1/2009 12:23 PM, ZX-24 wrote:
pdubinsky wrote: Do you know of a source for the commands (channel up, channel down, on, off, etc) used by the remote manufacturers? The following link may be helpful:
http://www.ustr.net/infrared/index.shtml

An alternate strategy is to use the information in Mike's application note to learn the codes sent by your particular remote and then just reproduce them.



- Don Kinzer




--
=========================================================
Einstein, on Quantum Mechanics:
"I'm convined that He (God) does not throw dice."
Bohr, in response to Einstein:
"Einstein, don't tell God what to do."
=========================================================
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Re: TV Remotes

Post by mikep »

pdubinsky wrote:I am planning on using Mike's approach
The application note describes decoding of Sony SIRC encoding scheme. Depending on what you want to control that may or may not be correct. You may also want to investigate the other commonly used TV remote protocols such as RECS 80 and RC5.

These links point to a good resource that describes IR remote control in general and many different protocols.

The Oak Micros devices ZX128e, ZX128ne, ZX1281e, and ZX1281ne can also be used for Output Compare Modulation with the output available on pin 21. Note that software serial ports and timer 1 PWM can not be used at the same time on any of the mega128, mega1281 or mega1280 devices.
Mike Perks
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

Just go to www.RemoteCentral.com and get the CCF codes for the gear you are interested in (see Files section). The CCF format is very easy to grasp and includes the carrier frequency - there's an explanatory PDF on that site. Each manufacturer tends to have their own code scheme although many share the same or similar underlying IR protocols. One of the oldest and most widely used is NEC which you can find explained here...There's one other (Motorola?) site that also has a huge catalog of CCF codes but I don't have the URL handy.
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

TV Remotes

Post by pdubinsky »

Thx,
Paul
Post Reply