PDA

View Full Version : No one-way approach to learning ir remote control frequencies



selbstdual
- 13th June 2007, 08:33
I want to control my circuitry via a given infrared remote control
(for a Scott DVD-Player) producing unknown control frequencies.

All approaches I have seen so far need extra circuitry and output the
data to the pc showing it perfectly. But these are one-way
circuitries. Having found out the frequences, they are useless.

I want to get the frequencies via software and write them to the
eeprom to read them out on the pc and use them in the future.

I created a circuitry that sets PORTA.5(PIC = 16F628A) High or low depending on the
rc's ir-led being on or off.

Now I need software to cope with this information and to write it to
my pic. As I mentioned, I don't know the carrier frequency nor do I
know any other data about the control except that it produces light
and my circuitry receives it.

Suggestions ?

dhouston
- 13th June 2007, 12:08
I'm not sure, from your post, what you are trying to accomplish.

If you need to know the carrier frequency of the IR you can record an image of it using a PC parallel port and then determine the carrier frequency from the recorded data. See http://www.ziplabel.com/cir/index.html for schematics and software.

You can also check the files at http://www.RemoteCentral.com for your specific remote or the hardware it was designed for. If it's listed, you can get the carrier frequency from the CCF files there.

Once you have the carrier frequency and the timings for the IR bursts, you can use HPWM to create the carrier, switching the pin from output to input to turn the bursts on or off.

You will likely find the current from a PIC pin insufficient to drive an IR emitter for anything other than close range. Check http://www.rentron.com for IR project schematics.

selbstdual
- 13th June 2007, 14:38
Thank you for your answer.


I'm not sure, from your post, what you are trying to accomplish.
I want to know:
a) the carrier frequency of the given remote control
b) which buttons result in which combinations of bursts

I want software in pbp to answer these questions.

Only thing offered is PORTA.5 which can be asked for its status to find out about a high or low level(light or dark).


If you need to know the carrier frequency of the IR you can record an image of it using a PC parallel port and then determine the carrier frequency from the recorded data.
For this issue I wrote this:
All approaches I have seen so far need extra circuitry and output the
data to the pc showing it perfectly. But these are one-way
circuitries. Having found out the frequences, they are useless.


You can also check the files at http://www.RemoteCentral.com for your specific remote or the hardware it was designed for.
It doesn't exist there.


Once you have the carrier frequency and the timings for the IR bursts, you can use HPWM to create the carrier, switching the pin from output to input to turn the bursts on or off.
It is about receiving, not sending.

dhouston
- 13th June 2007, 15:41
It doesn't exist there.
There is a file there for a Scott DVD player. If they make other models there is still a good chance that they use the same carrier and codes.

Since you apparently want someone to hand it to you on a plate, try http://www.rentron.com/PicBasic/IR_Chips.htm

dhouston
- 13th June 2007, 18:24
I still really do not understand exactly what you want to do but, from a quick look at some of your other posts, that seems to be an ongoing theme.

The Scott DVD Player uses the NEC IR protocol with a carrier of 38kHz. Scott's custom code is 8. The NEC protocol is one of the oldest (if not the oldest) IR protocol. It is widely used by many AV manufacturers and is easily understood. There's a datasheet for one of the early NEC encoder chips on my webpage at http://davehouston.net/Nec6121.pdf.

If you want to capture these codes with a PIC, the best way is to use an IR receiver module which receives the IR, removes the carrier, and outputs the data envelope. I suggest the Vishay TSOP1100 which works with 33-57kHz carriers. If you also want to capture the carrier frequency use a photodiode on another pin and, if your oscillator is at least 8MHz, use PBP's COUNT for 1mS during the initial IR burst which is usually 2.5mS or longer with almost all protocols. The initial burst is about 9mS with the NEC protocol.

As it happens, I've posted code to send/receive, encode/decode the NEC protocol as RF. The only difference for receiving is the polarity - the IR receiver is active low where an RF receiver is active high. For sending, modify my RF code with Bruce Reynold's IR code which I cited earlier. You can even leave it at 40kHz but you'll need to use the NEC timing in my code. See http://www.picbasic.co.uk/forum/showthread.php?t=6261.

skimask
- 13th June 2007, 18:59
I want to know:
Apparently everything...right...DUDE?


I want software in pbp to answer these questions.
Of course you do! As usual...






Since you apparently want someone to hand it to you on a plate, try http://www.rentron.com/PicBasic/IR_Chips.htm

.....but, from a quick look at some of your other posts, that seems to be an ongoing theme.

I don't think the plate is good enough. Hand delivered, built, tested, debugged, and put in a shiny gold enclosure...maybe...

selbstdual
- 14th June 2007, 06:25
I still really do not understand exactly what
you want to do but, from a quick look at some of your other posts,
that seems to be an ongoing theme.I did not notice this sentence.


The Scott DVD Player uses the NEC IR protocol
with a carrier of 38kHz. Scott's custom code is 8. The NEC protocol
is one of the oldest (if not the oldest) IR protocol. It is widely
used by many AV manufacturers and is easily understood. There's a
datasheet for one of the early NEC encoder chips on my webpage at
http://davehouston.net/Nec6121.pdf.Interesting that no technical manual can be written for a good
understanding. Thank you anyway.


If you want to capture these codes with a PIC,
the best way is to use an IR receiver module which receives the IR,
removes the carrier, and outputs the data envelope. I suggest the
Vishay TSOP1100 which works with 33-57kHz carriers. If you also want
to capture the carrier frequency use a photodiode on another pin and,
if your oscillator is at least 8MHz, use PBP's COUNT for 1mS during
the initial IR burst which is usually 2.5mS or longer with almost all
protocols. The initial burst is about 9mS with the NEC protocol. As it
happens, I've posted code to send/receive, encode/decode the NEC
protocol as RF. The only difference for receiving is the polarity -
the IR receiver is active low where an RF receiver is active high. For
sending, modify my RF code with Bruce Reynold's IR code which I cited
earlier. You can even leave it at 40kHz but you'll need to use the NEC
timing in my code. See
http://www.picbasic.co.uk/forum/showthread.php?t=6261.
Let us see.

Ioannis
- 14th June 2007, 06:26
I like the self-adjustment of this forum! Only if I ould do such a self-adjusted circuits!

Ioannis

selbstdual
- 14th June 2007, 09:03
I like the self-adjustment of this forum! Only if I ould do such a self-adjusted circuits!

Ioannis
I don't understand you. Does your text support my question in a way ?

Acetronics2
- 14th June 2007, 09:29
Hi, Selbst

Could you confirm your very approximate English translation of " Ich wünche " or " Ich Möchte " is " I want " ...

... " I'd like " is much, much, much closer and could bring you back much,much,much useful answers ...


But ...may be I'm wrong ...

Alain

" Ich bin ( auch ) ein Berliner ... "

Ioannis
- 14th June 2007, 09:30
Originally Posted by Ioannis
I like the self-adjustment of this forum! Only if I ould do such a self-adjusted circuits!

Ioannis

No. It is a notice to skimask.

Ioannis

selbstdual
- 14th June 2007, 11:45
I decided to say it the way I did :) And Acetronics, I am waiting for the nazi-comparison impatiently. Do it, let it out.


No. It is a notice to skimask.
He/she has already been on my ignore list. I don't know why but I guess he/she proved in the past that his/her comments need noone to watch them.

Your post, Ioannis, didn't help either.

Speaking of comments:

Thanks to dhouston for his effort.

Ioannis
- 14th June 2007, 12:20
Your post, Ioannis, didn't help either.

Ohh, come on, a little humor is always welcome. Don't take everything so seriously!

After all the comments of Dave were sharp enough although the hints that gave you.

By the way, if you use a photodiode (not something like TSOPxxx) you may be able to use the PIC timer and find real time the carrier of any IR control.

An opamp should be used to convert Current to Voltage and feed it to a PIC port like a square wave signal. If you need more on this, ask for it.

Ioannis

dhouston
- 14th June 2007, 12:21
Interesting that no technical manual can be written for a good
understanding.While this is written about how ProntoEdit displays IR codes, it gives a good explanation of both one Sony and the NEC protocols.
http://www.remotecentral.com/features/irdisp1.htm

This gives brief descriptions of 4 popular protocols. http://www.celadon.com/infrared_protocol/infrared_protocols_samples.pdf

This is probably the best one as it includes PIC (ASM) code. http://www.sbprojects.com/knowledge/ir/ir.htm

Acetronics2
- 14th June 2007, 13:01
I decided to say it the way I did :) And Acetronics, I am waiting for the nazi-comparison impatiently. Do it, let it out.

.

Really sorry to deceive ...

A little Out of Pics Subject ...

When I was in Berlin (1980 ... the "wall" was still here ) I talked GENTLY with the mecanicians I worked with ...

About Nazis and the 2nd WW , I got this terrible answer :

"We believed in it ..., really trusted in. "

And I believed them,

The problem of being a Nazi or similar ( football Hooligans i.e.? ) is low people problem: have to invent ennemies to feel they exist ...


Fighting is so much easier than listening to others ... and possibly respect them !!!

Have a nice evening ...

Alain

skimask
- 14th June 2007, 13:43
He/she has already been on my ignore list. I don't know why but I guess he/she proved in the past that his/her comments need noone to watch them.

Then you're missing out...

skimask
- 14th June 2007, 13:45
I like the self-adjustment of this forum! Only if I ould do such a self-adjusted circuits!
Ioannis

No. It is a notice to skimask.
Ioannis

I don't get it either...

mister_e
- 14th June 2007, 20:54
From what i feel and observe, i might bet on few things.

Self adjustment:
The ability to find and suggest everyone the ultimate solution that couldn't be contradicted.
The ability of raising a self esteem in a such way that someone is known as the best even if not.
Having the attitude to make people feel cheap and dumb because they don't know what they do, but yeah refer them to the RTFM %^&%* thingy
all of the above

Ioannis
- 15th June 2007, 06:48
Mainly the 4th!

selbstdual
- 15th June 2007, 11:05
May restriction help people to improve their lifes.


There is a file there for a Scott DVD player. If they make other models there is still a good chance that they use the same carrier and codes.
I found a lot of Scott as a person's name but no result for "scott dvd player" or even scott "dvd player". Where did you find the file ?


Scott's custom code is 8.
What do you mean by this ?

mister_e
- 15th June 2007, 12:04
Scott is indeed a brand name. We saw them often here before. They had bad reputation so far for all of their product (TV, VCR and so on). Maybe they have another label here now :(

http://www.ciao.co.uk/DVD_Players_5266534_3-scott

Ioannis
- 15th June 2007, 12:15
I don't get it either...

Well, at the University there was a class about Information - Society (mainly about the social consequences of IT in the evolution of the societies etc).

Convergence of technologies and Self-adjustment are the terms widely used there. Self - adjustment has to do with the ability to "repair" a bad situation without the intervention of the respective authority.

Authority here reads Admin...

Ioannnis

dhouston
- 15th June 2007, 12:31
I found a lot of Scott as a person's name but no result for "scott dvd player" or even scott "dvd player". Where did you find the file ?On the RemoteCentral web site, in the Files section, under Philips Pronto & ProntoPro Classic, Component Configuration Files, Scott, DVD Players. You will need ProntoEdit (also available on the site) to view the files and see the IR codes.

What do you mean by this ?Read the NEC datasheet I cited near the beginning of this thread.

If you don't want to take the time to learn the rudiments of ProntoEdit, then read the NEC data sheet and capture the codes using the simple hardware shown at http://davehouston.net/learn.htm. NEC codes are very easy to decode once you've bothered to read the datasheet.

I'm afraid my patience and helpfulness has come to an end.

The attached GIFs show the code sent by the "1" button as taken from the earlier cited CCF file.

mister_e
- 15th June 2007, 12:36
<table><td>http://www.mister-e.org/Pics/HandsClapping</td><td>Nice tutorial Dave!</td></table>

skimask
- 15th June 2007, 15:16
Well, at the University there was a class about Information - Society (mainly about the social consequences of IT in the evolution of the societies etc). Convergence of technologies and Self-adjustment are the terms widely used there. Self - adjustment has to do with the ability to "repair" a bad situation without the intervention of the respective authority. Authority here reads Admin...
Ioannnis

Do you mean 'taking care of business' ?

Melanie
- 15th June 2007, 19:54
Self - adjustment has to do with the ability to "repair" a bad situation without the intervention of the respective authority... Authority here reads Admin... Ioannnis

I think the rest of us might refer to this as "Damage Limitation".

Archangel
- 16th June 2007, 00:51
Hello,
#1. Way to go Dave, I bookmarked your Tutorial for further study, Thanks !
#2. So all this banter is about not getting spanked? Just cause a dog growles,
dosen't mean he doesn't like you, it just means he's a dog !
#3. To quote an infamous American Sociologist " Can't we all just get along" ?
Welcome to Los Angeles, where we will treat you like a KING !

Ioannis
- 16th June 2007, 19:37
Welcome to Los Angeles, where we will treat you like a KING !

I am sure you will!!!

Ioannis

To Melanie: Yeap, that too!
To Skimask: You could say that too!

selbstdual
- 19th June 2007, 13:29
I converted the signal to a wave file. Now it looks like the one attached. Is there a software being able to filter out the high and low periods available ?

dhouston
- 19th June 2007, 14:19
Is there a software being able to filter out the high and low periods available ?Yes and no. I have software I wrote a few years ago that can convert between .WAV, .CCF, .LIR and a few other IR formats as well as allow for graphic editing but it's not available to others. If you attach your .WAV file, I'll convert it to CCF or RAW (just the durations of pulses/spaces).

BTW, this looks more like a Sony 12-bit protocol than NEC but it's hard to say as the horizontal scale is too small. If it is Sony, it's explained here...
http://www.sbprojects.com/knowledge/ir/sirc.htm

selbstdual
- 19th June 2007, 22:06
Here are all codes of three remote controls.

Each last one is the last button being pressed without being released immediately afterwards.

Part I. Please rename all .zip to .rar

selbstdual
- 19th June 2007, 22:08
Here's the second part. Thank you for your offer.

dhouston
- 19th June 2007, 22:33
I downloaded three of your files and could open none, getting a message that they were corrupted.

Besides, I offered to convert one, from one remote - not several from multiple remotes.

The one you attached the GIF of is likely a Sony 12-bit Device 01: Command 00.

skimask
- 20th June 2007, 00:11
I downloaded three of your files and could open none, getting a message that they were corrupted.

I think those multiple zip files are actually one huge zip file split up so it can be uploaded here. And I think somehow, you got suckered into figuring out which program he used to split them, and he expects you to put them back together and do the hard work...

selbstdual
- 20th June 2007, 09:00
1. It is a splitted archive, you need all 9 files.
2. Rename all .zip to .rar.
3. Use the newest winrar version to open the first file.
4. Extract it. You get three 48 kHz, 16Bit, mono PCM wave-files.
5. Please use all three files in one go with your program.


The one you attached the GIF of is likely a Sony 12-bit Device 01: Command 00.
It is the left-, and topmost button of the sony RM-889 whose complete code is included in the archive.

selbstdual
- 21st June 2007, 09:53
Am I to see your promises as unfounded, dhouston ?

dhouston
- 21st June 2007, 12:07
Promises? I offered to convert ONE code from ONE remote - the one for which you uploaded a GIF - I gave you the results for it - Sony 12-bit, Device 01: Command 00. You posted many codes from three different remotes. You've been given more than enough information to accomplish what you indicated you wanted at the beginning of the thread - to capture codes from your Scott remote. You will get no further assistance from me but will have the honor of being the first person to make my Ignore List.

selbstdual
- 22nd June 2007, 09:32
You fall short of your pledge.
I am glad to have noticed this fact early enough to not start a business relationship with you
in a few years.

Be well.

Acetronics2
- 22nd June 2007, 10:24
You fall short of your pledge.
I am glad to have noticed this fact early enough to not start a business relationship with you
in a few years.

Be well.


Looks you LIE ... just a bit !!

<<

Age: 65
Biography: I love microchips
Location: In a world of electrons
Interests: fishing, ****ing my wife, playing with children, hunting
Occupation: tax inspector

>>

This is an Excerpt from your official profile ... YOU wrote it !

or is it one more translation error ???

Have a nice day ...

Alain

Ioannis
- 22nd June 2007, 11:23
Age: 65
Biography: I love microchips
Location: In a world of electrons
Interests: fishing, ****ing my wife, playing with children, hunting
Occupation: tax inspector



Hmm, the ****ing my wife, stands for:

1. Hanging my wife? or
2. Dusting my wife? or
3. Serving my wife?

And the occupation, is really interesting!

Acetronics2
- 22nd June 2007, 12:45
Hi, Ioannis

Some talk about ...

While others simply do it ... with all the respect due to their... let's say wives.



You know what ???

Last time I visited my tax inspector ... I brought him all the due in 5,10 20 and 50 Eurocents !!!

Don't remember exactly ... but around ... 400 kg coins to count by hand !!! ( I live in a small country ...)

ha,ha,ha ...
never heard any more of him ...

Alain

Ioannis
- 22nd June 2007, 13:26
Last time I visited my tax inspector ... I brought him all the due in 5,10 20 and 50 Eurocents !!!

Don't remember exactly ... but around ... 400 kg coins to count by hand !!! ( I live in a small country ...)

ha,ha,ha ...
never heard any more of him ...


Ha, ha! Very good, I will follow that too next time! I am sure you will never get a visit again!

Very good, I am still laughing!!!

Ioannis