Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

IR Decoder...

Status
Not open for further replies.

koolguy

Active Member
Hi,

Now I am working on IR decoder for remote control.
I have sen some Universal remote which accept all command of other remote and work as per there command, anyway i need to make control system using 877A to decode TV remote control signal can any remote will work?
 

Attachments

  • 1.jpg
    1.jpg
    4.1 KB · Views: 196
My tutorials provide code for Sony SIRC's, but there are numerous different systems in use, all are simple to transmit, but much more complex to receive (Sony SIRC's is one of the easiest to receive). The most common type is Philips RC5, which is more difficult to receive as it uses Manchester coding.
 
My tutorials provide code for Sony SIRC's, but there are numerous different systems in use, all are simple to transmit, but much more complex to receive (Sony SIRC's is one of the easiest to receive). The most common type is Philips RC5, which is more difficult to receive as it uses Manchester coding.

OK, I have Philips, Chinese, DISHTV can we used it??
Please tell how to Decode ?
 
 
Last edited by a moderator:
Find you a cheap old sony tv remote. Dish tv has all kinds of encoding some are even wireless.
 
I have done this for RC5, I didnt find manchester code difficult, but my implementation doesnt use all the pulses it ignores the last pulse of the manchester code, still works well.
Multi purpose replacement remotes are good for this as they support more than one protocol.
Are you going C or asm?

P.S. I found the tssop devices like you show to be very sensitive to noise on the power line, I found a 470r and a 47uF cap on a little board I pulled from a tv powering its infra red receiver from 5v, I've done this ever since and its been fine even on bread board.
 
Off course C...

You got four posts with loads of info and that is your response?

Post some schematics.. what plans you have for the project so far. How are you going to proceed etc. If you watched the video, read the datasheet and if you have some plans, then I am very willing to help you with any issue you have trouble with. But, if you do not listen to any help that people give you and just wait for complete solution to "pop-up".. that is not going to work.
 
Last edited:
Cant help you with C, my codes asm.
 
Yes i have seen that page before it show only theory/single page without any code to start working.
 
OK, i have one question if i want to measure/compare time interval how to do this?
and i found this ready made..
**broken link removed**
 
OK, i have one question if i want to measure/compare time interval how to do this?
and i found this ready made..
**broken link removed**

The answer to your question is in the link JJW gave to you. there are also c codes there that will help you decode the IR data.
https://www.sbprojects.com/knowledge/ir/index.php
if you find the whole thing too complex, try studying the .h file and if you have all it takes, watch that video.
 
The capture mode of PIC16F877a code: is this fine?


Code:
#include<pic.h>
#define _XTAL_FREQ 20000000L
__CONFIG(0x3F18);
unsigned char low,high;
void main (void){
TRISC2=1;
CCP1CON=0b00000101;//Capture mode, every rising edge
T1CON=0b00001001;//Internal clock,Enables Timer1
TMR1IF =0;
TMR1H  = 0x00;
TMR1L = 0x00;
GIE =1;  // Interrupt Enable
  PEIE =1;
CCP1IE =1;
while(1){}
}
static void interrupt isr(void) {
  if ( CCP1IF ) {
  low=CCPR1L;
high=CCPR1H;
  CCP1IF = 0;
  }
  // if timer interrupt: reset timer and toggle Port B.2
  if ( TMR1IF ) {
 
  TMR1H = 0x00;  TMR1L = 0x00;
  TMR1IF = 0;
  }
}
 
i could be wrong (normally i am) but microchip probably have a app note for something like this, seems same sort of thing as say a tacho for counting RPM's, so in that case set up the capture and a timer for a set period when period expires (interrupt) count number of pulses from capture, or to put it better set capture so every time a pulse is at pin it updates a variable then when timer times out you have a count of pulses per whatever time the timer was set for. OR i might have it totally wrong as i havnt used capture yet but its on my to do list!

google for tacho projects that might give you a start, and microchip app notes are sometimes a bit full of errors but well worth a read

HTH

LG
 
just watched some of the video (on home study so should be doing math) i will watch it all later but is great video i finaly get the carrier frequency thing! seeing it on the scope helps alot. maybe you could post this on the video page of forum Mr T

thanks for posting it
 
That might work for sony sircs lg as is uses pulse position modulation, not sure if it'd be any good for phillip's protocol though.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top