Here is the design remote control based light dimmer work with RC5 based
Remote
But i have also a design based on 16f628 which can adjust it self automatically on any remote in other it can program according to your remote any way uploaded file is based on 89c2051
Sorry, but you need login in to view this attachment
here you can get all doc for this project which is orginaly based pic16f84 i have ported it to 16f628 with complete doc and user guide how to train this with other remotes