In message <01BBAA45.FE5E9F60@ppp52.her.tele.dk> PICLIST@MITVMA.MIT.EDU writes: > As I saw a thread discussing -EN-coding of RC-5 IR-signals, somebody > might also be able to help me on the following subject: > > I want to make a lightdimmer that must be able to receive and 'learn' > IR-codes with 36kHz carrier. I'll use a readymade > IR-receiver/demodulator >(SFH506-36) which outputs the demodulated > received IR-code (36kHz removed). > > Has anybody made a project that can 'learn' IR-codes? > > If not, I really need some ideas on storing codes, and be able to > compare the stored data with new received codes. The main problem is the > (sometimes very big) difference in the encoding used by different > brands. I don't know if it'll help, but I've written 16C84 code to receive and decode the IR signals from Sharp Electronics remote controls. All the recent ones are based on the same coding system and have a different 'system code' for TV, VCR and Audio. My code allows the switching on and off of various of the PortB pins, the keys used are held in a lookup table. Nigel. /----------------------------------------------------------\ | Nigel Goodwin | Internet : nigelg@lpilsley.demon.co.uk | | Lower Pilsley | | | Chesterfield | | | England | | \----------------------------------------------------------/