Page 3 of 6

Posted: Mon Oct 03, 2011 9:22 am
by michaelknight
I don't know if it will be useful for me. Anyway I'll download it at home and I'll try to see how it works.

Thank's

Posted: Mon Oct 03, 2011 9:28 am
by The Robman
michaelknight wrote:When I process the SWITCH OFF singnal it doesn't match with the binary code showed before. Where did you get that code?
If you look at your waveform image and treat the pairs with the long off (up) times as "one" and the pairs with the short off times as "zero", you get the following string:

100010000101101

If you then go back to my original post and look at the fixed data that preceeds every string, you'll find this:

1000100001011011111001000000111100000000000000000000000001000000

Your string matches the first 15 bits in my longer string, so it looks like we're dealing with the same protocol.

ps. I converted your image into a link as it was making this thread very wide and therefore hard to read.

Posted: Mon Oct 03, 2011 11:44 am
by michaelknight
Now I see you consider the first peak as a start condition, the second one as a single 1 regardless the time it takes. I was trying to find a pattern to follow based in a piece of time or each bit. It's clear that's impossible cause 0 and 1 have different duration

This info was realy useful for me. I hope to be able to finde time enought tonight to work hard on it!

Thank's Rob for your post.

Posted: Mon Oct 03, 2011 11:54 am
by The Robman
So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help.

Posted: Mon Oct 03, 2011 12:09 pm
by The Robman
michaelknight wrote:Now I see you consider the first peak as a start condition, the second one as a single 1 regardless the time it takes. I was trying to find a pattern to follow based in a piece of time or each bit. It's clear that's impossible cause 0 and 1 have different duration
If you go back to the first page and see the technical data that I posted about this signal, you will see that there is a leadin pair, so 4 units of OFF time is expected before the start of the data portion of the signal.
The Robman wrote:(in Pronto hex)
ONE pair: 000F 0031
ZERO pair: 000F 0011
leadin pair: 0080 0041
leadout1 pair: 000F 0456
leadout2 pair: 000F 0E98

(raw times)
ONE pair: +425 -1300
ZERO pair: +425 -440
leadin pair: +3440 -1745
leadout1 pair: +425 -30,000
leadout2 pair: +425 -100,000

format: leadin, fixed data string, leadout1, leadin, variable data string, leadout2 (repeat leadout2 if button held)

Posted: Mon Oct 03, 2011 12:43 pm
by michaelknight
The Robman wrote:So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help.
I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.

This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller.

Posted: Mon Oct 03, 2011 12:45 pm
by eferz
The Robman wrote:So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help.
I think he is secretly developing the Knight Industries Two Thousand (KITT).

Posted: Mon Oct 03, 2011 1:18 pm
by The Robman
eferz wrote:I think he is secretly developing the Knight Industries Two Thousand (KITT).
LOL, hence the "under cover" user id.

Posted: Mon Oct 03, 2011 1:19 pm
by The Robman
michaelknight wrote:I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.

This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller.
So basically, you are looking to have the computer send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into your computer?

Posted: Mon Oct 03, 2011 2:17 pm
by michaelknight
The Robman wrote:
michaelknight wrote:I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.

This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller.
So basically, you are looking to have the computer send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into your computer?
I won't use a computer, I'll use a PIC micro controller. Anyway it's possible use a computer sending the signal to the IR led by the COM port. I din't try it but that's possible.

Posted: Mon Oct 03, 2011 2:58 pm
by The Robman
So basically, you are looking to have a PIC micrcontroller send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into the PIC micrcontroller?

Posted: Mon Oct 03, 2011 4:20 pm
by michaelknight
The Robman wrote:So basically, you are looking to have a PIC micrcontroller send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into the PIC micrcontroller?
Once you know the binary code you have to say to the PIC when it has to send a 0 or 1. For example, for this sequence: 10101 you can write a code like this:

Code: Select all

array a=(1,0,1,0,1)

for(i=0, i<a.length, i++){

  if(a[i]==1){
      output_high;
      delay;
  }
  else{
      output_low;
      delay;
  }
}
It's a pseudocode, but in fact it's something like that. The most important thing is to know how long takes everyone to setup the delay's.

Posted: Mon Oct 03, 2011 4:40 pm
by vickyg2003
I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing.

Posted: Mon Oct 03, 2011 4:53 pm
by michaelknight
vickyg2003 wrote:I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing.
This is the first time I deal with IR signals. Give me time to develop the project and I'll tell you the way. :D

Posted: Mon Oct 03, 2011 4:55 pm
by eferz
vickyg2003 wrote:I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing.
Vicky, are you still trying to get your JP1 remotes to emit Gamma Rays? You know Bruce Banner is probably going to be stuck in his predicament for an awfully long time.