The study is to fulfill a lock system using action recognition as password. The locker and the key were adopted an RF module as the wireless transmitter. The accelerometer sensor installed in the key can obtain its direction of rotation and angle as the recognition. The user follows the right direction and rotates the key into the right angle as the password. As long as s/he operates the right action once, the key and the locker will connect once; thus, the user has to complete the whole order to unlock the locker. Besides, in order the ensure security data transmission over a wireless network, the study fulfilled advanced encryption standard (AES) in the 8-bit microcontroller (MCU) and dynamic key exchange; therefore, the key can be changed via exchanging random numbers in each communication.