If this is serial protocol then just do a serin with the Stamp 2. See the docs for that, or Serin SI,N2400,B0 'SI=port B0 = input character (might want a timeout value) If it is pulse width modulated, then you can try Don Roy's code (I have a copy on my site at: http://204.233.101.40/robots/irremote.txt ) or at least look at it to see how he is handling inbound Sony code. Dan >In light of the underwhelming lack of response to my LEGO IR post, >maybe I need to clarify a little: > >The RCX tower and the LEGO remote control (#9738) both transmit a >38kHz carrier which is modulated at a 2400bps rate. The encoding >is 8 data bits, odd parity, 1 stop bit, noninverted. I've also >found Kekoa's RCX opcodes page. > >What I would like is help in using a PIC (or a Stamp) to decode the >output of an IR receiver that is receiving opcodes from the LEGO >controller. Lacking that, pointers to using a PIC for decoding TV >IR remotes would help. > >Thanks, > - Nick - > >Nick Taylor wrote: >> >> Hello All - - >> >> I'm interested in using a LEGO IR remote control to control other >> things besides the RCX. Has anyone here done any PIC development >> along these lines? >> >> I would like to use a PIC to decode the output of a Sharp GP1U581Y >> and convert the 16 LEGO control sequences to a single hex nibble. >> >> Any help or pointers will be greatly appreciated. >> >> Thanks, >> - Nick -