This thesis presents a lock system that uses light as a secret code. Through the RGB LED installed on the key, it emits a Pass-Light comprised of lights of different colors and intensity. The lock will verify the Pass-Light emitted from the key and will send some data to the key through infrared transmission. Then, it will determine whether the key can correctly respond to the data transmitted. The lock can only be unlocked after it has received all the correct Pass-Lights from the key. In addition, this system is equipped with automatic password changing and Light-regulate functions. The automatic password changing function will activate automatically after the lock is successfully unlocked. It will generate a new set of Pass-Light for the next unlocking process to increase the level of security of the system. The Light-regulate function ensures the key to function properly in every unlocking process