View previous topic :: View next topic |
Author |
Message |
karthickiw
Joined: 09 Aug 2007 Posts: 82 Location: TN, India
|
Sony TV remote decoder using PIC16F73 |
Posted: Mon Aug 20, 2007 10:34 am |
|
|
hai,
how decode the sony TV remote using PIC16F73. please give sample coding |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Mon Aug 20, 2007 10:55 am |
|
|
Ya know, I'm wondering if it would be possible to place a sticky for new users stating that we are not here to do their student projects for them. Maybe, let them know that we're here to assist but that they, first, need to put in some kind of effort on their own project.
We get periods when several people simply log on and ask for code. They don't give any examples that they have tried or show any effort of their own. Maybe I'm just in a foul mood because my EX called me this morning.
Karthickiw, we're here to assist you. You need to do a little research of your own first. If you don't know where to start then simply state that fact. We'll point you in the right direction. If you're a student, the best way for you to learn is trial and error. You'll never learn anything if things are handed to you.
Ronald, a bit pizzed off. |
|
|
karthickiw
Joined: 09 Aug 2007 Posts: 82 Location: TN, India
|
about code |
Posted: Mon Aug 20, 2007 7:58 pm |
|
|
thank you sir. ok i try my own, please give some idea about the decoding the TV remote signal. |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1908
|
|
Posted: Mon Aug 20, 2007 8:09 pm |
|
|
Search the Code Library. There are several examples of IR remote decoders. Also remember that google is your friend. |
|
|
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
|
|
Posted: Tue Aug 21, 2007 12:13 am |
|
|
rnielsen wrote
Quote: |
I'm wondering if it would be possible to place a sticky for new users stating that we are not here to do their student projects for them
|
School is about to start up again. Responders to students questions might want to consider posting their GPA in their online profile. That way students can make informed decisions about the person choosing to do their homework for them. |
|
|
mickent
Joined: 18 Feb 2007 Posts: 22 Location: TN, USA
|
|
Posted: Tue Aug 21, 2007 3:58 am |
|
|
One good thing about spoon feeding students is that when they get into the work force they will be useless; leaving more work for those of us that took the hard road. _________________ Mick |
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Tue Aug 21, 2007 7:35 am |
|
|
Being useless, that might mean they end up being our managers |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Tue Aug 21, 2007 7:45 am |
|
|
LOL |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Tue Aug 21, 2007 8:00 am |
|
|
So THAT's how my manager got there!
I had one manager say: Those who can't do, teach. Those that can't teach, administrate. |
|
|
Steve H Guest
|
|
Posted: Tue Aug 21, 2007 7:42 pm |
|
|
Oh.... You guy's are killing me, too funny...
Opps, here comes the boss - everybody look busy!
;-)
Steve H. |
|
|
raham
Joined: 09 Oct 2007 Posts: 1
|
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Tue Oct 09, 2007 9:58 am |
|
|
Quote: |
Being useless, that might mean they end up being our managers.
|
That´s the point!. They have a rare special skill to do not know even that the
Earth is turning but this doesn´t matter... they are manager.
For which reason a future manager can concern how the hell, things happens
inside a silly PIC?
Humberto |
|
|
Gerhard
Joined: 30 Aug 2007 Posts: 144 Location: South Africa
|
|
Posted: Tue Oct 09, 2007 2:18 pm |
|
|
I started programing on the pic about a month ago and yes i am a student and yes i did get the same type of coments in the begining. Firstly just tell the people if you know anything and if you dont;s, as has been said, they will point you in the right direction.
What i have learned in the past month on pics because of trial and error no other student will be able to match. SO JUST TO MAKE MY POINT.
THANKS TO ALL YOU PROFESIONALS THAT ACTUALLY KNOW WHAT GOES ON THAT ARE WILLING TO BE FRUSTRATED BY OUR SILLY QUESTIONS. |
|
|
densimitre
Joined: 21 Dec 2004 Posts: 45
|
|
Posted: Tue Oct 09, 2007 9:00 pm |
|
|
Hi
Take a look on this..
1.- http://picmania.garcia-cuervo.com/Experimentos_IR.php#DecoProt
2.- Googling for:
// sony.c - Serial <==> Sony IR Remote conversion
// Version 1.0
//
// Robert Poor
// MIT Media Laboratory
// January, 2000
3.- ////////////////////////////////////////////////////////////////////////////////
//Análisis:
// - Protocolo IR: SIRCS =>device word(5) + command word(7) =>12 bits
// Trama: envío en modo LSB
// T: 0,6ms
// Start Bit: 4T(1)+T(0) => 2,4ms+0,6ms
// 1 Lógico : 2T(1)+T(0) => 1,2ms+0,6ms
// 0 Lógico : T(1)+T(0) => 0,6ms+0,6ms
// - Procedimiento:
// Analizar los tiempos altos (1) de la trama IR recivida, para evaluar si se
// trata de un 1 o un 0, respectivamente. Desechar los tiempos T(0).
// Para lograr lo anterior, se hará uso del TMRO con DIV_16 (16us@4MHz), y la interrupción
// de RB0, en ambos flancos. Primero se detectará el paso de L_TO_H, setear TMR0=0,
// luego setear interrupcion de H_TO_L, al activarse obtener el valor de TMRO, tras
// lo cual se verificará si se trata del start bit, un 1 o un 0 lógico. Contar
// hasta obtener 12 bits.
// Como los datos son recividos en formato LSB, al decodificar cada bit debe ejecutarse la instruccion:
// shift_right(&Cmd, 2, 1/0) ==> desplazar a la derecha el largo de 2 bytes (12 bits de WORD),
// el bit 1 o 0, según corresponda. Cmd corresponde a un long que almacena el comando.
// Se puede optar por recivir los primeros 7 bits y desechar los 5 siguientes.
// - Valores:
// .TMR0(2,4ms)=2,4ms/0,016ms=150 ==>rango aceptable : 110/180 o >100
// .TMR0(1,2ms)=1,2ms/0,016ms= 75 ==>rango aceptable : 60/ 90
// .TMR0(0,6ms)=0,6ms/0,016ms= 37.5 ~ 38 ==>rango aceptable : 20/ 50
// 8.2208Mhz==>Tc=0,16us
//
Best Regards |
|
|
|